/dev-team:specsfrom dev-team
Collaborative workflow producing the three spec artifacts (intent, architecture notes, acceptance criteria) before implementation. Resolves ambiguity with a human and gates progression to /plan.
Ships in dev-team. 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.
Role: orchestrator. This command produces specification artifacts and gates
progression to /plan — it does not write implementation code, author
per-slice Gherkin scenarios, or begin building.
This skill's value is resolving ambiguity with a human before build begins
(Rec 1, docs/experiments/RECOMMENDATIONS.md). No downstream workflow recovers
information the spec never stated — under vague specs every workflow arm scored
0% on acceptance tests probing an omitted decision. The Ambiguity Resolution
Protocol below is the mechanism: it forces every gap to be either resolved by a
human or documented as inferable before implementation starts.
What this skill is not for: edge-case synthesis. Run to completion, the
full /specs→/plan→/build pipeline's explicit acceptance-criteria
synthesis does not out-perform TDD's failing-test discipline at surfacing
unstated edge cases (25% vs. 33% pooled EDGE pass — Experiment 03, reported in
docs/experiments/02-final-results.md). The two have different failure modes
and both are worth keeping: /specs catches ambiguity a human must resolve;
the build cadence's per-behavior tests catch edge cases the spec implies but
never enumerates.
/specs runs in one of two modes, chosen from the shape of the argument —
there is no flag, so every existing /specs "<description>" invocation is
unaffected. Announce the selected mode and why before any work begins.
| Argument | Mode |
|---|---|
Resolves to a readable .md/.txt/.pdf, or a fetchable GitHub issue URL | validate — critique a document we did not write |
| Looks like a path or issue URL (a path separator, one of those extensions, or a GitHub issue URL shape) but does not resolve or cannot be fetched | refuse — see below |
| Resembles neither | authoring — today's collaboration loop, unchanged |
A path-like argument that does not resolve is never reinterpreted as prose. Silently feeding a mistyped path into the authoring loop turns a typo into a spec seeded from the literal path string, which the author may not notice for a long time. Refuse instead, naming the unresolved path or the fetch failure (private, deleted, unauthenticated, network).
Unsupported formats are refused too, never partially parsed. The supported
set is what Read handles natively. .docx is explicitly out — the plugin
ships stdlib-only Python (ADR 0014/0015) and no stdlib path parses it. Name the
reason and the conversion to perform; do not guess at a partial read.
Validate mode then runs the same critique categories, Ambiguity Resolution
Protocol, and Consistency Gate as authoring mode, against the source text
rather than a co-authored draft — a third-party document blocks exactly as hard
as an in-house draft. Every extracted acceptance criterion cites the source
passage it came from; one with no citable passage is an inference and is logged
as such, never presented as if the source stated it. Load
references/extraction.md for the supported
inputs, the citation rule, and the routing.
Before drafting or updating a spec, check whether a spec file already exists for this feature:
<!-- spec-version: --> comment or a **Format:** header field.
version:): surface this to the user — "An existing spec was found but appears to use an older format. Regenerate from scratch, or confirm you want to update in place?" — and wait for explicit direction before proceeding.This prevents silently overwriting a current spec and catches format drift before
the plan phase consumes stale artifacts.
Produce three specification artifacts collaboratively with the human before any implementation begins. The spec describes the change and its goals; it does not define Gherkin scenarios — those are authored per slice during /plan. The consistency gate is a hard stop; do not proceed to planning until it passes.
/plan — do not slice here. Split into separate specs only when the request bundles genuinely unrelated features (see Scope Split Protocol)./plan turns those into per-slice Gherkin scenarios — the single source of truth for expected behavior. No implementation without a scenario; no scenario without an acceptance test.| Artifact | Purpose | Format |
|---|---|---|
| Intent Description | What the change achieves and why | Plain language, 1–3 paragraphs |
| Architecture Specification | Where the change fits and what constraints apply | Structured notes: components, interfaces, dependencies, constraints |
| Acceptance Criteria | Observable outcomes and quality thresholds that define "done" | Measurable criteria with pass/fail conditions |
Observable user behavior is captured as Gherkin in /plan, one scenario set per slice. The spec's job is to make that authoring unambiguous, not to pre-write it.
Every artifact follows the same loop:
Repeat up to 2 iterations before escalating.
| Category | Description |
|---|---|
| Gaps | Missing acceptance criteria, unstated assumptions, undefined behavior |
| Ambiguities | Statements two implementers would interpret differently |
| Conflicts | Contradictions between artifacts or with existing system behavior |
| Scope violations | Spec bundles unrelated features that belong in separate specs |
After critiquing the artifacts but before writing the final acceptance criteria, run this protocol on every gap and ambiguity finding. This is a hard step — it cannot be skipped.
For each gap or ambiguity:
Step A — Attempt inference. Look for a reliable basis: existing codebase behavior, domain conventions, similar precedents in the system, or unambiguous implication from stated requirements.
Step A2 — Predictability check. Generate at most one plausible
alternative outcome per criterion and test it against the source; if the source
does not rule it out, classify requires-stakeholder-input. Record the outcome
in the Ambiguity Log row every time, pass included. Load
references/predictability-check.md — it
covers absurd-candidate rejection, the no-plausible-alternative case, and why
this does not duplicate plan-review-acceptance.
Step B — Classify the finding.
| Class | Meaning | Action |
|---|---|---|
inferable | A reasonable developer, given the codebase and domain, would make the same choice | Document the inference and its rationale; proceed |
requires-stakeholder-input | The decision depends on product or business intent not evident from context; two reasonable developers would choose differently | Block — ask the human before proceeding |
Step C — Resolve requires-stakeholder-input items. Collect all such items and present them as a single batch to the human before writing acceptance criteria:
"Before writing acceptance criteria, I need clarification on N decisions the spec leaves open: [list]"
Wait for answers. Only then finalize the criteria.
What "inferable" is NOT: a convenient default. Naturalness or simplicity does not make a decision inferable — the test is whether a developer working from context alone would reliably land on the same answer. If in doubt, classify as requires-stakeholder-input.
Record every classification in an ## Ambiguity Log section of the spec file (see Output below). This log is the audit trail that turns "we asked before building" from an assertion into an artifact.
This protocol exists because the most common failure mode of spec synthesis from a vague prompt is writing decisions that look thorough while encoding the same happy-path assumptions a direct implementation would make silently. The log prevents that by making every assumption visible and every gap either resolved by the human or documented as inferable with explicit rationale.
When a critique surfaces a missing-test or coverage gap, classify it so the spec only carries work that delivers signal:
NO_REFACTOR — a meaningful test can be written against the code as it stands. Carry it into the acceptance criteria.REFACTOR_REQUIRED — production code needs a testability change before a meaningful test is possible. Note the change.LOW_VALUE — skip, not defer. A LOW_VALUE finding is never written into the acceptance criteria and is never parked as deferred backlog; deferring it only re-surfaces the same no-signal work later. All three criteria must hold: no branching logic, no observable outcome (the only possible assertion is that a mock was called), and a higher-layer test already covers the path.LOW_VALUE is the one class dropped rather than tracked — the Ambiguity Log records the skip and its rationale, nothing more. It never becomes an acceptance criterion and never reaches /plan as work.
A specification bundles too much when any of these fire:
Note: a single feature that decomposes into several deliverable increments is normal and expected — that decomposition happens in /plan, not here. Only split the spec when the features are independent.
Capture domain terms while drafting Intent and Acceptance Criteria. A
definition the agent inferred starts unverified; verified requires a human.
A term still unverified at the end of the loop is a gap finding and routes
through the Ambiguity Resolution Protocol — it does not block the Consistency
Gate by itself. Load references/glossary.md for the
status contract, the resolution rule, and the downstream consumers.
After the critique loop and before the Consistency Gate, sweep for what the spec never mentioned. A spec that says nothing about deletion produces no criterion to find incomplete — the omission is the absence of a criterion, and absence is invisible to every per-criterion check we run.
Load references/completeness-checklist.md
and apply it: CRUD per named entity, plus authentication, authorization,
audit/logging, and error handling for the spec as a whole.
Report the entities you enumerated, group findings by entity, and route each
unaddressed cell into the Ambiguity Log as inferable (with rationale —
including "read-only by design") or requires-stakeholder-input. A cell that
does not apply is recorded with its reason, never dropped. The reference states
why each of those is required.
The sweep is not a gate. It blocks only through the existing Ambiguity
Resolution Protocol; it introduces no new gate, severity scheme, or confidence
score. It also never grades a criterion that already exists — that is
plan-review-acceptance's scope. The two answer different questions: "is there
a criterion here at all?" versus "is this criterion complete?"
Validate all three artifacts as a set:
inferable (with explicit rationale) or resolved via explicit stakeholder input. No finding is left as an undocumented assumption.Hard stop: do not proceed to planning until every item passes. The ambiguity log item is the most critical: a passing gate with undocumented assumptions produces false confidence.
Three artifacts (Intent, Architecture Specification, Acceptance Criteria) plus a consistency gate pass/fail verdict. Be concise — flag gaps and conflicts; do not narrate the collaboration process.
Once the gate passes, persist the artifacts and trigger the next phase. That
procedure — classifying file vs. GitHub-issue persistence, the body template,
and the /plan auto-trigger — lives in
references/persistence.md. Load it now.
Prose you write follows ${CLAUDE_PLUGIN_ROOT}/knowledge/documentation-style.md: the Google Developer Documentation Style Guide, ASD-STE100-derived precision rules, and Zinsser's four principles (clarity, simplicity, brevity, humanity).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
specification, requirements, ambiguity-resolution, planning, workflow
103 skills in this plugin
/adr-toolsCreate and manage Architecture Decision Records using the npryce adr-tools CLI. Use when the user asks to "add an ADR", "record this decision", "create an ADR", "supersede ADR N", "link ADRs", "generate the ADR table of contents", or any request involving the `adr` command. Pairs with the adr-author agent — this skill is the mechanics (commands, files, links); adr-author is the decision framework (when an ADR is warranted) and the prose authoring./agent-auditAudit code-review agents, skills, and hooks for structural compliance. Use this when adding or modifying any agent, skill, or hook file, or for a periodic health check of the toolkit. Trigger phrases: "audit the agents", "check compliance", "validate the skills", "are the agents correct", or any time agent/skill files change./npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-teamOther plugins' skills for the same job