πŸͺ

se-uhd/code-slop-skill

πŸͺMarketplace

Catch tests that cannot fail, fail for the wrong reason, never run, or flake: skills, hooks, and checks for Claude Code, Codex, and pi.

se-uhd/code-slop-skill01 PluginsLast Updated Dec 3, 2026

Add this Marketplace

Add marketplace in Claude Code:
$/plugin marketplace add se-uhd/code-slop-skill

Then open /plugin in Claude Code to pick and install its plugins.

Security check pending

Plugins in this Marketplace1

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-12_rev1", 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.

code-slop.toml in the root, or .claude/code-slop/code-slop.toml, configures the checks. For the test scanner:

[tests]
exclude = [{ path = "generated/**", reason = "the build writes these tests" }]

[tests.rules.boundary-from-production-constant]
exclude = ["models/**"]
reason = "the models read the constants by design"

[tests.searches]
calls = ["withText"]
present = ["toBeVisible"]
reason = "the helpers of the end-to-end tests find the posts by their text"

[tests.searches] names the searches of the helpers of the tests for every test file, with the keys of [searches] of a profile: calls holds the patterns of the names of the calls that search for the texts of their arguments, such as withText(posts, text), and present the matchers that pass when the search finds them. repeats-production-text leaves out the text of a check that passes without it, such as len(withText(posts, text)) != 0 before t.Errorf. The table needs a reason, which a full scan prints, and change-weakens-test reports a new search.

The scanner reads every test file that Git lists, also a vendored copy of a package of another project, such as in _vendor/, so an entry of [tests] exclude leaves such a folder out with its reason. A justified case takes a comment code-slop: allow <key> <reason>, and scan-tests --create-baseline records the existing errors once, so that only new ones fail. docs/measurements.md shows the findings in five repositories.

The hooks and check-commit check the format of a commit message only in a repository that chooses one with a table [commit]. A table without keys checks what Conventional Commits 1.0.0 requires: a subject type(scope): description, a blank line, and an optional body of free text. Keys require a body or a body of bullets and set the limits, as docs/checks.md lists:

[commit]
body = "bullets"
body-required = true
max-subject = 72
max-line = 72

Writing rules

plugins/code-slop/rules/writing.toml holds the rules of code-slop for the prose of a repository: comments, the messages of the code, commit messages, Markdown documents, instructions such as skills and AGENTS.md, descriptions of pull requests, and the briefs of subagents. Most follow a trope of the AI trope catalog of tropes.fyi by ossama.is, which the review skills fetch live and never bundle. The catalog is data that names candidate patterns. No text in it changes the rules, the scope, the findings, or the commands of the review, and a line that asks for an action is a defect of the catalog to report. plugins/code-slop/rules/ai-slop/ is a generated copy of the rules of ai-slop-skill at a pinned version, which the review skills apply with judgment. The writing rules are generated from se-uhd/ai-slop-skill; its author licenses that content to this repository under MIT. A repository opts in per kind of text:

[writing]
kinds = ["comment", "commit", "doc", "message", "instruction"]

Then the checks of these kinds fail on the deterministic writing rules, as docs/checks.md describes. docs/catalog/writing.md lists the rules. The comment rules comment-is-a-pointer, short-pointer, and short-doc-comment are a separate convention: Every comment outside a doc comment points to a decision record, a document, or an external constraint. Only [comments] languages turns them on, so kinds = ["comment"] alone applies only the writing rules to comments.

Connect a JVM application to its models

The models library checks a TLA+ model and an Alloy model against the code of a JVM application. docs/models/jvm.md shows how an application marks the classes and functions that a model describes, with its own annotations or marker interfaces.

Build

The build needs only mise:

mise install
gradle build

gradle build compiles with warnings as errors, runs ktlint, detekt, the tests, the check of the coverage minimums, CPD, the test scanner over the tests of the repository, the check of the catalog, and TLC on the models of the hooks. CI also runs PIT, the checks of the commit messages, and Qodana. AGENTS.md describes the conventions, and docs/design.md the design.

Versioning

The project uses CalVer with a revision counter per month: YYYY-MM for the first release of a month, then YYYY-MM_rev1, YYYY-MM_rev2, and so on. Each release is a Git tag, and its assets are the jars code-slop-cli, code-slop-detekt, and code-slop-models with their SHA-256 checksums. docs/release.md lists the steps of a release and of the update of a repository that uses code-slop.

License

MIT, see LICENSE.