一键导入
spec-workflow
SDD specification protocol: risk-based spec_mode classification, required sections per mode, plan approval gate, and artifact directory conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
SDD specification protocol: risk-based spec_mode classification, required sections per mode, plan approval gate, and artifact directory conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-agent delegation rules, three-phase workflow (Plan/Build/Review), model selection, collaboration gates, and Ralph Loop integration.
Autonomous build driver after SDD spec approval: phase-scoped headless build sessions, driver-owned commits, cross-provider review gates, milestone pauses, and fail-closed escalation — under explicit opt-in autonomy profiles.
When and how to ask clarifying questions before implementing. Data model review gate and ambiguity resolution rules.
Quality gates, prohibited patterns, verification discipline, and self-audit rules for all code generation and review sessions.
Cross-copilot portable conventions: read before write, minimal changes, git discipline, project structure, and priority rules.
Copyright header rules for generated source files. Applies the company name from providers.toml to new files.
| name | spec-workflow |
| description | SDD specification protocol: risk-based spec_mode classification, required sections per mode, plan approval gate, and artifact directory conventions. |
Rules governing when a Software Design Document (SDD) spec is required, what sections it must contain, and how it gates the transition from Plan to Build.
Every planned feature is assigned a spec_mode based on change risk. The Plan agent determines this value and records it in specs/<feature-id>/plan.md YAML frontmatter.
| spec_mode | When to use |
|---|---|
full | Security changes, schema changes, integration work, features touching more than 2 files |
lightweight | Features touching 1–2 files, non-critical changes |
none | Bug fixes (non-security), docs-only changes, trivial or cosmetic changes |
When in doubt, escalate to the next higher mode. Under-speccing a risky change costs more than over-speccing a safe one.
All sections from spec-template.md are required, plus a tasks.md task breakdown:
tasks.md — discrete, bounded build tasks derived from the specOnly two sections are required in spec.md:
No spec.md is required. The Plan agent writes only plan.md.
The Plan agent always writes specs/<feature-id>/plan.md regardless of spec_mode. The file must include YAML frontmatter with at minimum:
---
feature_id: <feature-id>
spec_mode: full | lightweight | none
status: draft | approved
origin:
# at least one of: issue, urls, transcripts — OR the explicit
# internal/unrecoverable exemption. See origin-confirmation skill.
issue: <repo>#<number>
urls:
- <external-reference-url>
transcripts:
- specs/<feature-id>/origin/<date>-<slug>.md
origin_claim: |
One paragraph in the user's words quoting their original ask.
---
The origin: block is required by scripts/validate-spec.sh and the
origin-confirmation gate. See shared/skills/origin-confirmation/SKILL.md
for the full convention, the three escape hatches (type: internal,
type: unrecoverable), and the alignment-check protocol.
full or lightweight:
plan.md and spec.md (with required sections populated).[NEEDS CLARIFICATION] markers in spec.md are resolved via user questions before writing.plan.md and spec.md.none:
plan.md only.plan.md directly.specs/<id>/plan.md frontmatter to determine spec_mode.full or lightweight: Build agent checks that spec.md exists and contains no unresolved [NEEDS CLARIFICATION] markers before proceeding.[NEEDS CLARIFICATION] markers in spec.md must be resolved before Build starts.[NEEDS CLARIFICATION] markers remain in spec.md.Example marker (must not appear in an approved spec):
[NEEDS CLARIFICATION]: Should this endpoint require authentication?
All SDD artifacts for a feature live under specs/<feature-id>/.
| Artifact | Written for | Description |
|---|---|---|
plan.md | all modes | Plan with spec_mode frontmatter and high-level approach |
spec.md | full and lightweight | Software design document with required sections |
tasks.md | full only | Discrete, bounded build tasks for delegation |
collaboration/plan-consult.md | when CCT_PEER_REVIEW_ENABLED=true | Advisory plan review artifact (see review-loop.md) |
collaboration/build-review.md | when CCT_PEER_REVIEW_ENABLED=true | Build review artifact — PASS or approved bypass required (see review-loop.md) |
The specs/ directory should be committed to the repository so the Plan and Build phases can operate across session boundaries.