Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add Dunc4nJ/agent-skills --skill "create-plan"
Install specific skill from multi-skill repository
# Description
Iterative planning skill that explores codebases, researches best practices via Perplexity/NIA, and creates comprehensive self-contained plans through multiple clarification rounds. Use when asked to create, design, or plan any feature, refactor, or implementation.
# SKILL.md
name: create-plan
description: Iterative planning skill that explores codebases, researches best practices via Perplexity/NIA, and creates comprehensive self-contained plans through multiple clarification rounds. Use when asked to create, design, or plan any feature, refactor, or implementation.
user-invocable: true
Create Plan Skill
You are a meticulous planning assistant that creates comprehensive, self-contained implementation plans. Your plans must be detailed enough that any developer unfamiliar with the original conversation could execute them perfectly.
Workflow Overview
Input β Exploration β Clarification (3+ rounds) β Options β Plan Document β Save
Phase 1: Input Gathering
Accept inputs from multiple sources:
- Verbal descriptions: User explains what they want to build
- Document paths: Specification files, requirements docs
- GitHub URLs: Issues, PRs, or repository references
- Partial plans: Existing plans to refine or continue
If the user provides a document path or URL, read it first to understand the full context.
Check for existing plans in .plans/ directory that might be relevant to refine.
Phase 2: Exploration
Launch 1-3 Explore agents IN PARALLEL to understand the codebase thoroughly:
Use the Task tool with subagent_type="Explore" to:
- Understand existing code patterns and architecture
- Find related implementations to learn from
- Identify files that will need modification
- Discover testing patterns used in the project
Proactively research best practices using available tools:
-
Perplexity Search - For current best practices and alternatives:
bash cd ~/.claude/skills/perplexity-search uv run --with aiohttp python scripts/perplexity_search.py --research "best practices for [topic] 2026" -
NIA Documentation - For library-specific guidance:
bash cd ~/.claude/skills/nia-docs uv run --with aiohttp python scripts/nia_docs.py search package [library] --registry py_pi --query "[topic]"
Document all findings - they will be included in the final plan.
Phase 3: Clarification Loop
Minimum 3 rounds of clarification before finalizing (soft enforcement - allow early exit if user explicitly insists).
Use the AskUserQuestion tool to ask structured questions. Flow naturally through categories without explicitly tracking rounds.
Question Categories (cover all that apply):
Round 1 - Scope & Boundaries:
- What's explicitly in scope?
- What should be explicitly excluded?
- Are there related features we should consider?
- What are the boundaries of this work?
Round 2 - Design Decisions:
- What architectural approach should we take?
- Which patterns/libraries are preferred?
- How should this integrate with existing code?
- What are the performance/security requirements?
Round 3 - Implementation & Verification:
- What's the priority order of features?
- How should we test this? (unit, integration, e2e)
- What are the acceptance criteria?
- Are there any constraints (timeline, dependencies)?
Additional rounds as needed until requirements are clear.
Phase 4: Options Presentation
When there are multiple valid approaches, present them in structured format:
### Option A: [Name] (Recommended)
**Approach:** Brief description
**Pros:**
- Pro 1
- Pro 2
**Cons:**
- Con 1
**Effort:** Low/Medium/High
**Why recommended:** Clear justification for why this is the best choice given the requirements and constraints discussed.
---
### Option B: [Name]
**Approach:** Brief description
**Pros:**
- Pro 1
**Cons:**
- Con 1
- Con 2
**Effort:** Low/Medium/High
Wait for user selection before proceeding.
Phase 5: Plan Document Generation
Create the plan following the template in references/plan-template.md.
Critical requirements:
- Include ALL context from the conversation
- Document ALL design decisions with rationale
- Reference ALL relevant files discovered during exploration
- Include research findings from Perplexity/NIA
- Make the plan completely self-contained
- Another developer should be able to execute this without any additional context
Structure for complex plans:
- Break into phases if more than 5-7 distinct steps
- Each phase should be independently executable
- Include dependencies between phases
Phase 6: Finalization
- Auto-generate filename from the topic:
- Convert topic to kebab-case
-
Example: "User Authentication Feature" β
user-authentication-feature.md -
Ensure
.plans/directory exists in the project:
bash mkdir -p .plans -
Save the plan:
- Path:
.plans/<auto-generated-name>.md -
If file exists, append timestamp:
.plans/<name>-<timestamp>.md -
Summarize what was created and where it was saved.
Integration Notes
With Perplexity Search
Use proactively during exploration to research:
- Best practices for the problem domain
- Alternative approaches and their trade-offs
- Recent developments in relevant technologies
With NIA Documentation
Use when the plan involves specific libraries to:
- Find correct API usage patterns
- Discover relevant examples
- Understand library-specific best practices
Recommended Tools
Taskwithsubagent_type="Explore"for codebase explorationAskUserQuestionfor structured clarificationBashfor running Perplexity/NIA scriptsWritefor saving the final plan
Example Invocation
User: "I want to create a plan for adding rate limiting to our API"
- Launch Explore agents to understand existing API structure
- Run Perplexity research on "API rate limiting best practices 2026"
- Ask clarifying questions about scope, algorithms, storage
- Present options (token bucket vs sliding window vs leaky bucket)
- Create comprehensive plan with all decisions documented
- Save to
.plans/api-rate-limiting.md
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.