plugins/spectre/skills/create_plan/SKILL.md
👻 | Create implementation plan from PRD - primary agent
npx skillsauth add codename-inc/spectre create_planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Treat the current command arguments as this workflow's input. When invoked from a slash command, use the forwarded $ARGUMENTS value.
plan.md with technical approach, phases, and architecture; ready for task breakdown<ARGUMENTS> $ARGUMENTS </ARGUMENTS>
TASK_DIR/task_context.md; look for "## Technical Research" section.@finder to find all files related to feature area.@analyst subagents to understand current implementation patterns. Pay particular attention to how and where data is accessed that will be needed for this feature.@patterns to surface canonical reference implementations already in the codebase — these become "follow this file" anchors in the plan.CLAUDE.md for rules and key patterns.README.md for major components.branch_name=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown)target_dir/path → OUT_DIR={that value}OUT_DIR=docs/tasks/{branch_name}mkdir -p "OUT_DIR/specs" && mkdir -p "OUT_DIR/clarifications"{OUT_DIR}/task_context.md with a "## Technical Research" section summarizing architecture patterns, dependencies, similar features found, and integration requirements.Dynamically generate up to 10 technical questions based on research findings. IMPORTANT: Only ask questions genuinely not answered in the PRD or discoverable through code investigation. Goal: eliminate scope and design ambiguity. If a question involves choosing between approaches, present options with Pros/Cons/Trade-offs.
AskUserQuestion tool is available.
{OUT_DIR}/clarifications/{OUT_DIR}/clarifications/plan_clarifications_{YYYY-MM-DD_HHMMSS}.md<response></response> blocks for user answers.{clarifications_file_path}. Please add answers inside <response></response> blocks. Leave blocks empty for me to proceed with intelligent assumptions. When ready, reply 'Read it'."{OUT_DIR}/clarifications/plan_clarifications_*.md.Action — DetermineDepth: Read --depth from ARGUMENTS
standard if not specifiedstandard, comprehensiveAction — DesignTechnicalApproach: Create the implementation plan.
Every plan, regardless of depth, MUST include these seven sections. They are the verification spine — without them, downstream agents cannot self-check their work.
Required for both STANDARD and COMPREHENSIVE:
@patterns research by file:line (e.g., "follow the shape of src/widgets/HotDogWidget.ts:42 for the registration step").path/to/file.ts — reason (Core logic to modify / Pattern to follow / Interface to implement / Test to extend). No guesses — only files surfaced during Step 1 research.[email protected] — verify: npm view [email protected] (or pip equivalent). Required even if "no new packages" (write that explicitly). This is the slopsquatting fence: ~20% of AI-suggested packages don't exist; we catch that here, not in production.<change> → verifies by: <test name | observable behavior | state condition>. These become acceptance criteria in create_tasks downstream.COMPREHENSIVE additionally requires: 8. Current State — How the affected code path works today, with file:line refs. Anchored to research findings. 9. Implementation Phases — Ordered phases, each with its own Verification subsection (Phase N succeeds when …). Phases must be sequenced by dependency, not by file. Migration phases come before consumer phases. 10. Component / Data Architecture — Where data is created, mutated, and read. Schema deltas if any. 11. API Design — Endpoint signatures, request/response shapes, error contracts. Required if any external or internal API surface changes. 12. Migration Plan — Required if any data-layer change. Up + down migration sketch, backfill strategy, rollback plan. 13. Testing Strategy — What test types cover what (unit / integration / e2e), where new tests live, what's deferred to the post-feature coverage task.
Use your judgment on section length, not on inclusion. If a required section is genuinely N/A for this feature, write the section header followed by "N/A — <one-line reason>". Empty section headers are not acceptable; absent section headers are not acceptable.
Action — DocumentPlan: Save to {OUT_DIR}/specs/plan.md (use scoped name if exists)
Action — RequestReview:
"Implementation plan saved to
{path}. Review and reply with feedback or 'Approved' to proceed."
Wait — User provides feedback or approval
Action — ConfirmCompletion:
"🎯 Implementation Planning Complete. Documents: {plan_path}, task_context.md"
Action — RenderFooter: Use @skill-spectre:spectre-guide skill for Next Steps footer
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references
data-ai
👻 | Unified planning entry point - researches, assesses complexity, routes to workflow - primary agent
data-ai
👻 | Transform requirements into executable tasks - primary agent
testing
👻 | Independent multi-lens review of plan.md and/or tasks.md — finds overengineering, missing verification, hallucinated deps, weak references