plugins/spectre/skills/spectre-create_plan/SKILL.md
👻 | Create implementation plan from PRD - primary agent
npx skillsauth add codename-inc/spectre 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.--depth light and TASK_DIR/task_context.md already contains substantive router research (file locations, code understanding, codebase patterns, and impact summary) → use existing research; skip to Step 3.@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.
Action — LightModeClarifications: If ARGUMENTS contains --depth light, do NOT stop for user clarifications. Use conservative, codebase-consistent defaults and record them in the plan's Filled Assumptions section, then skip to Step 3. If an unresolved question would affect canonical scope, security/privacy, data correctness, or public API behavior, return control to plan with a tier reassessment recommendation instead of guessing.
Action — DetectClarificationMethod: Check if 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 specifiedlight, standard, comprehensiveAction — DetectOrchestratedMode: If ARGUMENTS contains --no-review, this workflow is being invoked by plan as part of the meta-flow. Generate and save the plan, then return control to plan without asking for standalone user review.
Action — DesignTechnicalApproach: Create the implementation plan.
Every plan, regardless of depth, MUST include the verification spine. LIGHT is concise, not shallow: keep it brief and decisive, but still explain the solution shape, codebase pattern to follow, risks/assumptions, and how the work will be verified.
Required for LIGHT, 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.LIGHT constraints:
plan.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:
If --no-review is present:
"Draft implementation plan saved to
{path}. Returning toplanfor the next routed step."
Do NOT wait for user approval. Return control to the invoking plan workflow.
Else:
"Implementation plan saved to
{path}. Review and reply with feedback or 'Approved' to proceed."
Wait — User provides feedback or approval, unless --no-review is present.
Action — ConfirmCompletion:
If --no-review is present:
"Draft implementation plan saved to
{plan_path}. Returning toplan."
Stop here. Do not render the standalone Next Steps footer.
"🎯 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