Two-axis review of the spec diff between the working tree and a fixed point,
unless the user supplies one:
- Consistency: does the changed text hold with the rest of the spec?
- Writing: does the changed text follow the rules of spec-writing?
Both axes run as parallel sub-agents so they don't pollute each other's
context, then this skill aggregates their findings.
Process
1. Pin the fixed point
Whatever the user said is the fixed point (a commit SHA, branch name, tag,
,
, etc.). If they didn't specify one, or asked for the
uncommitted changes, it is
.
Capture the diff command once:
git diff $(git merge-base <fixed-point> HEAD) -- docs/specs GLOSSARY.md
(from the merge-base to the working tree, so the comparison is against the
point the branch left and uncommitted edits count, limited to the spec's
paths). Also note the list of commits via
git log <fixed-point>..HEAD --oneline -- docs/specs GLOSSARY.md
.
Before going further, confirm the fixed point resolves
(
git rev-parse <fixed-point>
) and the diff is non-empty. A bad ref or empty
diff should fail here, not inside two parallel sub-agents.
2. The tests
Each axis carries its tests below, drawn from ISO/IEC/IEEE 29148 and the
INCOSE Guide for Writing Requirements. Each names its class of finding, says
whether its verdict is a hard violation or a judgement call, and reads what
it is → how to test it.
The Consistency axis matches each test against each changed clause, and the
dangling test against each clause the diff removed or moved:
- Contradicts (hard): the changed clause and a clause elsewhere cannot both
hold. → Quote both; no reading satisfies the two.
- Restates (hard): two clauses decide the same thing. → Remove either; the
other still decides it. Name the widest level the decision holds at. A
decision belongs once, at the widest level it holds: a principle in
, else a shared area, else a platform file.
A reference that names a decision and links to where it is made, as "as
under Repository", is not a match.
- Dangles (hard): a clause elsewhere refers, by name or by link, to a
term, heading or decision the diff removed or renamed. → Quote the reference
and the removed text.
- Undecided (hard): a case the changed clause admits, for which no clause
gives the outcome. → State the case from the clause's own conditions, such
as a set it ranges over being empty, and quote the clause; no clause in the
spec decides the case.
- Leans on the glossary (hard): the changed text decides a case by a
condition that only a entry states, such as which facts make
an order a backorder. An entry gives a term's meaning, and the conditions
that decide which cases the term covers belong in the spec. → Quote the
entry's condition and the case it decides; no spec clause states the
condition.
The Writing axis matches each test against each changed clause:
- Implied (judgement call, worded "possible implied"): the changed clause
follows from a decision already in the spec, so a builder gets two things to
keep true. → Remove the clause; a builder reading the rest could build
nothing a user would notice as different. A clause marked "for example",
"such as", "unlike" or "but for" is an example or an exception, not implied.
The signs:
- a qualifier a general word already covers: "including gift card orders"
after "every paid order";
- a consequence of the rule before it: "a shipped order can't be cancelled"
after "a customer can cancel an order until it ships";
- what another area already decides: "a cancelled order is refunded" in
Ordering when Payments decides refunds;
- a tautology: "a paid invoice is one the customer has paid";
- a detail no decision depends on;
- what the product doesn't do, when no decision says it does.
- Structure (hard): the changed text departs from spec-writing's
Document structure. → Cite the Document structure rule it departs from.
- Plain English (hard): a changed sentence breaks a rule of
spec-writing's Plain English. → Quote the sentence and name the rule.
3. Spawn both sub-agents in parallel
Issue both sub-agent calls together, in the foreground, and aggregate the
reports they return.
Consistency sub-agent prompt should include:
- The full diff command and commit list.
- The spec's paths: every file under , and if it
exists, plus the Consistency tests from step 2 pasted in full (the
sub-agent has no other access to them).
- The brief: "Report every finding of the Consistency tests, per file and
clause where relevant: name the test and quote what its → part names, with
each quote's file. Under 400 words."
Writing sub-agent prompt should include:
- The diff command and commit list.
- The spec's paths, as above, plus the Writing tests from step 2 pasted
in full.
- The brief: "Call the Skill tool for 'spec-writing' for its Plain English
and Document structure. Report, per file/clause where relevant, (a) every
place the diff departs from Plain English or Document structure: cite the
rule and quote the clause; and (b) any possibly implied clause you spot:
name the sign, quote the clause and the decision it follows from.
Distinguish hard violations from judgement calls: Plain English and
Document structure breaches are hard, but implied is always a judgement
call. Under 400 words."
4. Remove the possibly implied clauses
Skip this step when the Writing report names no possibly implied clause.
Otherwise do the removal the Implied test asks for: in a temporary copy of
the spec as written, cut every clause the report names, with the least
rewording that leaves a sentence, and have a second Consistency sub-agent
review the copy with the brief the first got, but with the Undecided test
alone and a diff that is the removal alone, against the spec as written.
Drop from the Writing report every possibly implied finding whose clause the
second reviewer found a case for; the rest stand.
5. Aggregate
Present the two reports under
and
headings,
verbatim or lightly cleaned. Do
not merge or rerank findings, because the
two axes are deliberately separate (see
Why two axes).
End with a one-line summary: total findings per axis, and the worst issue
within each axis (if any). Don't pick a single winner across axes: that's
the reranking the separation exists to prevent.
Why two axes
A change can pass one axis and fail the other:
- Text that follows every writing rule but contradicts a decision elsewhere →
Writing pass, Consistency fail.
- Text that holds with the rest of the spec but adds a clause another
decision already implies → Consistency pass, Writing fail.
Reporting them separately stops one axis from masking the other.