| name | file-todos |
| description | This skill manages the file-based TODO tracking system in the todos/ directory. It provides workflows for creating TODOs, managing status and dependencies, conducting triage, and integrating with /review, /address-feedback, and /plan-feature commands. |
File-Based TODO Tracking Skill
Overview
The todos/ directory contains a file-based tracking system for managing code review feedback, technical debt, feature requests, and work items. TODOs are organized by branch, with each branch having its own subdirectory. Each TODO is a markdown file with YAML frontmatter and structured sections.
This skill should be used when:
- Creating new TODOs from findings or feedback
- Managing TODO lifecycle (pending → ready → complete)
- Triaging pending items for approval
- Converting PR comments or code findings into tracked work
- Updating work logs during TODO execution
Directory Structure
TODOs are organized by git branch:
todos/
├── feature-auth/ # Branch: alice/feature-auth
│ ├── 001-pending-p1-fix-login.md
│ └── 002-ready-p2-add-tests.md
└── bugfix-query/ # Branch: bob/bugfix-query
└── 001-ready-p1-optimize-sql.md
Branch suffix extraction:
alice/feature-auth → feature-auth/
bugfix-query → bugfix-query/
main → Warns user to create a feature branch
Key principle: Each branch is an isolated unit of work with its own sequential issue IDs (001, 002, 003...).
File Naming Convention
TODO files follow this naming pattern:
{issue_id}-{status}-{priority}-{description}.md
Components:
- issue_id: Sequential number (001, 002, 003...) - never reused
- status:
pending (needs triage), ready (approved), complete (done)
- priority:
p1 (critical), p2 (important), p3 (nice-to-have)
- description: kebab-case, brief description
Examples:
001-pending-p1-fix-auth-bug.md
002-ready-p2-optimize-database-query.md
005-complete-p3-add-type-hints.md
File Structure
Each TODO is a markdown file with YAML frontmatter and structured sections. Use the template at assets/todo-template.md as a starting point when creating new TODOs.
Required sections:
- Problem Statement - What is broken, missing, or needs improvement?
- Findings - Investigation results, root cause, key discoveries
- Proposed Solutions - Options with pros/cons, effort, risk
- Acceptance Criteria - Testable checklist items
- Work Log - Chronological record with date, actions, learnings
YAML frontmatter fields:
---
status: ready
priority: p1
issue_id: "002"
tags: [security, api, code-review]
dependencies: ["001"]
---
Common Workflows
Branch Detection
Before any TODO operation, detect the current branch and set up the TODO directory:
branch_suffix=$(git branch --show-current | sed 's|.*/||')
todo_dir="todos/$branch_suffix"
if [ "$branch_suffix" = "main" ] || [ "$branch_suffix" = "master" ]; then
echo "⚠️ Warning: You're on the $branch_suffix branch."
echo "TODOs should typically be associated with feature branches."
fi
mkdir -p "$todo_dir"
Creating a New TODO
-
Set up branch directory and determine next issue ID:
branch_suffix=$(git branch --show-current | sed 's|.*/||')
todo_dir="todos/$branch_suffix"
mkdir -p "$todo_dir"
next_id=$(ls "$todo_dir"/ 2>/dev/null | grep -o '^[0-9]\+' | sort -n | tail -1 | awk '{printf "%03d", $1+1}')
[ -z "$next_id" ] && next_id="001"
-
Copy template:
cp ~/.claude/skills/file-todos/assets/todo-template.md "$todo_dir/{NEXT_ID}-pending-{priority}-{description}.md"
-
Fill required sections:
- Problem Statement
- Findings (if from investigation)
- Proposed Solutions
- Acceptance Criteria
- Initial Work Log entry
-
Add relevant tags for filtering
When to create a TODO:
- Requires more than 15-20 minutes of work
- Needs research, planning, or multiple approaches
- Has dependencies on other work
- Requires approval or prioritization
- Part of larger feature or refactor
When to act immediately instead:
- Issue is trivial (< 15 minutes)
- Complete context available now
- No planning needed
- Simple fix with obvious solution
Triaging Pending Items
Use /triage command or manually:
- Set up branch directory:
branch_suffix=$(git branch --show-current | sed 's|.*/||')
todo_dir="todos/$branch_suffix"
- List pending items:
ls "$todo_dir"/*-pending-*.md
- For each TODO:
- Read Problem Statement and Findings
- Review Proposed Solutions
- Make decision: approve, defer, or modify priority
- Update approved TODOs:
- Rename file:
pending → ready
- Update frontmatter:
status: ready
- Fill "Recommended Action" section
- Deferred TODOs stay in
pending status
Managing Dependencies
Dependencies are tracked within the same branch only (no cross-branch dependencies).
Track dependencies:
dependencies: ["002", "005"]
dependencies: []
Check what blocks a TODO:
branch_suffix=$(git branch --show-current | sed 's|.*/||')
grep "^dependencies:" "todos/$branch_suffix"/003-*.md
Find what a TODO blocks:
branch_suffix=$(git branch --show-current | sed 's|.*/||')
grep -l 'dependencies:.*"002"' "todos/$branch_suffix"/*.md
Completing a TODO
- Verify all acceptance criteria checked off
- Update Work Log with final session
- Rename file:
ready → complete
- Update frontmatter:
status: complete
- Check for unblocked work
- Commit with issue reference
Integration with Commands
| Command | Creates TODOs | Uses TODOs |
|---|
/dev.spec | No | No |
/dev.plan | No | No |
/dev.tasks | Yes - generates TODOs from plan | No |
/dev.work | No | Yes - executes TODOs |
/dev.triage | No | Yes - manages lifecycle |
/dev.commits | No | No |
Quick Reference
Setup (run before any TODO operation):
branch_suffix=$(git branch --show-current | sed 's|.*/||')
todo_dir="todos/$branch_suffix"
mkdir -p "$todo_dir"
Finding work (current branch):
ls "$todo_dir"/*-ready-p1-*.md
ls "$todo_dir"/*-pending-*.md
next_id=$(ls "$todo_dir"/ 2>/dev/null | grep -o '^[0-9]\+' | sort -n | tail -1 | awk '{printf "%03d", $1+1}')
[ -z "$next_id" ] && next_id="001"
for status in pending ready complete; do
echo "$status: $(ls -1 "$todo_dir"/*-$status-*.md 2>/dev/null | wc -l)"
done
Searching (current branch):
grep -l "tags:.*security" "$todo_dir"/*.md
ls "$todo_dir"/*-p1-*.md
grep -r "user_id" "$todo_dir"/
Searching (all branches):
find todos -name "*-pending-*.md"
grep -r "tags:.*security" todos/
ls -d todos/*/
Key Distinctions
File-todos system (this skill):
- Markdown files in
todos/<branch>/ directories
- Branch-based organization (one directory per feature branch)
- Development/project tracking
- Standalone markdown files with YAML frontmatter
- Used by humans and Claude Code agents
TodoWrite tool:
- In-memory task tracking during agent sessions
- Temporary tracking for single conversation
- Not persisted to disk
- Different from this file-based system