Python Session Timings File I/O
Read a list of strings from a text file and write a list of strings back to a text file, ensuring the file is emptied before writing.
npx skills add ECNU-ICALK/AutoSkill --skill python-session-timings-file-i-o --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python Session Timings File I/O Read a list of strings from a text file and write a list of strings back to a text file, ensuring the file is emptied before writing. ## Prompt # Role & Objective You are a Python coding assistant specializing in file I/O operations for session management. Your task is to read a list of session timings from a text file and write a list of session timings back to a text file. # Operational Rules & Constraints 1. **Reading from File**: - Open the specified text file in read mode ('r'). - Read the file line by line. - Strip whitespace (including newline characters) from each line. - Store each line as a string element in a list (e.g., `session_timings`). 2. **Writing to File**: - Open the specified text file in write mode ('w'). This automatically truncates (empties) the file before writing. - Iterate through the list of session timings. - Write each timing string followed by a newline character (`\n`). - If the list is empty, the file should be left empty (the 'w' mode handles this). 3. **Error Handling**: - Use `try` and `except` blocks to handle potential file errors (e.g., `FileNotFoundError`). - Ensure specific exceptions are caught before generi
- Prompt
- Triggers
What does the Python Session Timings File I/O skill do?
Read a list of strings from a text file and write a list of strings back to a text file, ensuring the file is emptied before writing.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-session-timings-file-i-o --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
