Code Plan
by sirn
Generate comprehensive implementation plan based on analysis. Use when user asks to plan this, create a plan, how should I implement, or wants implementation guidance.
Skill Details
Repository Files
1 file in this skill directory
name: code-plan description: Generate comprehensive implementation plan based on analysis. Use when user asks to plan this, create a plan, how should I implement, or wants implementation guidance.
Generate a comprehensive implementation plan based on task analysis and research.
Process
-
Identify context:
- If code changes are involved: run
jj diff -sfirst to see changed files; then usejj diff -- pathto restrict to specific files/directories - If $ARGUMENTS provided, focus on those specific files/paths
- Understand the user's task/request
- If code changes are involved: run
-
Spawn all five agents in parallel using the Task tool:
- Use
code-architectagent: Analyze affected code areas and existing patterns - Use
security-researcheragent: Identify security risks and recommend secure patterns - Use
simplicity-revieweragent: Identify over-engineering risks and pragmatic constraints - Use
code-researcheragent: Research best practices, official documentation, and constraints
- Use
-
Synthesize all findings into a clear implementation plan
Output
-
Context Analysis (from code-architect)
- Relevant code structure and patterns
- Existing architectural decisions
- Integration points with current codebase
-
Security Considerations (from security-researcher)
- Threat modeling and potential attack vectors
- Authentication and authorization requirements
- Data protection and privacy considerations
- Secure implementation patterns
-
Documentation & Best Practices (from code-researcher)
- Relevant docs or API constraints
- Industry standards with authoritative sources
- Recommended libraries/tools with rationale
- Common pitfalls to avoid
-
Simplicity Constraint (from simplicity-reviewer)
- "Keep it simple" guidelines
- Over-engineering risk to avoid
- Pragmatic vs ideal tradeoffs
-
Architectural Guidance (from code-architect)
- High-level design approach
- Module boundaries and interfaces
- Design tradeoffs considered
-
Implementation Plan (synthesize)
- Numbered, concrete steps
- File to modify with specific locations
- Dependencies to add (research-backed)
- Testing strategy aligned with project patterns
Prioritize actionable, specific guidance over abstract advice.
Related Skills
Mermaid Diagrams
Comprehensive guide for creating software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams (domain modeling, object-oriented design), sequence diagrams (application flows, API interactions, code execution), flowcharts (processes, algorithms, user journeys), entity relationship diagrams (database schemas), C4 architecture diagrams (system context, containers, components), state diagrams, git graphs, pie charts,
Matlab
MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing. Use when writing MATLAB/Octave scripts for linear algebra, signal processing, image processing, differential equations, optimization, statistics, or creating scientific visualizations. Also use when the user needs help with MATLAB syntax, functions, or wants to convert between MATLAB and Python code. Scripts can be executed with MATLAB or the open-source GNU Octave interpreter
Dask
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.
Consult Zai
Compare z.ai GLM 4.7 and code-searcher responses for comprehensive dual-AI code analysis. Use when you need multiple AI perspectives on code questions.
Writing Effective Prompts
Structure Claude prompts for clarity and better results using roles, explicit instructions, context, positive framing, and strategic organization. Use when crafting prompts for complex tasks, long documents, tool workflows, or code generation.
Analyze Performance
Establish performance baselines and detect regressions using flamegraph analysis. Use when optimizing performance-critical code, investigating performance issues, or before creating commits with performance-sensitive changes.
Flowchart Creator
Create HTML flowcharts and process diagrams with decision trees, color-coded stages, arrows, and swimlanes. Use when users request flowcharts, process diagrams, workflow visualizations, or decision trees.
Bio Reporting Rmarkdown Reports
Create reproducible bioinformatics analysis reports with R Markdown including code, results, and visualizations in HTML, PDF, or Word format. Use when generating analysis reports with RMarkdown.
Desmos Graphing
Create interactive Desmos graphs in Obsidian using desmos-graph code blocks. Use when visualizing functions, parametric curves, inequalities, or mathematical relationships with customizable styling and settings.
Performance
Rendimiento & Optimización - Atoll Tourisme. Use when optimizing performance or profiling code.
