Runs an ambiguity sweep over a written PRD.md, dispatching a devil's-advocate subagent to find under-specified points, then resolves or defers each via AskUserQuestion, updating the PRD in place.
Ships in sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ambiguity sweep over a written PRD.md. It hunts the PRD for under-specified points — vague terms, unmeasured NFRs, AC missing error/authz/edge behavior, unstated assumptions, conflicting requirements, undefined domain terms, missing actors, scope creep — then dispatches a clean-context devil's-advocate subagent that re-reads the PRD fresh and answers one question: where would two engineers reasonably build different things from this? Each ambiguity it surfaces is closed with the user: either resolved (the PRD is tightened in place) or deferred (a §8 Open-Questions row with owner + due). It exists so fix-term / architecture-design never proceed on an ambiguous PRD.
This is a sweep, not a full authoring stage — it does not run the shared Socratic loop or the coherence critic. Its shared dependencies:
→ ../_shared/ask-style.md (resolve/defer question phrasing) · ../_shared/interview-depth.md (sweep aggressiveness + per-finding question volume) · ../_shared/agent-roster.md (dispatch discipline).
Depth governs how aggressively the sweep hunts + the per-finding question volume. (Every surfaced ambiguity is still Resolved or Deferred at every level — that's a floor, not a dial.)
PM + Tech Lead (the PRD's co-authors resolve their own ambiguities). PM owns vague-term / scope / missing-actor calls; Tech Lead owns unmeasured-NFR / under-specified-AC / conflicting-requirement calls.
<slug> — same feature slug used by write-prd.docs/features/<slug>/PRD.md. Absent → STOP and point: «run /sdlc:write-prd <slug> first — clarify-prd sharpens an existing PRD, it does not write one».docs/features/<slug>/CONTEXT.md — if present, its ## Glossary is canonical; an "undefined-term" finding for a word already glossed there is a false positive (drop it).Gate + set interview depth. test -f docs/features/<slug>/PRD.md → missing = refuse with the pointer above. Read the PRD (and CONTEXT.md ## Glossary if present, to suppress false "undefined-term" hits). Then set the interview depth (the opening question): read interview_depth from .claude/sdlc.local.md if present (else default medium), and — unless a --depth=easy|medium|hard arg was passed — ask ONE depth-selection AskUserQuestion phrased per ../_shared/ask-style.md, with the saved/medium value as the «(Recommended)» first option. The level tunes how adversarially the sweep + subagent hunt (easy: only build-divergence that changes behavior, with assumptions stated; medium: balanced; hard: adversarial, every fork surfaced) and the per-finding question volume → ../_shared/interview-depth.md.
First-pass self-sweep. Walk the PRD against the eight ambiguity classes in ./references/ambiguity-checks.md (vague-term / unmeasured-NFR / under-specified-AC / unstated-assumption / conflicting-requirement / undefined-term / missing-actor / scope-creep). Note candidate findings with a §ref each — do not edit yet.
Devil's-advocate subagent (the core mechanic). Dispatch the devils-advocate agent — subagent_type: "sdlc:devils-advocate" (carries its own model: opus + effort: high; clean context — it never saw this conversation). Pass only the slug + the PRD path; it Reads PRD.md (and CONTEXT.md) itself — inline nothing — and returns "two engineers would diverge here" findings. The dispatch follows the contract in ../_shared/agent-roster.md (clean-isolated context, cited findings, NO_AMBIGUITIES if none). If sdlc:devils-advocate is unavailable at runtime, fall back to a general-purpose Agent with the prompt body in ./references/ambiguity-checks.md.
Merge + dedupe. Union the self-sweep (step 2) with the subagent findings (step 3); collapse duplicates (same §ref + same class). Keep the highest-impact first (conflicting-requirement > under-specified-AC > unmeasured-NFR > undefined-term > missing-actor > scope-creep > vague-term > unstated-assumption). If the merged set is empty → report «PRD is unambiguous», stamp nothing, suggest fix-term / architecture-design.
Resolve or defer, per finding. For each finding, one AskUserQuestion phrased per ../_shared/ask-style.md, offering: Resolve now (user picks/dictates the tightening) · Defer to §8 (→ Open-Questions row, owner + due captured in a follow-up; missing either = stays unresolved, re-ask once) · Not an ambiguity (false positive — drop it, e.g. a term already in CONTEXT). Every finding ends Resolved or Deferred — none dangling. Depth tunes the question volume, not the floor: at easy, the skill resolves the unambiguous, low-stakes findings itself with sensible tightenings and lists them in a stated-assumptions ledger for a batch veto, asking only the behavioral/high-stakes forks; at hard, it asks every finding. The «zero dangling» rule holds at every level.
Write resolutions back. Apply Resolve edits in the PRD's native section (tighten the §5 AC into business-observable form, replace a §6 adjective with a numeric target + measurement, fix a §1 term, add a missing §4 actor/US, cut a §3 scope-creep line). Append every Defer as a §8 checkbox row - [ ] <question>? Default now: <X>. — owner: <name/role>, due: <date or stage>. Keep a short edits-log (one line per finding: class · §ref · resolved|deferred · before→after).
undefined-term finding is Resolved, immediately invoke /sdlc:fix-term <slug> for that term — compare it against CONTEXT.md and add/update the definition now, not as a deferred note. clarify-prd never resolves a term by inventing a meaning inline; the canonical definition lands in CONTEXT.md so architecture-design / downstream stages read one source.Stamp + commit. Set updated_at: <today> in the frontmatter. Re-respect write-prd's invariants when tightening (§5 AC stays free of HTTP/status/error-code/SQL tokens; §6 numbers carry a measurement; §4 roles only from the glossary). Propose clarify-prd: <slug> — N resolved, M deferred. Then emit the stage-handoff block per ../_shared/handoff.md — What I did + Review (tightened PRD.md) + Run next (/clear, then /sdlc:fix-term <slug>, or /sdlc:architecture-design <slug> to skip the glossary).
write-prd's contracts: §5 AC carry no HTTP/status/error-code/SQL tokens, §6 NFR rows carry a numeric target + measurement (no adjectives), §4 roles match the CONTEXT glossary.updated_at reflects today; edits-log kept; commit proposed.AskUserQuestion). clarify-prd proposes; the author decides — the same user-in-the-loop contract as every SDLC stage.write-prd / architecture-design; clarify-prd's subagent hunts ambiguity (build-divergence), a different target.api-forge / generate-data-model.write-prd, not in under cover of a "clarification"../references/ambiguity-checks.md — the eight ambiguity classes (how to spot / how to resolve each) + the clean-context devil's-advocate subagent prompt body.../_shared/ask-style.md — phrasing for the resolve/defer/false-positive question.../_shared/interview-depth.md — the easy/medium/hard dial set in step 1 (sweep aggressiveness + per-finding question volume).../_shared/agent-roster.md — model/effort policy + the shared agent dispatch contract.../_shared/handoff.md — the stage-handoff block format emitted at step 7.What SKILL.md sets; muted values are Claude Code's defaults
opushighThree short reads, in order
/sdlc:clarify-prdfrom sdlc
npx claudepluginhub genkovich/sdlc --plugin sdlc24 skills in this plugin
/api-forgeUse to derive the API contract for a feature — an OpenAPI 3.1 document at docs/features/{slug}/contracts/openapi.yaml plus a drift/sync report (api-sync-report.md with an explicit Verdict: PASS | PASS (with deferrals) | FAIL and a 5-point drift checklist), the right contract artifact per surface (events.md for async, cli.md for CLI, public-api.md for library/SDK), and — on the HTTP path, first run only — a baseline .claude/rules/openapi.md so later code follows the same API conventions. Triggers on "api for {slug}", "openapi for {slug}", "API contract for {slug}", "lock the interface for {slug}", "events for {slug}", "/sdlc:api-forge {slug}", "контракт API для {slug}", "OpenAPI для {slug}", "опиши ендпоінти". The contract is never hand-written: it is a derived function of data-model.md (typed fields + constraints), sad.md §6 sequence diagrams (error branches, async actors), and PRD.md acceptance criteria. Hard gate: docs/features/{slug}/PRD.md. data-model.md is recommended but optional — without it the skill runs in scenario B (PRD + sequences only) and fills unresolved_origins in the sync report. Renamed from define-api in v3.3.0; the legacy name is kept as a deprecation wrapper.
/architecture-designUse to produce a Software Architecture Document for a feature — Arc42 12 sections + C4 L1/L2 inline + ADRs spawned on a blast-radius gate — once PRD.md and CONTEXT.md exist. The feature's target surface(s) are chosen here (the first §4 decision → SAD frontmatter target_surfaces, read by every downstream stage). Drafts §1–§12 in-memory, batch-validates each section Socratically (4-state machine), spawns an ADR only when a decision crosses the blast-radius threshold (irreversible / multi-module / has legitimate alternatives), writes each resolved section + its ADRs atomically, then runs a clean-context critic before finalizing. Brownfield: reads docs/architecture-map.md (re-scans only if absent/stale). Triggers on "architecture for {slug}", "design architecture for {slug}", "SAD for {slug}", "arc42 for {slug}", "C4 context+container for {slug}", "/sdlc:architecture-design {slug}", "спроектуй архітектуру {slug}", "SAD для {slug}", "архітектурний документ {slug}". Hard-refuse if docs/features/{slug}/PRD.md is missing. Triggers: /sdlc:architecture-design {slug}. Output: docs/features/{slug}/sad.md + adr/NNNN-*.md.Other plugins' skills for the same job