π» | Unified planning entry point - researches, assesses complexity, routes to workflow - primary agent
Analyzes codebase complexity and routes feature requests to appropriate planning workflows.
/plugin marketplace add codename-inc/spectre/plugin install spectre@spectre<ARGUMENTS> $ARGUMENTS </ARGUMENTS>
β οΈ NON-NEGOTIABLE: This workflow MUST invoke slash commands via the Skill tool. Failure to invoke
/spectre:create_planand/spectre:create_tasksis a critical error. Do NOT summarize, describe, or skip these commands. INVOKE THEM.
After ANY user conversation or questions:
You MUST call these skills (not describe them):
skill: "spectre:create_plan" and args: "{path} --depth {tier}" β generates plan.mdskill: "spectre:create_tasks" and args: "{path}" β generates tasks.mdtasks.md or plan.md β use scoped namesAction β DetermineOutputDir:
OUT_DIR=docs/tasks/{branch_name} (or user-specified)mkdir -p "${OUT_DIR}"Action β ScanExistingContext: Read all existing artifacts in {OUT_DIR}/ (if you havenβt already) and assess coverage across 4 dimensions.
Scan for: task_context.md, specs/plan.md, concepts/scope.md, research/*.md
| Dimension | Covered if artifact contains... | Covered by |
|---|---|---|
| File locations | Specific file paths relevant to this feature, entry points, config files | @finder |
| Code understanding | Data flow analysis, dependency tracing, how current code works with file:line refs | @analyst |
| Codebase patterns | Similar implementations found in codebase, reusable components, naming/style conventions | @patterns |
| External research | Best practices, libraries/frameworks, prior art, common pitfalls with source links | @web-research |
For each dimension, assess: covered (artifact has substantive findings for this feature) or gap (missing, superficial, or about a different feature).
Action β DispatchResearch: Spawn agents only for dimensions marked as gaps. Skip agents whose dimensions are already covered. Each prompt must include the feature/problem description from ARGUMENTS so the agent has full context.
If all 4 covered β skip to SaveResearch (merge existing findings into task_context.md if scattered across files)
If gaps exist β spawn only the needed agents in parallel:
@finder (if File locations = gap) β "Find all files, components, entry points, routes, and configuration related to [feature/problem]. Include: (1) files that would need to be modified or extended, (2) entry points where this feature connects to the system (routes, handlers, event listeners, CLI commands), (3) configuration files, schemas, or migrations that may be affected, (4) test files covering the affected areas. Return file paths organized by relevance."
@analyst (if Code understanding = gap) β "Analyze how the code paths related to [feature/problem] work end-to-end. Trace: (1) data flow from input through processing to storage and output, (2) key dependencies and how components interact, (3) state management patterns and data access methods in the affected areas, (4) error handling and edge cases in the current implementation. Return findings with specific file:line references."
@patterns (if Codebase patterns = gap) β "Find existing implementations in this codebase that are similar to [feature/problem] and could serve as a reference. Look for: (1) analogous features already built β how were they structured?, (2) reusable components, utilities, or abstractions we should leverage, (3) conventions for naming, file organization, and code style in this area, (4) testing patterns used for similar features. Return concrete code examples with file:line references."
@web-research (if External research = gap) β "Research best practices, proven patterns, relevant libraries/frameworks, and how other projects solve [feature/problem]. Focus on: (1) industry best practices and common pitfalls, (2) libraries or frameworks that simplify this work, (3) how well-known open-source projects approach similar problems, (4) architectural patterns recommended for this type of feature. Return findings with source links."
Wait for all dispatched agents; read identified files
Action β SaveResearch: Merge all findings (existing artifacts + new agent results) into {OUT_DIR}/task_context.md with sections: Architecture Patterns, Dependencies, Implementation Approaches, Impact Summary, and External Research (best practices, recommended libraries/frameworks, prior art, common pitfalls)
CHECKPOINT: After architecture discussion, proceed IMMEDIATELY to Step 3. Do NOT end turn without continuing the workflow.
Use research findings from Step 1 to determine appropriate planning depth.
Action β AssessFromResearch: Score complexity signals from research:
| Signal | Source | Assessment |
|---|---|---|
| Files impacted | @finder | 1-3 files = Low, 4-8 = Med, 9+ = High |
| Pattern match | @patterns | Clear existing pattern = Low, Adapt pattern = Med, New pattern = High |
| Components crossed | @analyst | 1 component = Low, 2-3 = Med, 4+ = High |
| Data model changes | Research findings | None = Low, Modify existing = Med, New models/schema = High |
| Integration points | Research findings | Internal only = Low, 1-2 external = Med, 3+ external = High |
| External complexity | @web-research | Well-documented with libraries = Low, Some prior art = Med, Novel/emerging = High |
Action β CheckHardStops: Any true = automatic COMPREHENSIVE | db_schema_destructive | new_service_or_component | auth_or_pii_change | | payment_billing_logic | public_api_change | caching_consistency | slo_sla_risk |
Action β DetermineTier:
Action β LogTier: Note the assessed tier in your response for transparency, then proceed immediately to Step 4. Do NOT ask for confirmation.
CHECKPOINT: After determining tier, proceed IMMEDIATELY to Step 4. The ONLY valid next action is invoking a Skill. Do NOT end turn here. Do NOT ask user to confirm the tier.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOU MUST USE THE SKILL TOOL TO INVOKE THESE COMMANDS β
β β
β β WRONG: "I'll now create the plan..." β
β β WRONG: "The next step would be to run /spectre:create_plan" β
β β WRONG: Ending turn without invoking Skill tool β
β β
β β
CORRECT: Skill tool with skill: "spectre:create_plan", args: "..." β
β β
CORRECT: Skill tool with skill: "spectre:create_tasks", args: "..."β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DO NOT:
YOU MUST:
skill: "spectre:create_plan", args: "{OUT_DIR}/task_context.md --depth {tier}"skill: "spectre:create_tasks", args: "{OUT_DIR}/task_context.md"If LIGHT:
skill: "spectre:create_tasks", args: "{OUT_DIR}/task_context.md --depth light"ElseIf STANDARD:
skill: "spectre:create_plan", args: "{OUT_DIR}/task_context.md --depth standard"skill: "spectre:create_tasks", args: "{OUT_DIR}/task_context.md"ElseIf COMPREHENSIVE:
skill: "spectre:create_plan", args: "{OUT_DIR}/task_context.md --depth comprehensive"skill: "spectre:create_tasks", args: "{OUT_DIR}/task_context.md"@skill-spectre:spectre-guide skill for Next Steps/planStart Manus-style file-based planning. Creates task_plan.md, findings.md, progress.md for complex tasks.