plan-hard
npx skills add https://github.com/duc01226/easyplatform --skill plan-hard
Agent 安装分布
Skill 文档
Think harder.
Activate plan skill.
Summary
Goal: Research, analyze codebase, and create a detailed phased implementation plan with parallel researcher subagents.
| Step | Action | Key Notes |
|---|---|---|
| 1 | Check active plan | Reuse existing or create new using naming convention |
| 2 | Research | Max 2 parallel researcher agents, 5 tool calls each, reports <=150 lines |
| 3 | Analyze codebase | Read codebase-summary.md, code-standards.md, system-architecture.md |
| 4 | Create plan | Planner subagent generates plan.md + phase-XX files |
| 5 | User review | Ask user to approve; offer optional validation interview |
Key Principles:
- Do NOT use
EnterPlanModetool — it blocks Write/Edit/Task tools - Do NOT start implementing — plan only, wait for user approval
- Use
--parallelflag for phases with no file overlap that can run concurrently
CRITICAL: Do NOT use
EnterPlanModetool â it blocks Write/Edit/Task tools needed for plan creation. Follow the workflow below. Planning is collaborative: Validate plan, ask user to confirm, surface decision questions with recommendations.
Your mission
Pre-Creation Check (Active vs Suggested Plan)
Check the ## Plan Context section in the injected context:
- If “Plan:” shows a path â Active plan exists. Ask user: “Continue with this? [Y/n]”
- If “Suggested:” shows a path â Branch-matched hint only. Ask if they want to activate or create new.
- If “Plan: none” â Create new plan using naming from
## Namingsection.
Workflow
- If creating new: Create directory using
Plan dir:from## Namingsection, then runnode .claude/scripts/set-active-plan.cjs {plan-dir}If reusing: Use the active plan path from Plan Context. Make sure you pass the directory path to every subagent during the process. - Follow strictly to the “Plan Creation & Organization” rules of
planskill. - Use multiple
researcheragents (max 2 agents) in parallel to research for this task: Each agent research for a different aspect of the task and are allowed to perform max 5 tool calls. - Analyze the codebase by reading
codebase-summary.md,code-standards.md,system-architecture.mdandproject-overview-pdr.mdfile. ONLY PERFORM THIS FOLLOWING STEP IFcodebase-summary.mdis not available or older than 3 days: Use/scout <instructions>slash command to search the codebase for files needed to complete the task. - Main agent gathers all research and scout report filepaths, and pass them to
plannersubagent with the prompt to create an implementation plan of this task. - Main agent receives the implementation plan from
plannersubagent, and ask user to review the plan
Post-Plan Validation (Optional)
After plan creation, offer validation interview to confirm decisions before implementation.
Check ## Plan Context â Validation: mode=X, questions=MIN-MAX:
| Mode | Behavior |
|---|---|
prompt |
Ask user: “Validate this plan with a brief interview?” â Yes (Recommended) / No |
auto |
Automatically execute /plan-validate {plan-path} |
off |
Skip validation step entirely |
If mode is prompt: Use AskUserQuestion tool with options above.
If user chooses validation or mode is auto: Execute /plan-validate {plan-path} SlashCommand.
Output Requirements
Plan Directory Structure (use Plan dir: from ## Naming section)
{plan-dir}/
âââ research/
â âââ researcher-XX-report.md
â âââ ...
âââ reports/
â âââ XX-report.md
â âââ ...
âââ scout/
â âââ scout-XX-report.md
â âââ ...
âââ plan.md
âââ phase-XX-phase-name-here.md
âââ ...
Research Output Requirements
- Ensure every research markdown report remains concise (â¤150 lines) while covering all requested topics and citations.
Plan File Specification
-
Every
plan.mdMUST start with YAML frontmatter:--- title: "{Brief title}" description: "{One sentence for card preview}" status: pending priority: P2 effort: {sum of phases, e.g., 4h} branch: {current git branch} tags: [relevant, tags] created: {YYYY-MM-DD} --- -
Save the overview access point at
{plan-dir}/plan.md. Keep it generic, under 80 lines, and list each implementation phase with status and progress plus links to phase files. -
For each phase, create
{plan-dir}/phase-XX-phase-name-here.mdcontaining the following sections in order: Context links (reference parent plan, dependencies, docs), Overview (date, description, priority, implementation status, review status), Key Insights, Requirements, Architecture, Trade-offs & Alternatives (What alternative approaches were considered? What are the failure modes? Under what changed requirements would you choose differently?), Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps.
Parallel Mode (–parallel flag)
When $ARGUMENTS contains --parallel, apply these additional requirements:
CRITICAL: The planner subagent must create phases that:
- Can be executed independently – Each phase self-contained with no runtime dependencies
- Have clear boundaries – No file overlap between phases (each file modified in ONE phase only)
- Separate concerns logically – Group by architectural layer, feature domain, or technology stack
- Include dependency matrix – Document which phases run sequentially vs in parallel
Parallelization Strategy:
- Group frontend/backend/database into separate phases
- Separate infrastructure setup from application logic
- Isolate different feature domains
- Create independent test phases per module
Additional plan.md requirements when –parallel:
- Dependency graph showing which phases can run in parallel
- Execution strategy (e.g., “Phases 1-3 parallel, then Phase 4”)
- File ownership matrix (which phase owns which files)
Additional phase file requirements when –parallel:
- Parallelization Info section (which phases can run concurrently)
- File Ownership section (explicit list of files this phase owns/modifies)
- Conflict Prevention section (how this phase avoids conflicts with parallel phases)
MANDATORY: Plan Collaboration Protocol (READ THIS)
- Do NOT use
EnterPlanModetool â it blocks Write/Edit/Task tools needed to create plan files and launch subagents - Do NOT start implementing â plan only, wait for user approval
- ALWAYS validate: After plan creation, execute
/plan-reviewto validate the plan - ALWAYS confirm: Ask user to review and approve the plan using
AskUserQuestionwith a recommendation - ALWAYS surface decisions: Use
AskUserQuestionwith recommended options for key architectural/design decisions - Planning = Collaboration: The plan is shaped by user input â never treat it as a unilateral output
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end
- Sacrifice grammar for concision. List unresolved questions at the end