claude-security

A security-review workflow for examining a codebase, a set of code changes, or a commit. It can also turn security findings into targeted patch files for you to review and apply.

In plain words
What is it for?
Use it to scan a repository, branch, pull-request changes, or one commit, and to prepare verified patch suggestions from the findings.
Why use it?
It gives security checks a defined starting point and separates finding problems from deciding which fixes to apply.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/thevibeworks/claude-code-docs/claude-security
Any agent
npx skills add thevibeworks/claude-code-docs --skill claude-security
Clone the repo
git clone --depth 1 https://github.com/thevibeworks/claude-code-docs

Made for: Claude Code, Codex.

Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00072 $0.01291
Opus 5 $0.00036 $0.00646
Sonnet 5 $0.00014 $0.00258
Haiku 4.5 $0.00007 $0.00129

Measured 2d ago against content hash 866561e1de52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-security 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 2d 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.

Origin

This is a copy

100% identical to claude-security — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/github/claude-plugins-official/plugins/claude-security/skills/claude-security/SKILL.md · 69 lines

How it starts

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

Claude Security

  • Session start time (UTC, the stamp report directories are named with): !date -u +%Y%m%d-%H%M%S

The front-desk menu

This is the front desk. Its whole purpose is to work out which job the user wants and drive it, following that job's recipe.

  1. If the user already asked for a specific job — in the arguments ($ARGUMENTS) or in plain text ("scan this repo", "scan my branch", "fix the findings", a bare commit sha) — do that job directly and skip the menu. The recipe still asks its own single follow-up question wherever the request left one open.

  2. Otherwise, open with the menu. Call AskUserQuestion once, single select, header: "Job", question: "What would you like to do?", offering exactly these three options (never invent others — the tool adds its own free-text entry). The menu is your first user-visible act; no text of any kind comes before it.

    Offer these three options:

    1. Scan codebase
    2. Scan changes
    3. Suggest patches

    "Scan codebase" is the recommended pick — it carries " (Recommended)" and goes first; the other two keep this order.

  3. Then note auto mode once, and Read the chosen job's recipe and follow it. As soon as the job is known — picked on the menu, or named directly in step 1 — first emit exactly one fixed plain-text line, worded identically every time: "Claude Security works best in auto mode. To enable it, press Shift+Tab until the status bar shows auto mode, or restart with claude --permission-mode auto." It is a note, not a question — say it once, never reword or size it, and do not diagnose the user's settings (whether auto mode is available to them is not yours to determine). Then read the recipe: every recipe opens with its own one-question sub-menu — which kind of scan, or which patch mode — built from the repository's real state, and every sub-menu has an "I don't know" choice that the recipe resolves to a sensible default itself. So the user answers at most a couple of questions, then one fixed confirmation before a scan actually starts (skipped only when their request already accepted the scan's time or token cost), and the run goes quiet; ask them all now, while the user is present.

Read the full file on GitHub · 69 lines

Files

What ships with it

6 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. 2d ago First seen · 69 lines · 72 tokens per session scan A 866561e1de52

Subscribe to this mod's changes

claude-security is a skill published in the GitHub repository thevibeworks/claude-code-docs (38 stars, last pushed 2d ago), licensed MIT. It adds 72 tokens to every session and 1,291 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to claude-security, differing in 5 lines, and is treated as a copy.