/core:pin-check --source FILE --replace OLD --with NEW --test TARGETfrom core
Reverts a line, runs the scoped test and reports whether it pins the behaviour. Use when the user asks if a test catches a change. Not for mutation scoring.
Ships in core. 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.
Read when SKILL.md points to them; scripts run unread.
One deliberate mutation per claim, aimed at one test: is this behaviour pinned,
or merely true? coverage-gaps answers whether a line ran and mutmut-report
scores thousands of automatic mutants; this answers one claim in seconds.
CANARY: pin-check-loaded-2026-09-15-1c4de0b7-9a2f61d08e4b7c35
Give the exact text the claim is about and the one test that should catch it changing. Scoping to that test keeps a run to seconds.
python3 "${CLAUDE_SKILL_DIR}/scripts/pin_check.py" \
--source src/yourproject/rules.yaml \
--replace "asynchronous" --with "async" \
--test tests/<the-one-case>.py
--expect-count N refuses to run unless the target occurs exactly N times, so
one claim stays one mutation. --root DIR (repeatable) names extra trees to
purge bytecode from. Arguments after the flags go to pytest.
Use the script rather than a hand sed cycle: it purges __pycache__, runs
each test in a fresh subprocess, refuses a target that matches nothing, and
restores the file when the run ends; after a killed run, its sentinel makes the
next run refuse to start and print the manual restore command. A hand cycle gets
each of these wrong without noticing.
| verdict | exit | means |
|---|---|---|
PINNED | 0 | the target changed and the scoped test went red; the claim holds |
NOT PINNED | 1 | the test stayed green; it asserts something true, not something pinned |
NOT MUTATED | 3 | the target was absent or matched a different count than --expect-count; nothing was tested |
INCONCLUSIVE | 4 | the test was already red before the mutation, or the file could not be restored |
| error | 2 | bad arguments, or a sentinel from a killed run is on disk (the message says how to restore) |
NOT PINNED → add an assertion on the value that changed, or a case that
exercises the path, then re-run until PINNED.PINNED → cite it in the review.Files outside version control, or generated files, cannot be safely restored; check them in first.
What SKILL.md sets; muted values are Claude Code's defaults
lownpx claudepluginhub nuncaeslupus/claude-arsenal --plugin coreOther plugins' skills for the same job
23 skills in this plugin
/arsenal-initRuns the claude-arsenal installer (the init skill) under a name that does not collide with Claude Code's built-in /init. Use when the user types /arsenal-init. Not for writing a CLAUDE.md./bugreportReads Android bugreports (dumpstate .txt or .zip) through a byte-offset index — device summary, ranked checkup, section lookup, merged timeline, redacted copies, report diffs. Use when the user has a bugreport to read or diagnose. Not for live-device adb sessions or logcat-only files./coverage-gapsRanks the most valuable missing tests from coverage.py's coverage.json. Use when the user asks which tests are missing. Not for non-Python code.