Fix TODOs
I'll systematically find and resolve TODO comments in your codebase with intelligent understanding and continuity across sessions.
Arguments: $ARGUMENTS - files, directories, or specific TODO patterns to fix
Session Intelligence
I'll maintain TODO resolution progress across sessions:
Session Files (in current project directory):
fix-todos/plan.md- All TODOs found and resolution statusfix-todos/state.json- Current progress and decisions
IMPORTANT: Session files are stored in a fix-todos folder in your current project directory
Auto-Detection:
- If session exists: Resume from last TODO
- If no session: Scan and create new plan
- Commands:
resume,status,new
Phase 1: Discovery & Analysis
MANDATORY FIRST STEPS:
- Check if
fix-todosdirectory exists in current working directory - If directory exists, check for session files:
- Look for
fix-todos/state.json - Look for
fix-todos/plan.md - If found, resume from existing session
- Look for
- If no directory or session exists:
- Scan entire codebase for TODOs
- Create categorized plan
- Initialize progress tracking
- Show TODO summary before starting
I'll find and categorize all TODOs:
TODO Detection:
- TODO, FIXME, HACK, XXX markers
- Different priority levels
- Context and complexity assessment
- Related code understanding
Smart Categorization:
- Quick fixes: Simple validations, null checks
- Features: Missing functionality
- Refactoring: Code improvements
- Security: Safety and validation needs
- Performance: Optimization opportunities
Phase 2: Resolution Planning
Based on analysis, I'll create a resolution plan:
Priority Order:
- Security-critical TODOs
- Bug-related TODOs
- Simple improvements
- Feature additions
- Performance optimizations
I'll write this plan to fix-todos/plan.md with:
- Each TODO location and content
- Proposed resolution approach
- Risk assessment
- Implementation order
Phase 3: Intelligent Resolution
I'll fix TODOs matching your code patterns:
Pattern Detection:
- Find similar implementations in your code
- Match your error handling style
- Use your validation patterns
- Follow your naming conventions
Resolution Strategies:
- Error handling → Your try/catch patterns
- Validation → Your input checking style
- Performance → Your optimization approach
- Security → Your safety patterns
Phase 4: Incremental Implementation
I'll resolve TODOs systematically:
Execution Process:
- Create git checkpoint
- Fix TODO with contextual understanding
- Verify functionality preserved
- Update plan with completion
- Move to next TODO
Progress Tracking:
- Mark each TODO as resolved in plan
- Update state file with decisions
- Create meaningful commits
Phase 5: Verification
After each resolution:
- Run relevant tests
- Check for regressions
- Validate integration points
- Ensure code quality
Context Continuity
Session Resume:
When you return and run /fix-todos or /fix-todos resume:
- Load existing plan and progress
- Show completion statistics
- Continue from last TODO
- Maintain all resolution decisions
Progress Example:
RESUMING TODO FIXES
├── Total TODOs: 47
├── Resolved: 23 (49%)
├── Current: src/api/auth.js:42
└── Next: src/utils/validation.js:15
Continuing resolution...
Practical Examples
Start Fixing:
/fix-todos # Fix all TODOs
/fix-todos src/ # Focus on directory
/fix-todos "security" # Fix security TODOs
Session Control:
/fix-todos resume # Continue existing session
/fix-todos status # Check progress
/fix-todos new # Start fresh
Safety Guarantees
Protection Measures:
- Git checkpoint before changes
- Incremental commits
- Functionality verification
- No TODO removal without implementation
Important: I will NEVER:
- Remove TODOs without fixing them
- Break existing functionality
- Add AI attribution
- Implement without understanding context
Command Suggestions
After resolving critical TODOs:
/test- To ensure fixes work correctly/commit- To save TODO resolutions
What I'll Actually Do
- Scan comprehensively - Find all TODOs with context
- Plan strategically - Order by priority and risk
- Resolve intelligently - Match your patterns
- Track meticulously - Perfect session continuity
- Verify constantly - Ensure quality maintained
I'll maintain complete continuity between sessions, always resuming exactly where we left off with full context of previous resolutions.