code-slop
Agent Skills, hooks, and checks that catch tests that cannot fail when the behavior breaks, tests that fail when only
the implementation changes, tests that never run, and flaky tests. The plugin works in Claude Code, Codex, and pi, and
one command line runs the checks of commit messages, Markdown files, and comments for the repositories that use it.
Contents
- The test catalog: general rules in
plugins/code-slop/rules/tests.toml, such as always-passing-test "The test
cannot fail", and profiles that show each rule in a framework with a bad and a good example.
docs/catalog/tests.md lists the rules.
code-slop-cli, a self-contained jar that needs only a JDK of Java 17 or later:
scan-tests checks test files in Kotlin, Go, TypeScript and JavaScript, Swift, and Bats against the catalog, and
those of Python and of other shell tests against the rules of every language, repeats-production-text,
compares-incidental-prose, and tests-copied-production-function (docs/design.md);
hook gives the findings back to an agent after each edit and blocks the end of a turn while the tests that the
agent edited have findings, at most three times after a prompt. A repository can switch on the checks of the texts
that an agent posts, hands to a subagent, or replies (docs/consumers.md);
check-commit, check-markdown, check-comments, and check-messages check commit messages, Markdown files,
comments, and the messages of the code;
writing, glossary, and tropes serve the review skills of the writing;
mutation reads the reports of PIT, Stryker, Gremlins, and a shell sampler;
vendor copies the skills and launchers into a repository that does not install the plugin.
code-slop-models, a library that runs TLC and the Alloy Analyzer and renders PlantUML diagrams
(models/README.md), with the rules for models in plugins/code-slop/rules/models.toml.
- The review skills
/code-slop:review-tests for a repository and /code-slop:review-tests-diff for a change.
- The skills
/code-slop:adversarial-review for a repository and /code-slop:adversarial-review-diff for a change,
which try to break the code in the areas of plugins/code-slop/rules/review.toml, such as functional correctness
and security, with one independent reviewer per area, and report only the findings with evidence.
- The writing rules (below), with the review skills
/code-slop:review-writing and /code-slop:review-comments, and
/code-slop:glossary, which builds and checks GLOSSARY.md.
- The skills
/code-slop:statechart, which models a flow in TLA+ and draws it as a statechart, and
/code-slop:domain-model, which models the stored classes in Alloy and draws them as a class diagram.
Install the plugin
Claude Code:
/plugin marketplace add se-uhd/code-slop-skill
/plugin install code-slop
Codex accepts the same manifests:
codex plugin marketplace add se-uhd/code-slop-skill
codex plugin add code-slop@code-slop
The repository root is a pi package. Install it from a release tag, and invoke a skill with /skill:review-tests:
pi install git:github.com/se-uhd/code-slop-skill@<tag>
Use it in a repository
A repository pins one version of the jar in mise.toml, with its checksum, as it pins other tools. The jar needs Java
17 or later, and the launchers of the hooks take the Java that mise.toml pins when it is new enough. Without mise,
CODE_SLOP_JAR names the jar (docs/consumers.md):
"http:code-slop-cli" = { version = "2026-11", url = "https://github.com/se-uhd/code-slop-skill/releases/download/{{ version }}/code-slop-cli-{{ version }}.jar", checksum = "sha256:..." }
Then java -jar "$(mise where http:code-slop-cli)"/code-slop-cli-*.jar vendor copies the skills review-tests and
review-tests-diff, or those of [vendor] skills, the launcher .claude/hooks/code-slop-hook.sh, and the pi extension
into the repository, with one shared copy of the catalogs and the manifest of hashes in .claude/code-slop/. Claude
Code reads the copy of the skills in .claude/skills/, and Codex 0.172 and pi 1.6.1 read the copy in .agents/skills/
once the project is trusted. Each copy names the path of the shared catalog relative to itself. vendor --check in CI
fails when a vendored file was edited, deleted, renamed, or added, or comes from another version, as
docs/consumers.md shows. The launcher starts the JVM only for an event that a check needs. Register
it in .claude/settings.json and .codex/hooks.json as plugins/code-slop/hooks/claude-settings.json and
codex-hooks.json show. A Gradle build resolves the same jar from the release, as docs/design.md
describes.