Agent-Assisted Specification
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.
Positioning — what this skill is for
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.
Step 0 — Select the mode
/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