/prisma-harness:prisma-fidelity-review <fixed point> [path to the plan record]from Prisma Harness
The fidelity reviewer, one of the five PRISMA gates. Reads the diff since a fixed point against the plan record on two axes kept apart, fidelity, whether the code does what was agreed and no more, and standards, whether it follows what this repository documents. Runs in a fresh context. Use when prisma-build reaches its review, or when the user asks to review a branch, a PR or the changes since a point.
Ships in Prisma Harness. 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.
This is the gate METHOD.md calls the fidelity reviewer. It decides one thing, whether what was agreed got built, no more and no less, and nothing the record put out of scope, and it reports along two axes that are never merged. It does not fix, it does not refactor, and it does not grade taste; this repository's README says nothing here grades code quality, and this gate keeps that promise by reading only what is documented.
You are meant to run in a fresh context that holds the fixed point, the plan record and the standards sources, and nothing of the builder's account. If the prompt that invoked you carries the builder's summary, its test output or its reasoning, say so at the top of the report and do not read it, because a reviewer who reads the builder's framing inherits the builder's premise.
The fixed point is whatever the caller supplied, a commit, a branch, a tag or a merge base. If none was supplied, ask; do not guess.
git rev-parse <fixed point>
git log <fixed point>..HEAD --oneline
git diff <fixed point>...HEAD
The three-dot form compares against the merge base. When the work is not committed yet, because the caller says so or the working tree shows changes, measure the working tree against that same merge base, and read every untracked file whole as added.
git status --porcelain
git diff $(git merge-base <fixed point> HEAD)
git ls-files --others --exclude-standard
Confirm the ref resolves and the change is not empty, untracked files included, before reading anything else. A bad ref or an empty diff is a finding of this step, reported and stopped here, never discovered halfway through a review.
Look in this order, and stop at the first hit.
If none exists, the fidelity axis reports that there is no record and fidelity was not measured, and the review continues on the standards axis alone. A review without a record is half a review, and the report says so in its first line.
Anything the repository documents about how code is written, a coding standards file, a contributing guide, the project instructions file, the linter configuration. Do not stop at the list the caller passed. Search the repository for every file that documents how code is written, since a contributing guide the instructions file never links is still a standard, and open each one before the standards axis starts. A source that was named and never opened is a source that was not read. hooks/review-reads-standards.sh holds this review once at its end when a source the caller named or a guide at the root of the repository was not opened, and the instructions file of the folder the session works in counts as opened, because you start with it. Open the Standards section with the list of the sources you read.
The standards axis reads those and the smells baseline below, which holds even when the repository documents nothing. Two rules bind it. A documented repository standard always wins over a smell, and where the repository endorses something a smell would flag, the smell is dropped. Anything the linter or the type checker already enforces is skipped, since the merge gate measures it.
Twelve code smells from chapter 3 of Fowler's Refactoring. Each one is a judgement call, written as "possible" and the smell, never a hard violation. Each line says what to look for in the diff and what usually fixes it.
When the caller can spawn subagents, each axis runs in its own fresh context with only its brief and the diff command, so neither pollutes the other. When you are the single fresh context, run fidelity first and then standards, in separate sections, and let no finding on one axis move the verdict on the other.
The fidelity brief. Take the record's Agreed list and, for each line, mark it built, partial or absent, quoting the hunk that builds it or noting the absence. Take the Out of scope list and mark anything from it that the diff builds anyway. Then read the diff for behavior neither list mentions, which is scope creep. Then read what is marked built and say where the implementation looks wrong for what the line asked. Quote the record line for every finding. Stay under 400 words.
The standards brief. For each documented standard the diff breaks, cite the file and the rule and quote the hunk. For each smell of the baseline you find, name it as a judgement call and quote the hunk. Distinguish a breach of a documented standard, which is hard, from a smell, which never is. Stay under 400 words.
Two sections, ## Fidelity and ## Standards, each verbatim from its axis, never merged and never reranked against each other. A change can pass one axis and fail the other, and hiding one behind the other is the failure the separation exists to prevent. End with one line per axis, the number of findings and the worst one, and no single winner across axes.
Every finding in this report is a hypothesis. The builder reproduces it against the code before acting on it, and records why a finding died if it dies. This gate reads; step 3 runs.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/prismaRun PRISMA on a piece of work. Routes the request to one of five lanes (query, mechanical change, code with logic, data to a third party, text) and runs what that lane requires, up to the five steps and five gates. Use when the user says "PRISMA", "pass this through PRISMA", or asks to verify work before it leaves the machine./prisma-buildStep 2 of PRISMA, the build. Tests first at the seams the plan record agreed, every control seen red before the code that turns it green exists, a fidelity review in a fresh subagent, then a commit. Use when PRISMA reaches step 2, or when the user asks to build, implement or fix something test-first./prisma-diagnoseStep 2b of PRISMA, diagnose before patching. Builds a feedback loop that goes red on the exact defect, reproduces and minimises it, tests ranked falsifiable hypotheses one variable at a time, fixes with a regression test seen red first, and ends by naming which of the five steps the defect escaped from. Use when something is broken, throwing, failing or slow, or when the user says diagnose or debug.npx claudepluginhub juanquijandria/prisma-harness --plugin prisma-harness