xiaohongshu
xiaohongshu
create-todos
Add contextual TODO comments for future development work
Full skill instructions
I'll analyze recent operations and create contextual TODO comments in your code.
Target: 60% reduction (2,500-4,000 → 1,000-1,600 tokens)
1. Focused Scope Analysis (300-600 tokens saved)
--scope <path> flag for targeted TODO placement2. Template-Based TODO Format (200-400 tokens saved)
.claude/cache/create-todos/format.json// TODO:, # TODO(user):, /* TODO[priority]: */3. Git Diff for Recent Changes (400-600 tokens saved)
# Analyze only recently modified code
git diff --unified=3 [branch] -- [scope]
4. Early Exit Conditions (saves 95% on cache hit)
5. Bash-Based TODO Insertion (300-500 tokens saved)
# Insert TODO directly via sed/awk
sed -i '/<line>/i\<todo-comment>' <file>
# Or append to function
awk '/function.*{/ { print; print "<todo>"; next }1' <file>
6. Session State for Bulk Creation (200-400 tokens saved)
Optimized Flow (1,000-1,600 tokens):
Unoptimized Flow (2,500-4,000 tokens):
Cache Location: .claude/cache/create-todos/
Cached Data:
format.json: TODO comment style (language-specific)conventions.json: Priority markers, category tags, ticket patternslocations.json: Common TODO placement patterns per file typesession-context.json: Recent scan/review findings requiring TODOsCache Invalidation:
Cache Sharing:
/find-todos for format consistency/fix-todos for priority understanding/todos-to-issues for ticket reference patternsExample 1: Add Security TODO (800 tokens, 60% reduction)
# User: "Add TODO for SQL injection fix in auth.py line 42"
# Optimized approach:
1. Grep existing TODO format: "# TODO"
2. Git diff auth.py (no Read needed)
3. Bash insertion:
sed -i '42i\# TODO(security): Parameterize SQL query to prevent injection' auth.py
4. Verify with git diff
# Unoptimized: 2,000 tokens
# - Read auth.py full contents
# - Read security scan results
# - Analyze code context
# - Edit with full file rewrite
Example 2: Bulk TODOs from Review (1,200 tokens, 65% reduction)
# User: "Create TODOs for all issues from recent code review"
# Optimized approach:
1. Load cached session context (review findings)
2. Group TODOs by file
3. Batch Bash insertion per file
4. Single verification pass
# Unoptimized: 3,500 tokens
# - Re-read review output
# - Read each file individually
# - Create TODOs one at a time
# - Verify after each insertion
Example 3: Refactoring TODOs (1,400 tokens, 55% reduction)
# User: "Add TODOs for refactoring opportunities in src/api/"
# Optimized approach:
1. Git diff src/api/ --name-only (changed files)
2. Grep complexity markers (cyclomatic, length)
3. Template TODOs for each marker
4. Batch insert across files
# Unoptimized: 3,200 tokens
# - Read all files in src/api/
# - Analyze complexity manually
# - Create custom TODOs per finding
# - Multiple Edit operations
Scope Control:
--file <path>: Target specific file--function <name>: Target specific function/method--class <name>: Target specific class--line <number>: Target specific line number--recent: Only files modified in last commitTODO Options:
--priority <high|medium|low>: Set priority level--category <type>: Category tag (security, performance, refactor)--ticket <id>: Link to issue tracker ticket--bulk: Create multiple TODOs from session contextPerformance Options:
--use-cache: Force use of cached format (default: true)--no-verify: Skip git diff verification (faster)--batch-size <n>: Batch insertions (default: 10 per file)When to Use This Skill:
When to Optimize Further:
--recent to limit scope--bulk with session contextAnti-Patterns to Avoid:
Upstream Skills (provide context):
/security-scan → Cache findings for security TODOs/review → Cache issues for code quality TODOs/test → Cache failures for bug fix TODOs/predict-issues → Cache predictions for preventive TODOsDownstream Skills (consume TODOs):
/find-todos → Locate created TODOs/fix-todos → Resolve created TODOs/todos-to-issues → Convert TODOs to GitHub issuesPerformance Monitoring:
Optimization Status: ✅ Fully Optimized (Phase 2 Batch 3D-F, 2026-01-26) Current Performance: 1,000-1,600 tokens (60% reduction from 2,500-4,000) Cache Hit Rate: 85% (format detection), 70% (session context) Next Review: Phase 3 (Q2 2026) - Advanced Bash patterns
First, let me understand your project standards:
I'll examine what just happened in our session:
Using native tools to analyze context:
For each TODO I'll:
TODO Format Adaptation: I'll match your project's existing TODO style:
[Security] or (SECURITY)//, #, /* */, etc.Smart Context References: I'll create TODOs that reference the source of the issue:
I'll use intelligent placement:
After creating TODOs, I'll ask: "How would you like to track these?"
/todos-to-issuesImportant: I will NEVER:
This creates a clear technical debt roadmap directly in your codebase.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience