plant-defects

plant-defects is a skill for Claude Code from cboone/agent-harness-plugins. It costs 58 tokens per session (2,706 once invoked), scanned A, original, MIT.

A testing discipline that plants a small, deliberate defect to confirm that a test or external checker notices it.

In plain words
What is it for?
Use it to test assertions, continuous-integration gates, linters, formatters, sanitizers, leak checkers, and other verification tools.
Why use it?
A test can pass without checking what you think it checks, especially for missing or weakened behavior. A planted defect makes that gap visible.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the plant-defects plugin — 1 skill shipped together

Good fit Use it to test assertions, continuous-integration gates, linters, formatters, sanitizers, leak checkers, and other verification tools.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add cboone/agent-harness-plugins
Claude Code
/plugin install plant-defects

Made for: Claude Code.

Or install plant-defects, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plant-defects

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/plant-defects/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/plant-defects)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/plant-defects"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/plant-defects/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plant-defects

Your own site · 80×15
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/plant-defects"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/plant-defects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,706 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02706
Opus 5.5 $0.00023 $0.01082
Sonnet 5.5 $0.00012 $0.00541
Haiku 4.5 $0.00006 $0.00271

Measured 23d ago against content hash be1d977ff765, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plant-defects scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plant-defects/skills/plant-defects/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plant Defects

The discipline of deliberately breaking code to prove a test can see it.

A test asserts a property of the code. Planting a defect asserts a property of the test, and the second does not follow from the first. Where a check is an external instrument, or where its claim is an absence, the second property has a bad default answer and reading the source cannot improve it.

When to Use

Use this when a check's own correctness is in question rather than the code's. The three signals, in descending order of urgency:

  • The claim is an absence. No leak, no race, no unused import, no warning, nothing left behind. A search for absence succeeds for the wrong reason when the instrument was never running.
  • The check is an external instrument. A sanitizer, a linter, a formatter, a leak checker, a conformance validator. Its exit code answers a question you did not ask, and its silence has two readings.
  • The failure mode is a weakening rather than a break. A release store simplified to relaxed, a tolerance widened, two correct lines put in the wrong order. Each compiles and each passes, which is what separates this from a defect the compiler already refuses.

Do not use this to re-derive coverage for ordinary code whose failure is a legible compile error or an obviously failing test. The compiler is already telling you.

Core Principles

  1. The second property has a bad default answer. "This test would catch that" is a claim about the test. Until it has been run against the defect it names, it is a prediction.
  2. Order the assertions. Establish that the instrument was running, then that the subject ran and its output parses, and only then read the absence. What is invariant is that no absence is believed before the first two; which of them comes first depends on the instrument, and the strong form of the first (an arm built to fail) is not always available.
  3. Record what happened, not what was expected. A result column filled in from the issue that filed the work is not a measurement. Several of the findings behind this skill are cases where the two differed.
  4. Encoding a plant is not the same as covering it. A plant far enough outside a bound is caught by a sibling check, so the arm that names it is asserting only that the error had a detectable sign. Weaken each assertion in turn and confirm something still fails.
  5. A plant that does not compile is not a passing plant. Judge on the build's exit code, not the shape of its output, or a grep for failures reads a compile error as a pass.
  6. Instruments do not compose by assumption. Tabulate defect against instrument and mark what each one cannot see. Where a row turns out to be covered by nothing, say so deliberately rather than leaving it implicit. A matrix that covers every row is a fine outcome; the point is to measure the cells, not to manufacture a gap.

Read the full file on GitHub · 119 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +9 lines be1d977ff765
  2. 25d ago Changed · +2 lines b4999d146e7b
  3. 26d ago Changed · +3 lines c3ad1d89ac96
  4. 27d ago Changed · +2 lines fdf9721b9798
  5. 1mo ago Changed 420c6643b256
  6. 1mo ago Changed · +2 lines · +20 tokens per session 3224ae226efa
  7. 2mo ago Changed · -11 lines · -169 tokens per session c44f3975f90a
  8. 2mo ago First seen · 112 lines · 207 tokens per session scan A a703531d420d

Subscribe to this mod's changes

plant-defects is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 58 tokens to every session and 2,706 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

plant-defects compared with skills from other repositories

plant-defects next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plant-defectscboone/agent-harness-pluginsSkill35d agoMITA58Claude Code
chat-complex-documentsvellum-ai/vellum-assistantSkill1.5k5d agoMITA90Claude Code, Codex
tui-migrate-setupwarpdotdev/warpSkill66k2d agoAGPL-3.0B75Claude Code, Codex
agent-qa-testingvibeeval/vibecosystemSkill55419d agoMITA58Claude Code, Codex
bootstrap-prdjoshukraine/dotfilesSkill4307d agoMITA25Claude Code
sync-local-reposvinta/hal-9000Skill144yesterdayMITA38Claude Code, Codex
talk-stage1-extractFlorianBruniaux/claude-code-pluginsSkill475d agoMITA64Claude Code