skills/spec-conformance/SKILL.md
/review Layer 1 auditor + /think self-review. Three contexts: think-self-review, review-spec, review-implementation. Also judges reconstruction drills.
npx skillsauth add the-own-lab/Claude-company-of-one spec-conformanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Deterministic + LLM audit of spec/code consistency. Runs in three distinct contexts; each has its own input contract:
| Context | Caller | Reads |
| ----------------------- | ---------------------- | ----------------------------------------------- |
| think-self-review | Main Agent in /think | BRIEF.md + draft spec artifacts |
| review-spec | /review Layer 1 | REVIEW_INPUT.md + referenced artifacts |
| review-implementation | /review Layer 1 | REVIEW_INPUT.md + referenced artifacts + diff |
Also provides the reconstruction-drill judge per ADR-002 D4 (pseudocode vs final
code invariant), invoked only from session-reflection Q9.
Context-dependent (see table above). In /review contexts the skill does NOT
read BRIEF.md — the reviewer contract is REVIEW_INPUT.md only. In the /think
self-review context the brief is allowed because the Main Agent's own cache is
the thing being self-reviewed.
/think self-review: list of drift / inconsistency items written to brief
## Open Questions for the user to resolve before /think exits./review Layer 1 section in REVIEW.md: Traceability Matrix, Scope Drift,
Documentation Consistency, Hard Block Triggered.aligned | diverged | partially-aligned with one-sentence
justification written back to the core item's Prediction result field./review:
bash "hooks/scripts/lib/spec-conformance-check.sh" pre-review <spec_dir> <base_ref>.
If FAIL, stop with Layer 1 FAIL.pseudocode field to the final code's invariant.diverged to "mostly aligned".pre-review script FAIL → Layer 1 FAIL; do not proceed to LLM checks.review_mode missing in REVIEW_INPUT.md → FAIL; Main Agent must fill it./review but skill tries to open BRIEF.md → refuse; that breaks the
reviewer fresh-context contract.review-implementation → FAIL until ADR is Accepted.red-team).critique-dialogue).documentation
Update BRIEF.md sections during a command run. Any skill that produces a brief-persisted artifact calls this to write it back.
development
Post-code check: run tests + confirm TODO acceptance items map to passing tests; applies a security lens but is not a separate scan.
documentation
Command post-step: write CHANGELOG + TODO once per command run. One call, not per-skill doc writes.
content-media
Author REQUIREMENTS.md + DESIGN.md + TODO.md for a feature. The three files are one contract; they ship together.