/code-slop:review-tests-difffrom code-slop
Review only the tests that a change adds or modifies, and the production code that it changes, for tests that cannot fail, tests coupled to implementation details, and tests that the change weakens. Use when the user has uncommitted changes or a branch and asks to check the tests of the change, such as "review the tests I just wrote", "did the agent fake the tests", or `/code-slop:review-tests-diff`. Uses the test catalog of `/code-slop:review-tests`, adds the rules of a diff (an expected value that changes together with the code, a weakened test), confirms the strongest findings in a scratch worktree, and writes `build/code-slop/review-tests-diff.md`.
Ships in code-slop. 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 skill reviews the tests of one change: the lines between a base and the working tree. It finds what the review of a whole repository finds in the changed tests. It also finds two patterns that only a diff shows: an expected value that changes together with the code that it checks, and a change that weakens a test.
As in review-tests: <skill-dir> is the directory of this SKILL.md, the catalog is in the first of
<skill-dir>/../../code-slop/catalog/ and <skill-dir>/../../ that contains rules/tests.toml, and the scanner is
java -jar "$JAR" scan-tests with $JAR as review-tests finds it. The report template is
<skill-dir>/../review-tests/references/report-template.md.
The base is HEAD unless the user names a ref. For a branch, use git merge-base <ref> HEAD as the base. Outside a
Git repository, stop and suggest /code-slop:review-tests.
Diff. Run git -c core.quotePath=false diff <base> --stat and git diff <base>, and add the files of
git -c core.quotePath=false ls-files --others --exclude-standard. Without core.quotePath=false, Git prints a
name with a non-ASCII character in C quotes, such as "\303\204Test.kt" for ÄTest.kt. Split the changed files
into test files and production files: scan-tests --list <changed files> prints the test files among them, by the
patterns of the language adapters and the [tests] table of the configuration. Without changed test files and
without changed production code, write a report that says so and stop.
Scanner. Run scan-tests --candidates <changed test files>. It prints the errors on stderr and the candidates
on stdout. Every error is a finding unless you show that the scanner is wrong. Judge each candidate as in
review-tests.
Rules of a diff. Read the rules of the group changes-that-weaken-tests in rules/tests.toml:
expected-value-follows-code: An expected value of a test changes in the same diff as the production code that
computes it. Ask which requirement explains the new value. Without one, the agent may have copied the output of the
code into the test.change-weakens-test: A change weakens a test. It removes an assertion, adds a skip, broadens an expected
exception, lowers a threshold in a build file, or adds an exemption or a baseline entry. Check that each reason
holds.comments-narrate-test-steps belongs to the comment catalog: comments that narrate the steps of a test.Judgment. For each changed test, apply the rules of review-tests step 4 to the changed lines and the lines
that they depend on. For changed production code without a changed test, name the behavior that no test checks
(derivation-without-golden-test when stored data depends on it).
Confirmation. Create a detached scratch worktree of the working tree, and copy the changed files into it. Commit nothing in the checkout of the user. In the worktree, revert or break each changed production line that a new test claims to check, run the new test, and record whether it fails. A test that still passes is a T finding.
Report. Write build/code-slop/review-tests-diff.md with the template, with the base in the scope section and
the A findings in a table of their own. Before you write, run git check-ignore -q on the path. If Git does not
ignore it, as in a repository that tracks a folder build/, tell the user that the report is an untracked file, or
write it to a path that the user names. Do not commit the report.
Stop. Do not change the tests. Give the user the path of the report, the counts, and the most important findings.
/code-slop:review-tests.rules/references.toml and of the profiles.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub se-uhd/code-slop-skill --plugin code-slop9 skills in this plugin
/adversarial-reviewReview the code of a whole repository adversarially for defects of functional correctness, safety and security, robustness, maintainability and readability, architecture, and documentation, and for fixes that hide a defect instead of removing its cause, and report only the defects that a reproduction or the exact lines show. Use when the user asks for an adversarial, critical, deep, or security review of a repository or a code base, asks to find the bugs or the weak points of a project, wants an audit before a release, or runs `/code-slop:adversarial-review`. Runs the deterministic checks of code-slop first, gives each area to an independent reviewer (a subagent in Claude Code and Codex), lets a second pass try to disprove each finding, and writes `build/code-slop/adversarial-review.md`. Changes nothing in the repository. For a change, a branch, a commit range, or a pull request, use `/code-slop:adversarial-review-diff`./adversarial-review-diffReview one change adversarially for defects of functional correctness, safety and security, robustness, maintainability and readability, architecture, and documentation, and for fixes that hide a defect instead of removing its cause in the changed lines and the code that depends on them. The change is the diff from the merge base with the default branch to the working tree, a commit range, or a pull request or merge request by its number, which gh or glab read without changing it. Use when the user asks to review, break, or audit a change, a branch, a commit range, a PR, or an MR adversarially, asks what a change breaks, wants a critical review before a merge, or runs `/code-slop:adversarial-review-diff`. Runs the deterministic checks of code-slop on the change, gives each area to an independent reviewer, lets a second pass try to disprove each finding, and writes `build/code-slop/adversarial-review-diff.md`. Changes nothing in the repository.Other plugins' skills for the same job