Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TheColliery Verified Orgv3.28.3Apache-2.0In 1 marketplace
Audits code for dead code, leaks, silent failures and supply-chain risk, reporting findings before any fix is applied. A hook asks the agent to scan edited files at the end of each turn; rotCanaryMode off disables it.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
CoalMine is a set of nine code-quality "canary" skills for coding agents, plus three small hooks that nudge your agent to run the health scan at the right moments. It reports problems first. Fixes go through a menu you choose from, unless you set autoFixMode: safe in your global CoalMine config (a project config can only lower it), in which case rot-canary applies the safe, reversible fixes without a menu.
The nine skills are rot-canary (dead code, bug-prone logic, leaks, silent failures), gold-standard (rules and standards completeness), source-grounding (verify version-sensitive facts before asserting them), supply-chain-audit, resilience-audit, telemetry-canary, testability-canary, scale-canary and drift-canary. Two commands ship with them: /coalmine:stats (a local activity and rule-freshness report) and /coalmine:update (check for a newer version and choose how updates are handled). One read-only helper agent, coalmine-scanner, carries out scans the skills fan out.
All three are node scripts started by Claude Code from hooks/hooks.json, each with a 10-second timeout. None starts another process, opens a network connection, or sends anything anywhere.
| Hook | When | What it does |
|---|---|---|
coalmine-conductor | Session start | Reads the CoalMine config (~/.claude/.coalmine.json, then the project's) and the project's rule files (.claude/rules/, .agents/rules/, AGENTS.md, STANDARDS.md) to look for coalmine: verified stamps. It then tells your agent which canaries exist and when to offer them. It keeps a local update-check date at ~/.claude/coal/coalmine/update-check. |
rot-canary-touch | After a Write, Edit or MultiEdit tool call | Records the edited file's path in a session marker under your OS temp folder (coalmine/), and flags a file with merge-conflict markers or one that is very long. To do that it reads the edited file (up to a size limit) only to count its lines and spot those markers; it does not analyse the code. A MEMORY.md edit is recorded by name only. |
rot-canary-stop | When the agent finishes a turn | If code files were edited, it asks the agent to run rot-canary at its quick depth over those files and to report confirmed findings only. It also reminds the agent, quietly, when code changed but no MEMORY.md was updated (for that reminder it only checks that a MEMORY.md exists at the project root). Separately, unless your language setting names one of the supported languages or your locale variable (LANG, else LC_ALL, LC_MESSAGES or LANGUAGE) names Thai, Japanese, Chinese or Spanish, it reads the first 4 KiB of README.md, MEMORY.md and AGENTS.md at the project root, whichever exist, only to look for Thai, Japanese or Chinese text and pick the language of its reply; an English locale such as en_US.UTF-8 does not skip this read. It deletes its own session markers when the batch is done. |
You can turn the automatic scan off with the rotCanaryMode setting (auto, manual or off), or by creating the file ~/.claude/.rot-canary-off.
The hooks fetch and send nothing: CoalMine collects no telemetry and has no server (see PRIVACY.md in the repository). The hooks write only to your OS temp folder (session markers) and, under ~/.claude/, the update-check date and the mode files you set yourself, plus, only if you set COALMINE_DEBUG, a short debug-hatch record under ~/.claude/coal/coalmine/ (structure only, no file contents or paths).
Some skills can look facts up on the web. source-grounding checks version-sensitive facts, and supply-chain-audit can look up advisories. Those lookups are your agent's own tool calls, made under your own account. source-grounding fetches when it needs a source, with no menu first, and asks you only when a source cannot be fetched; supply-chain-audit looks up advisories the same way, itself or through source-grounding. Offline, a fact it cannot check is marked "unverified". In auto update mode, or when you run /coalmine:update yourself, the command asks your agent to run git ls-remote --tags against https://github.com/TheColliery/CoalMine.git to read the latest version tag; that call sends no project data.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thecolliery/coalmine --plugin coalminePlugins from other owners that cover similar ground