/skraft:adversarial-review-lensesfrom skraft
Reviews phase artifacts (briefs, plans, designs, specs) to produce a pass-or-block verdict using four lenses: completeness, business fit, quality, and risk. Not for routine code review.
Ships in skraft. 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.
None: SKILL.md is the whole skill.
Reviewer agents use this procedure to produce an independent, defensible verdict on a phase artifact. Pattern derived from Genesis Step 7 (Adversarial Review).
Every SKRAFT phase reviewer (solution-architect-reviewer, acceptance-designer-reviewer, software-engineer-reviewer) invokes this skill once per review pass, after reading the upstream phase artifact(s) and the relevant *-review-criteria skill.
The four questions below are fixed. Every review answers all four, and a review that leaves one unanswered is not a review.
The lenses that answer them are not fixed. Each phase's *-review-criteria skill defines
its own lens set, named for what that phase actually inspects, and the sets differ in size. That is by design — the lens is the
instrument, the question is the obligation. Requiring exactly four instruments would force a
phase to invent one it has no gates for, and an invented lens returns OK by construction.
What is non-negotiable: every question is covered by at least one lens, each lens runs in isolation, and no lens count is chosen to make a review cheaper.
Each lens is executed in isolation. The reviewer must not let observations from one lens influence another. Run them in this order, recording each lens's findings independently before computing the synthesis.
Does the artifact cover every input that fed into the phase?
*-review-criteria skill all present and non-empty?Output: a list of completeness findings, each tagged MISSING, THIN, or OK.
Does the artifact correctly reflect the business intent?
business-lexicon.instructions.md when present).Output: a list of business-fit findings, each tagged MISALIGNED, AMBIGUOUS, or OK.
Is the artifact internally consistent and well-structured?
Output: a list of quality findings, each tagged BROKEN, INCONSISTENT, or OK.
What could go wrong downstream because of this artifact?
Output: a list of risk findings, each tagged INVARIANT_VIOLATION, HIDDEN_COUPLING, AMBIGUOUS_ASSUMPTION, or OK.
While executing a lens, do not consult findings from another lens. Write the lens's findings to its own section in the review file before starting the next lens. If a finding seems to apply to multiple lenses, record it under each lens independently with the appropriate tag — do not merge.
*-review-criteria skill declares the mapping, use it verbatim. When it does not, derive
the mapping from what the lens actually checks and state the derivation in the synthesis.0, 0.5, or 1. When several lenses answer the
same question, use the lowest rating. Multiply that rating by the fixed question weight
and emit only the resulting contribution; do not expose a separate score field.NEEDS_REWORK with the
uncovered question named. An unasked question cannot come back clean.dissent or dissent_analysis field defined by that reviewer's YAML contract.| Question | Weight |
|---|---|
| Completeness | 0.30 |
| Business Fit | 0.30 |
| Quality | 0.15 |
| Risk | 0.25 |
Internal rating: 1 when all findings are clean; 0.5 when findings exist but none are
INVARIANT_VIOLATION, BROKEN, or MISSING; 0 when any such finding exists. Emit each
question as a named map with answered_by, weight, and contribution. Do not emit a total
score: the named contributions remain auditable without collapsing gate semantics.
Emit the exact YAML contract declared by the phase reviewer. Preserve named lens maps, gate identifiers, severities, concrete findings, recommendations, dissent, question weights, and contributions. Do not add presentation metadata such as a lens count, numeric score, list index, or lens score. The same YAML payload is sent to the artifact command and returned to the caller.
The reviewer writes only this file. It never modifies upstream artifacts and never edits state.json — the orchestrator records state.json::verdicts[phase] from the verdict line above via state.mjs record-verdict.
.copilot-tracking/skraft-plans/{slug}/reviews/{YYYY-MM-DD}/
The filename comes from the dispatching reviewer's own declared outputs, not from here.
That is the whole contract — there is no external convention file to fetch first.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sebastiendegodez/skraft-plugin --plugin skraft44 skills in this plugin
/acceptance-review-criteriaUse when reviewing DISTILL artefacts (Gherkin scenarios, test plans, implementation plans) for quality, completeness, and alignment. Contains the gate definitions and scoring rubric for the acceptance-designer-reviewer lenses./adr-eligibility-gateUse when deciding WHETHER a candidate architectural choice deserves an architecture decision record, before any record is drafted: a story enters DESIGN with a list of candidate choices, a reviewer flags ADR inflation, or someone asks "should I write an ADR for X?", "how many ADRs does this story need?", "is this ADR-worthy?", "this feels like too many ADRs", "disambiguate baseline from decision". Runs a baseline-vs-decision gate over each candidate and returns ELIGIBLE or NOT ELIGIBLE with the baseline, convention or architecture test that already covers it. Do NOT use when the decision is already settled and the user asks for the record to be written, when the request is about the ADR template, status transitions, superseding or lifecycle, or when the question is which pattern to adopt — those belong to architecture-decisions and architecture-patterns.
/architecture-decisionsUse when documenting architecture decisions as ADRs, evaluating trade-offs between alternatives, or managing the lifecycle of existing decisions. Covers ADR template, status transitions, consequence analysis, and quality criteria./architecture-patternsUse when selecting architecture patterns for a new feature, performing Event Modeling, defining bounded contexts, choosing DDD tactical patterns, evaluating pattern fitness, or understanding how patterns compose. Covers Event Modeling methodology, DDD strategic design, DDD tactical patterns, Clean Architecture, CQRS, and Event Sourcing./architecture-review-criteriaUse when reviewing DESIGN artefacts (event models, ADRs, component diagrams, context maps, interface contracts) for quality, DDD compliance, and architectural correctness. Contains gate definitions and scoring rubric for the solution-architect-reviewer lenses./bdd-methodologyUse when writing, reviewing, or structuring BDD scenarios in Gherkin format. Covers Given/When/Then conventions, scenario outline patterns, background usage, tag strategies, and domain language alignment. Load before any Gherkin authoring.Other plugins' skills for the same job