9thlevelsoftware/legion/spec-pipeline
- community
Checking that the SKILL.md file is still in the repository.
Pre-coding specification pipeline that produces structured spec documents through 5 stages
Install
npx vskill@latest install 9thlevelsoftware/legion/spec-pipelineSKILL.md
Spec Pipeline
Pre-coding specification pipeline that produces a structured spec document before implementation begins. Adapted from Auto-Claude's multi-stage spec pipeline, adapted for Legion's personality-first agent model and human-readable state conventions.
Can be invoked standalone (before /legion:plan) or offered as an optional step during /legion:plan (step 3.6). Output is written to .planning/specs/{NN}-{phase-slug}-spec.md, where {NN} is the zero-padded phase number and {phase-slug} follows the phase slug convention from workflow-common-core.
The 5 stages run sequentially: gather requirements, research domain, write spec, critique spec, assess complexity. Each stage has defined inputs, process, and outputs that feed the next stage. Specs must resolve design decisions before planning: API/type contracts, file placement, data/control flow, compatibility constraints, failure modes, and acceptance checks belong in the spec so /legion:plan can generate decision-complete implementation contracts.
Activation trigger (concrete — no "when appropriate")
Run this pipeline ONLY when at least one of the following conditions holds. Spec writing is expensive; never invoke speculatively.
- The user passed
--specto/legion:planor invoked the pipeline directly from/legion:quick. - The phase's CONTEXT.md YAML frontmatter declares
spec_required: true. - The phase has at least 4 requirement IDs AND the phase.complexity field in ROADMAP.md is
high— automatically offer (user confirmation required before running) but do not auto-run. - The phase touches a new architectural surface (no prior SUMMARY.md under
.planning/phases/references any file in the phase'sfiles_modifiedlist) AND at least one of: requirement count ≥ 3, estimated plans ≥ 3.
If none of the above hold: SKIP this pipeline. Proceed with standard phase decomposition.
Section 1: Gather Requirements
Extract and organize all requirements for the target phase into a structured summary.
Section 2: Research Domain
Identify knowledge gaps and research the codebase and domain to fill them.
Section 3: Write Spec
Produce a structured specification document from requirements and research.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/spec-pipeline/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 7
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/9thlevelsoftware/legion/spec-pipeline)