paulrberg/agent-skills/todo-archive
Claude Code and agent skill by paulrberg/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Archive checked `.ai/TODO.md` tasks into `.ai/todos/YYYY-MM/DD.md`, leaving unchecked tasks.
Install
npx vskill@latest install paulrberg/agent-skills/todo-archiveSKILL.md
TODO Archive
If a slash or dollar invocation already added these instructions to the conversation, follow them directly. In that case, do not invoke this skill again through a skill tool.
Arguments
path(optional): Repository root or any path inside the repository. Default to the current directory.--hint TEXT(optional): Archive only the section whose heading containsTEXT(case-insensitive substring),
including its subsections. Without it, archive checked tasks from the whole file. Checked tasks outside the matched section stay in .ai/TODO.md.
--date YYYY-MM-DD|YYYY_MM_DD(optional): Archive date. Default to today's local date.--dry-run(optional): Preview target paths and rendered content without writing.
Workflow
- Resolve the supplied
path, or the current directory when omitted. For an existing file, use its containing
directory. For a directory, use that directory. Store the absolute directory as start_dir, then resolve its Git root:
``sh git -C "$start_dir" rev-parse --show-toplevel ``
Store the result as repo_root. When start_dir is outside a Git repository, use it as repo_root. Stop on a missing input path or another resolution error.
- Verify
.ai/TODO.mdexists under the root. If it is missing, stop and report the path checked.
- Resolve the skill directory and run its helper:
``sh uv run python "<skill-dir>/scripts/archive_todo.py" --root "$repo_root" ``
Pass through --hint, --date, or --dry-run when the user requested them.
- Report the rewritten
.ai/TODO.md, the created or merged archive path, the matched section (when--hintwas
given), and the archived/remaining task counts. If an archive for the date already exists, the helper appends the new batch to it, retaining one matching top-level heading. If the helper reports no checked tasks, treat it as a no-op. If --hint matches no heading, the helper exits non-zero and lists the available sections. In that case, relay them.
- If useful, inspect only
<repo_root>/.ai/TODO.mdand the exact archive path returned by the helper. Verify their
contents directly. When Git ignores them, compare filesystem snapshots rather than relying on git diff.
Helper Behavior
scripts/archive_todo.py reads <root>/.ai/TODO.md and any existing archive for the date, writes archived tasks to <root>/.ai/todos/YYYY-MM/DD.md, and rewrites <root>/.ai/TODO.md with the remaining tasks. It preserves task-free sections and prose verbatim (a minimal stub with the source's first heading, or # TODO, only if everything was archived). With --hint, it restricts archiving to the matched heading's subtree and exits non-zero listing available headings when nothing matches. A same-day re-run appends its batch to that day's file, removing the new leading H1 only when it exactly matches the existing archive's leading H1.
Completion
Completion evidence is the helper's archive path plus archived and remaining task counts. A no-checked-task result is a successful no-op. Dry-run completion requires rendered paths/content with no filesystem changes, but the final message still follows the one-line formats below. Report the result as a single line (append a (scope: "<hint>") segment only when --hint was given), with the archive path relative to the repository root:
- Success:
๐ฆ Archived <n> โ <archive path> (created|merged) ยท <remaining> remaining - No-op:
โ Nothing to archive ยท <remaining> remaining - Dry run:
๐ Would archive <n> โ <archive path> (would create|would merge) ยท <remaining> would remain
Do not repeat full dry-run document content in the final message or add decoration to TODO/archive files, paths, commands, or helper diagnostics.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/todo-archive/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 3
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/paulrberg/agent-skills/todo-archive)