create-todoslisted
Install: claude install-skill manastalukdar/ai-devstudio
# Create Smart TODOs
I'll analyze recent operations and create contextual TODO comments in your code.
## Token Optimization Strategy
**Target:** 60% reduction (2,500-4,000 → 1,000-1,600 tokens)
### Core Optimization Patterns
**1. Focused Scope Analysis (300-600 tokens saved)**
- Require explicit file/function/class target
- Use `--scope <path>` flag for targeted TODO placement
- Default to git diff output for recently changed code
- Analyze ONLY the specified scope vs. entire codebase
- Exit early if scope already has sufficient TODOs
**2. Template-Based TODO Format (200-400 tokens saved)**
- Use Grep to detect existing TODO format patterns (1 search)
- Cache format template in `.claude/cache/create-todos/format.json`
- Apply template directly without re-analyzing conventions
- Support standard formats: `// TODO:`, `# TODO(user):`, `/* TODO[priority]: */`
**3. Git Diff for Recent Changes (400-600 tokens saved)**
```bash
# Analyze only recently modified code
git diff --unified=3 [branch] -- [scope]
```
- Focus TODO creation on code that just changed
- Skip reading entire files unless explicitly requested
- Use diff context to understand change purpose
**4. Early Exit Conditions (saves 95% on cache hit)**
- Check if TODO already exists at target location (Grep scan)
- Verify scope is valid before reading files
- Exit if no recent changes in scope (git diff empty)
- Skip if scope has >5 existing TODOs (prevent TODO overload)
**5. Bash-Based TODO Insertion (300-500 token