一键导入
spec-driven
Create a SPEC.md for a feature, validate via Council, then generate failing tests from acceptance criteria before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a SPEC.md for a feature, validate via Council, then generate failing tests from acceptance criteria before implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | spec-driven |
| description | Create a SPEC.md for a feature, validate via Council, then generate failing tests from acceptance criteria before implementation. |
| user_invocable | true |
CAB-2005: Formalize the spec-first pattern. Council validates the spec BEFORE code. Acceptance criteria become test cases. Tests are written BEFORE implementation.
/spec-driven CAB-XXXX
/spec-driven "feature description"
linear.get_issue("CAB-XXXX").claude/templates/SPEC.mdSPEC.mdRun the 4-persona Council but evaluate the spec quality, not the feature itself:
Threshold: >= 7.0 to proceed. Below 7.0: revise spec first.
From each acceptance criterion, generate a test:
test_spec_ac1_<description>() in tests/test_spec_<ticket>.pydescribe('spec/CAB-XXXX', () => { it('AC1: ...') }) in src/__tests__/spec/fn spec_ac1_description() in inline #[cfg(test)] mod testsAll tests MUST fail (red) at this stage. If any passes, the criterion is already met or the test is wrong.
Write code to make all tests pass. Standard Pattern 3 workflow.
SPEC.md stays in the branch (committed with the PR) as documentation@edge-case).spec.md = technical only. Business data → stoa-strategy (private repo)Force a full-file rewrite (Write) instead of patch (Edit) when Edit keeps failing or diff is large. Context rot mitigation — use when Edit has failed ≥2× on same file, or when estimated diff >30% of file size.
STOA PR Guardian — advisory three-axis review (ADR compliance, security, AI code smell) with binary GO/NO-GO verdict + confidence. Never approves, never blocks merge.
Analyze cycle capacity gap and propose backlog items to fill the sprint to ~80% of proven velocity.
Visual roadmap snapshot — theme progress, milestones, velocity. Zero new infra (Linear MCP + velocity.json).
Cycle-aware bidirectional sync between plan.md and Linear. Discovers all cycle tickets, detects drift, updates markers.
Debug GitHub Actions CI pipeline failures. Analyse les logs de workflow, identifie la cause racine et propose un fix.