بنقرة واحدة
sdd-clarify
Reduce spec ambiguities before design. Trigger: orchestrator launches clarify after sdd-spec completes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Reduce spec ambiguities before design. Trigger: orchestrator launches clarify after sdd-spec completes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate repository wiki pages mapping architecture, specs, and status. Trigger: orchestrator launches sdd-document.
Shared SDD references for installed skills. Not invokable.
Read-only generalist screening contract for selective 4R review.
Read-only targeted correction validator for a bounded review lineage.
Write SDD delta specs with requirements and scenarios. Trigger: orchestrator launches spec work for a change.
Create pull requests with branch, validation, and publication checks. Trigger: creating, opening, or preparing PRs for review.
| name | sdd-clarify |
| description | Reduce spec ambiguities before design. Trigger: orchestrator launches clarify after sdd-spec completes. |
| disable-model-invocation | true |
| user-invocable | false |
| license | MIT |
| metadata | {"author":"manuel-retamozo-garcia","version":"1.0","delegate_only":true} |
| runtime_capabilities | {"execute":false,"mcp":false,"write":true} |
ORCHESTRATOR GATE: If you loaded this skill via the
skill()tool, you are the ORCHESTRATOR — STOP. Do NOT execute these instructions inline. Delegate to the dedicatedsdd-clarifysub-agent using your platform's delegation primitive (e.g.,task(...), sub-agent invocation, etc.). This skill is for EXECUTORS only.
You are a sub-agent responsible for AMBIGUITY REDUCTION. You analyze change-local specs, detect material gaps, ask at most 5 directed questions through the question_gate envelope, and encode accepted answers inline into each spec.md. When no material ambiguities exist you fast-path to status: success immediately.
From the orchestrator:
openspec | none)question_gateFollow Section B (retrieval) and Section C (persistence) from
skills/_shared/sdd-phase-common.md.
skills/_shared/openspec-convention.md.openspec mode, treat openspec/changes/{change-name}/state.yaml plus phase artifacts as canonical workflow state; never rely on conversation history.Follow Section A from skills/_shared/sdd-phase-common.md.
Read the following in order (NO writes at this step):
openspec/changes/{change-name}/proposal.md — understand the change intent and scope.openspec/changes/{change-name}/specs/** — read ALL change-local spec files; these are your primary analysis target.openspec/specs/** — read main specs for context only; you MUST NOT write to these files.You are read-only for every file except change-local specs.
Analyze each change-local spec for ambiguities. For each candidate ambiguity, apply the materiality test:
A question is material ONLY IF its answer would change at least one of: architecture, data model, task breakdown, automated tests, UX flows, or compliance scope.
Taxonomy categories (a question MUST belong to at least one):
0-question fast-path: If zero material ambiguities are detected (specs have clearly defined actors, acceptance criteria, and no placeholder text or unresolved decision markers), return immediately:
status: success
executive_summary: "No critical ambiguities detected"
questions_asked: 0
artifacts: []
next_recommended: sdd-design
Select the top ≤5 ambiguities by impact. Each question MUST be exactly one of:
Multiple-choice:
{
"header": "<short title>",
"question": "<question text>",
"options": [
{ "label": "<option A>", "description": "<rationale + trade-off vs. option B + reversibility>", "recommended": true },
{ "label": "<option B>" }
],
"multiSelect": false
}
Rules: 2–5 mutually exclusive options; multiSelect: false. Any option marked recommended: true MUST carry a description covering rationale, trade-off, and reversibility, per skills/_shared/sdd-phase-common.md §D Recommended Option Description Contract.
Short-answer:
{
"header": "<short title>",
"question": "<question text — answer SHOULD be ≤ 5 words>",
"allowFreeformInput": true
}
If more than 5 material ambiguities are detected, select the top 5 by impact; list the remainder in the return envelope risks field tagged follow-up required.
Return:
status: blocked
blocker_type: needs_user_decision
question_gate:
reason: "Spec ambiguities detected that would materially affect the design."
questions: [ ... ] # 1–5 entries
questions_asked: <N> # count of questions in this gate
Do NOT ask the user directly. The orchestrator presents the question_gate via vscode/askQuestions and relaunches you with the answers.
When relaunched with user answers:
Check each answer (case-insensitive, whole-word match) for the tokens stop, done, or skip.
If ANY answer contains one of these tokens as a standalone word:
status: success with executive_summary noting partial coverage.risks tagged deferred by user.For each accepted answer, perform the following two operations on the corresponding change-local spec file:
Operation 1 — Append to ## Clarifications:
## Clarifications section exists, append one at the end of the file.## Clarifications, find or create a ### Session YYYY-MM-DD subsection using today's date.- Q: {question text} → A: {answer text}.Q: … → A: … pair does NOT already exist. If it does, skip this write silently and do NOT increment questions_asked for the duplicate.Operation 2 — Apply to the normative section:
Constraints:
Q: … → A: … entries for the same pair.openspec/changes/{change-name}/specs/.After encoding all accepted answers:
status: success
executive_summary: "{N} ambiguities resolved; {M} remain open"
questions_asked: <cumulative count across all relaunch cycles; duplicates not counted>
artifacts: [ list of spec files written ]
next_recommended: sdd-design
risks: [ any follow-up required or deferred by user items ]
status: blocked with question_gate.openspec/changes/{change-name}/specs/.Q: … → A: … pairs before writing.stop|done|skip (case-insensitive whole-word) before encoding answers.skills/_shared/sdd-phase-common.md.rules.specs from openspec/config.yaml.