defending-code

defending-code is a plugin for Claude Code from air-gapped/skills. Its manifest loads nothing; the 4 skills it bundles cost 737 tokens per session together, scanned A, original, MIT.

A read-and-write security review workflow for finding and fixing vulnerabilities in source code. It creates threat models, scan findings, triage decisions, and proposed patches without executing the target application.

In plain words
What is it for?
Use it to model threats from code, known vulnerabilities, and project history; review source for security problems; verify and prioritize findings; route them to owners; and prepare reviewed patch candidates.
Why use it?
Security findings often include false positives, duplicates, unclear ownership, or severity that depends on how the system is deployed. This workflow helps verify issues, rank them, and trace fixes back to their root causes.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions subagents.

Good fit Use it to model threats from code, known vulnerabilities, and project history; review source for security problems; verify and prioritize findings; route them to owners; and prepare reviewed patch candidates.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add air-gapped/skills
/plugin install defending-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/air-gapped/skills

Made for: Claude Code.

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 defending-code

README.md
[![agentmods](https://agentmods.dev/badge/plugins/air-gapped/skills/defending-code/github.svg)](https://agentmods.dev/plugins/air-gapped/skills/defending-code)
Your own site
<a href="https://agentmods.dev/plugins/air-gapped/skills/defending-code"><img src="https://agentmods.dev/badge/plugins/air-gapped/skills/defending-code/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 defending-code

Your own site · 80×15
<a href="https://agentmods.dev/plugins/air-gapped/skills/defending-code"><img src="https://agentmods.dev/badge/plugins/air-gapped/skills/defending-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 4 skills cost 737 tokens a session between them.
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.
Security

Grade A, and why

defending-code 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 7d 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.

.claude-plugin/marketplace.json#defending-code · 41 lines

What it actually says

{
  "name": "defending-code",
  "source": "./",
  "description": "Security find-and-fix loop — adapted (Apache-2.0) from anthropics/defending-code-reference-harness and generalised to all vulnerability classes. Four read/write-only skills (no target-code execution): threat-model (bootstrap from code+CVEs+git-history, or interview an owner via Shostack's four questions, or both -> THREAT_MODEL.md), vuln-scan (static source review, parallel per-focus-area subagents -> VULN-FINDINGS.json), triage (adversarial N-vote verification, 16 false-positive exclusion rules, root-cause dedup, impact-on-asset x exploitability severity with stated deployment conditions, owner routing, checkpoint/resume -> TRIAGE.json), and patch (root-cause candidate diffs + independent reviewer, fix-first priority for deployment-conditional dangerous primitives, never auto-applied -> PATCHES/). The autonomous C/C++ + AddressSanitizer execution pipeline this was extracted from is referenced, not bundled (vuln-scan/HARNESS.md).",
  "version": "0.20261123.104",
  "author": {
    "name": "Jörgen"
  },
  "license": "MIT",
  "skills": [
    "./.claude/skills/threat-model",
    "./.claude/skills/vuln-scan",
    "./.claude/skills/triage",
    "./.claude/skills/patch"
  ],
  "strict": false,
  "agents": [
    "./.claude/agents/vuln-area-reviewer.md",
    "./.claude/agents/vuln-confidence-scorer.md",
    "./.claude/agents/triage-verifier.md",
    "./.claude/agents/triage-ranker.md",
    "./.claude/agents/patch-author.md",
    "./.claude/agents/patch-reviewer.md"
  ],
  "category": "security",
  "tags": [
    "security",
    "vulnerability",
    "threat-model",
    "vuln-scan",
    "triage",
    "patch",
    "sast",
    "static-analysis",
    "exploitability",
    "false-positive-reduction",
    "secure-code",
    "defending-code",
    "anthropic"
  ]
}
Contents

What it installs

The manifest is a name and a version. 4 skills travel with it, and installing the plugin installs all of them — 737 tokens a session between them. Each is measured on its own page, and each can be installed alone.

Files

What ships with it

1 file beside marketplace.json#defending-code 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. 7d ago Changed a21496125e3d
  2. 10d ago Changed b60b15aaebef
  3. 1mo ago Changed f2c8126fa56e
  4. 1mo ago Changed 89da5b342a00
  5. 1mo ago Changed ca623a74c9ba
  6. 2mo ago Changed 51ee4c3169a5
  7. 2mo ago Changed 52886cdab66a
  8. 2mo ago Changed 16ba5df65d30
  9. 2mo ago First seen · 41 lines scan A dae4f3aa4fd5

Subscribe to this mod's changes

defending-code is a plugin published in the GitHub repository air-gapped/skills (8 stars, last pushed 6d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-03.

Related

defending-code compared with plugins from other repositories

defending-code next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
defending-codeair-gapped/skillsPlugin86d agoMITA—Claude Code
branch-recapMalo-T/claude-toolbeltPlugin25d agoMITA—Claude Code
python-devDmitriyYukhanov/claude-pluginsPlugin81mo agoMITA—Claude Code
sonuPrabhdeepSingh/claude-pluginsPlugin421d agoMITA—Claude Code
atc-skillsbrycewang-stanford/Awesome-Journal-SkillsPlugin1.5k3d agoMITA—Claude Code
compact-nudgeMalo-T/claude-toolbeltPlugin25d agoMITA—Claude Code
code-reviewbearlike/AssistantPlugin43yesterdayMITA—Claude Code