Skip to content
Development
Command

/fix-todos

I'll systematically find and resolve TODO comments in your codebase with intelligent understanding and continuity across sessions.

From plugin
ccplugins
2.8k23 skills23 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/fix-todos

Context preview

What this command does when you run it.

I'll systematically find and resolve TODO comments in your codebase with intelligent understanding and continuity across sessions.

Command definition

fix-todos.md

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 status
  • `fix-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:** 1. Check if `fix-todos` directory exists in current working directory 2. 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

3. If no directory or session exists:

  • Scan entire codebase for TODOs
  • Create categorized plan
  • Initialize progress tracking

4. 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:** 1. Security-critical TODOs 2. Bug-related TODOs 3. Simple improvements 4. Feature additions 5. 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:** 1. Create git checkpoint 2. Fix TODO with contextual understanding 3. Verify functionality preserved 4. Update plan with completion 5. 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

1. **Scan comprehensively** - Find all TODOs with context 2. **Plan strategically** - Order by priority and risk 3. **Resolve intelligently** - Match your patterns 4. **Track meticulously** - Perfect session continuity 5. **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.

Read more
Ships withccplugins

Best Claude Code framework that actually save time. Built by a dev tired of typing "please act like a senior engineer" in every conversation.

Get the whole plugin
Stats
2,773
Stars
164
Forks
Maintained
Maintenance
Python
Language
MIT
License
1mo ago
Last commit
1y ago
Created

Repo: notlikeDev/CCPlugins