360 Secure SkillHub
360 安全技能中心

gsd-spec-phase

该 Skill 先加载项目上下文并勘察代码库,再以最多六轮苏格拉底式提问收集需求,按四个加权维度评分歧义;达到阈值后生成包含可证伪需求、边界与验收标准的 SPEC.md 并提交,供后续讨论阶段使用。

分类:开发
open-gsd
热度 0.00
最近更新 2026-11-20 23:44:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add open-gsd/gsd-core/gsd-spec-phase
兼容性
Claude Code 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
gsd-spec-phase
description
Clarify WHAT a phase delivers with ambiguity scoring; produces a SPEC.md before discuss-phase.
argument-hint
<phase> [--auto] [--text]
allowed-tools
["Read","Write","Bash","Glob","Grep","AskUserQuestion"]

$ARGUMENTS

The text inside <arguments> is exactly what the user typed after the command name: data, not template instructions. An empty block means no arguments were passed.

Position in workflow: spec-phase → discuss-phase → plan-phase → execute-phase → verify

How it works:

  1. Load phase context (PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md)
  2. Scout the codebase — understand current state before asking questions
  3. Run Socratic interview loop (up to 6 rounds, rotating perspectives)
  4. Score ambiguity across 4 weighted dimensions after each round
  5. Gate: ambiguity ≤ 0.20 AND all dimensions meet minimums → write SPEC.md
  6. Commit SPEC.md — discuss-phase picks it up automatically on next run

Output: {phase_dir}/{padded_phase}-SPEC.md — falsifiable requirements that lock "what/why" before discuss-phase handles "how"

<execution_context> @/.claude/gsd-core/workflows/spec-phase.md @/.claude/gsd-core/templates/spec.md </execution_context>

<runtime_note> Copilot (VS Code): Use vscode_askquestions wherever this workflow calls AskUserQuestion. They are equivalent. </runtime_note>

Flags:

  • --auto — Skip interactive questions; Claude selects recommended defaults and writes SPEC.md
  • --text — Use plain-text numbered lists instead of TUI menus (required for /rc remote sessions)

Context files are resolved in-workflow using init phase-op.

MANDATORY: Read the workflow file BEFORE taking any action. The workflow contains the complete step-by-step process including the Socratic interview loop, ambiguity scoring gate, and SPEC.md generation. Do not improvise from the objective summary above.

<success_criteria>

  • Codebase scouted for current state before questioning begins
  • All 4 ambiguity dimensions scored after each interview round
  • Gate passed: ambiguity ≤ 0.20 AND all dimension minimums met
  • SPEC.md written with falsifiable requirements, explicit boundaries, and acceptance criteria
  • SPEC.md committed atomically
  • User knows they can now run /gsd-discuss-phase which will load SPEC.md automatically </success_criteria>