From spectre
Renders Next Steps footer after spectre commands, suggests next actions, and guides users on SPECTRE commands and workflow.
npx claudepluginhub codename-inc/spectre --plugin spectreThis skill uses the workspace's default tool permissions.
The single reference for how to use SPECTRE — for both humans and agents.
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
The single reference for how to use SPECTRE — for both humans and agents.
SPECTRE exists because ambiguity is death for AI coding agents. When scope, UX, and plans are vague, you rely on the LLM to fill in the blanks — and that's how you end up with spaghetti code, conflicts, and AI slop.
SPECTRE uses structured workflows that generate canonical docs — scope documents, UX specs, technical plans, task breakdowns — so you and your agent are aligned on exactly what's being built before a single line of code is written.
The better the inputs, the better the outputs. SPECTRE makes it easy to provide great inputs.
SPECTRE is essentially rapid waterfall: specificity up front → working code → iterate.
AI agents are 10x better at working around working existing code. That's why they're great at refactors — they have an established baseline. SPECTRE gets you to working code faster, then you iterate.
# In Claude Code
/plugin marketplace add Codename-Inc/spectre
/plugin install spectre@codename
/spectre:scope
That's it. Start with scope, follow the prompts, and SPECTRE will guide you through the rest. Every command ends with "Next Steps" suggestions — you never have to remember what to run next.
SPECTRE accumulates context across sessions:
/config/spectre:handoff before session ends or when context window is getting full/clear — next session auto-loads your progress/spectre:forget when switching gears to start freshScope → Plan → Execute → Clean → Test → Rebase → Evaluate
| Phase | Command | What It Does |
|---|---|---|
| Scope | /spectre:scope | Define requirements, constraints, what's IN and OUT |
| Plan | /spectre:plan | Research codebase, create implementation plan + tasks |
| Execute | /spectre:execute | Parallel subagent development in waves |
| Clean | /spectre:clean | Remove dead code, fix duplication, lint |
| Test | /spectre:test | Risk-aware test coverage (not brute-force 100%) |
| Rebase | /spectre:rebase | Safe merge preparation with conflict handling |
| Evaluate | /spectre:evaluate | Architecture review + knowledge capture |
You can use any command standalone — they don't require running in order.
This is how the creator of SPECTRE uses it daily:
/spectre:scope — Get crisp on what's in/out. Non-negotiable unless it's a one-liner.
/spectre:ux_spec first for user flows and components/spectre:plan — Build a well-researched technical design or task set
/spectre:handoff for a fresh context window/spectre:execute — Parallel subagents work through the tasks
/spectre:handoff again for clean contextManual testing + fixes — Test the feature yourself
/plan mode for small fixes/spectre:fix for structured debugging of tough bugs/spectre:scope cycle/spectre:handoff liberally to keep context clean/spectre:sweep — Commit accumulated changes with lint + test
/spectre:clean then /spectre:test — Deep cleanup and risk-aware testing
/spectre:rebase — Rebase onto parent branch, prepare for merge
/spectre:evaluate — Architecture review + capture knowledge for future sessions
Merge/PR — Address PR comments, get it checked in
For small/medium changes (1-5 tasks):
/spectre:quick_dev
Lightweight scope + plan that gets you to execution fast.
For low-complexity features/fixes where you trust the agent:
/spectre:ship
Brain dump context, walk away, review the PR. Zero confirmation gates — scope, TDD, sweep, rebase, and PR creation happen autonomously.
| Command | When to Use |
|---|---|
/spectre:scope | Starting any new feature — interactive scoping with IN/OUT boundaries |
/spectre:kickoff | High-ambiguity projects — includes web research for best practices |
/spectre:research | Need deep codebase understanding before planning |
/spectre:ux_spec | UI-heavy features that need screen layouts, user flows, component states |
| Command | When to Use |
|---|---|
/spectre:plan | Unified entry — researches, assesses complexity, routes to right workflow |
/spectre:create_plan | Complex work needing architectural design before tasking |
/spectre:create_tasks | Requirements/plan ready to become concrete tasks |
/spectre:plan_review | Sanity check a plan/task list for over-engineering |
| Command | When to Use |
|---|---|
/spectre:execute | Tasks exist, ready for coordinated multi-agent parallel execution |
/spectre:code_review | Implementation complete, ready for in-depth review |
/spectre:validate | Verify implementation against original scope requirement-by-requirement |
/spectre:create_test_guide | Generate manual QA checklist based on features and risks |
| Command | When to Use |
|---|---|
/spectre:clean | Deep cleanup — dead code, duplication, artifacts |
/spectre:sweep | Light pass — lint, test, descriptive commits for accumulated changes |
| Command | When to Use |
|---|---|
/spectre:test | After changes — analyzes risk tiers (P0-P3), writes behavioral tests |
| Command | When to Use |
|---|---|
/spectre:rebase | Rebase working branch onto target with conflict handling |
| Command | When to Use |
|---|---|
/spectre:evaluate | Full evaluate — architecture review (background) + knowledge capture |
/spectre:learn | Just capture knowledge from this session |
/spectre:architecture_review | Just run the architecture review |
/spectre:recall {query} | Find and load existing knowledge |
| Command | When to Use |
|---|---|
/spectre:handoff | Save session state — end of session, context full, switching gears |
/spectre:forget | Clear memory, archive logs, start fresh |
/spectre:fix | Structured debugging for tough bugs |
/spectre:quick_dev | Lightweight scope + plan for small/medium tasks |
/spectre:ship | Autonomous end-to-end: brain dump → scope → TDD → commit → rebase → PR |
Starting a feature?
-> /spectre:scope (always start here unless it's trivial)
Feature has complex UI?
-> /spectre:ux_spec after scope, before plan
High ambiguity / new project?
-> /spectre:kickoff (includes web research)
Need to understand code first?
-> /spectre:research
Have scope, need plan?
-> /spectre:plan (auto-routes based on complexity)
Have tasks, ready to build?
-> /spectre:execute
Code complete, need review?
-> /spectre:code_review then /spectre:validate
Accumulated uncommitted changes?
-> /spectre:sweep (light) or /spectre:clean (deep)
Need test coverage?
-> /spectre:test
Ready to merge?
-> /spectre:rebase
Feature done?
-> /spectre:evaluate (review + learn)
Ending session?
-> /spectre:handoff
Switching contexts?
-> /spectre:forget
Bug to fix?
-> /spectre:fix
Small task, skip ceremony?
-> /spectre:quick_dev
Low-complexity task, full autonomy?
-> /spectre:ship (brain dump → PR, zero gates)
SPECTRE dispatches these automatically — you don't need to call them directly. But @spectre:web-research is useful for ad-hoc web research (like mini deep-research).
| Agent | Purpose | Model |
|---|---|---|
@spectre:dev | Implementation with MVP focus | sonnet |
@spectre:analyst | Understand how code works | haiku |
@spectre:finder | Find where code lives | haiku |
@spectre:patterns | Find reusable patterns | sonnet |
@spectre:web-research | Web research | sonnet |
@spectre:tester | Test automation | sonnet |
@spectre:reviewer | Independent code review | opus |
@spectre:sync | Session memory consolidation | haiku |
SPECTRE generates these documents in docs/tasks/{branch_name}/:
| Document | Generated By | Purpose |
|---|---|---|
concepts/scope.md | /spectre:scope | What's IN and OUT |
specs/ux.md | /spectre:ux_spec | User flows, components, interactions |
specs/plan.md | /spectre:create_plan | Technical design and phasing |
specs/tasks.md | /spectre:create_tasks | Concrete tasks with acceptance criteria |
reviews/code_review.md | /spectre:code_review | Severity-based code review findings |
validation/validation_gaps.md | /spectre:validate | Gaps between scope and implementation |
testing/*_test_guide.md | /spectre:create_test_guide | Manual QA checklists |
session_logs/*_handoff.json | /spectre:handoff | Session state snapshots |
Keep these checked into git — they're the context in context engineering.
Always render a 60-column ASCII box footer at the end of command output.
╔══════════════════════════════════════════════════════════╗
║ NEXT STEPS ║
╠══════════════════════════════════════════════════════════╣
║ Phase: {phase} | {status} | {blockers} ║
╟──────────────────────────────────────────────────────────╢
║ Next — {concise recommendation; 1–2 lines max} ║
║ ║
║ Options: ║
║ - {/spectre:command or action} — {why} ║
║ - {/spectre:command or action} — {why} ║
║ - {/spectre:command or action} — {why} ║
║ … up to 5 total; max 2 manual actions ║
║ ║
║ Reply — {only if textual reply expected} ║
╚══════════════════════════════════════════════════════════╝
Active — work in progress, no blockersPending Input — awaiting user decision/confirmationBlocked — external dependency or unresolved issueOn Hold — paused, waiting for external factorComplete — phase finished successfully/spectre: prefix╟──────╢ between status and next rowsCRITICAL:
/spectre: prefix (e.g., /spectre:scope, /spectre:execute)Correct:
/spectre:scope — Interactive feature scoping
/spectre:execute — Parallel agent execution
Run manual tests — Execute test guide checklist
Incorrect:
/scope — Missing spectre: prefix
/run tests — Not a slash command
/commit — Does not exist