claude-security
anthropics/claude-plugins-officialOfficial collectionSecurityCoding & code review
claude-security is a skill in anthropics/claude-plugins-official, last changed 25 Sept 2026. It can run shell commands, reach the network, name web addresses, pre-approve tools and run commands as it loads — read the findings before installing.
Claude Security: scan the codebase (the whole repository or a scoped part of it), scan changes (this branch's or a pull request's diff, or one commit), or suggest patches (findings turned into targeted patch files, each verified by a panel of agents, that you apply when you choose). Use when the user asks to scan, audit or check code with Claude Security, to scan their changes with Claude Security, or to fix or patch Claude Security findings.
At a glance
What it can touch
- Runs shell commands
- Reaches the network
- Names web addresses
- Pre-approves tools
- Runs commands as it loads
How much a skill can do, not whether it is risky.
Pattern check:3 items to reviewSee them
Install
Each tab says whether it installs commit a7ba5b9, the one we checked, or the latest version.
OpenCode also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Goose also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Windsurf (Devin Desktop) also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Zed also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Roo Code also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Factory Droid also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Junie also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
Amp also looks in .agents/skills/ and ~/.agents/skills/, so use the Any agent steps.
No install command here reaches Kiro. Copy the skill's folder into .kiro/skills/ in your project, or ~/.kiro/skills/ for all your projects. anthropics/claude-plugins-official/plugins/claude-security/skills/claude-security (opens in a new tab)
Antigravity also looks in .agents/skills/, so the Any agent steps reach it with This project. For All projects, see where Antigravity looks.
Cline also looks in .claude/skills/, so the Claude Code steps reach it with This project. For All projects, see where Cline looks.
Read these 3 items before installing, starting with Broad tools pre-approved in allowed-tools — SKILL.md:6
Claude Code
Pinned to commit a7ba5b9, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .claude/skills &&mkdir .claude/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .claude/skills/claude-security/ &&rm -rf "$tmp"If Claude Code was already running and this created the skills folder, run /reload-skills.
Or install the claude-security plugin it ships in. Installs the latest version, not the one we checked. Installs everything in the plugin, including any hooks, MCP servers and scripts our check doesn't cover.
claude plugin marketplace add anthropics/claude-plugins-official --scope project &&claude plugin install claude-security@claude-plugins-official --scope projectClaude apps
Pinned to commit a7ba5b9, the one we checked.
Skills in the Claude apps belong to your account rather than to a project.
Make claude-security.zip, with the skill folder at the top level:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&out="$(mktemp -d)" &&cp -R "$tmp"/plugins/claude-security/skills/claude-security "$out"/claude-security &&(cd "$out" && zip -qr - claude-security) > claude-security.zip &&rm -rf "$tmp" "$out"In Claude, open Customize > Skills, select +, then + Create skill > Upload a skill, and choose claude-security.zip.
On Free, Pro and Max plans, turn on Code execution and file creation (Create and edit files in newer settings) under Settings > Capabilities.
Codex
Pinned to commit a7ba5b9, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .agents/skills &&mkdir .agents/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .agents/skills/claude-security/ &&rm -rf "$tmp"Codex picks up new skills on its own; restart it if this one does not appear.
Cursor
Pinned to commit a7ba5b9, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .cursor/skills &&mkdir .cursor/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .cursor/skills/claude-security/ &&rm -rf "$tmp"Copilot & VS Code
Pinned to commit a7ba5b9, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .github/skills &&mkdir .github/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .github/skills/claude-security/ &&rm -rf "$tmp"In a running Copilot CLI session, run /skills reload.
Or install it with gh skill, which also installs the commit we checked. Needs GitHub CLI 2.90 or later.
gh skill install anthropics/claude-plugins-official plugins/claude-security/skills/claude-security/SKILL.md@a7ba5b93db0c7c8d17f3f1d25853adca79598a1a --agent github-copilot --scope projectGemini CLI
Pinned to commit a7ba5b9, the one we checked.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .gemini/skills &&mkdir .gemini/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .gemini/skills/claude-security/ &&rm -rf "$tmp"In a running session, run /skills reload.
Or use Gemini CLI’s own installer. Installs the latest version, not the one we checked.
gemini skills install https://github.com/anthropics/claude-plugins-official.git --path plugins/claude-security/skills/claude-security --scope workspaceAny agent
Pinned to commit a7ba5b9, the one we checked.
OpenCode, Goose, Windsurf (Devin Desktop), Zed, Roo Code, Factory Droid, Junie, Amp and Antigravity read .agents/skills in a project.
From your project's root folder:
tmp="$(mktemp -d)" &&git clone -q --depth 1 --filter=blob:none --no-checkout https://github.com/anthropics/claude-plugins-official.git "$tmp" &&git -C "$tmp" fetch -q --depth 1 origin a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&git -C "$tmp" sparse-checkout set -- plugins/claude-security/skills/claude-security &&git -C "$tmp" checkout -q a7ba5b93db0c7c8d17f3f1d25853adca79598a1a &&mkdir -p .agents/skills &&mkdir .agents/skills/claude-security &&cp -R "$tmp"/plugins/claude-security/skills/claude-security/. .agents/skills/claude-security/ &&rm -rf "$tmp"Or use the skills CLI from skills.sh. Installs the latest version, not the one we checked. The skills CLI reports installs to skills.sh unless you set DISABLE_TELEMETRY=1.
npx skills@1.7.4 add anthropics/claude-plugins-official --skill claude-securityWhat it can touch
From the files and frontmatter at commit a7ba5b9. This is how much a skill can do, not whether it is risky.
Pattern check
Pattern check: 3 items to review · commit a7ba5b9 · 3 Nov 2026
We checked every text file in this skill, at commit a7ba5b9 on 3 Nov 2026, against 45 published patterns such as download-and-run commands, hidden text and credential access. We don't run the skill, we don't read the web pages it points to, and we can't judge everything its instructions might lead an agent to do. In published tests, pattern checks like this one missed most malicious skills. Read the skill before you install it — especially anything it asks you to download or run.
How the check worksReport an incorrect finding
Outside links we did not follow
- https://github.com/anthropic-experimental/sandbox-runtime
Format check
Each agent reads SKILL.md a little differently. We check the file against each one's published rules; we don't run the skill in any agent.
Agent Skills specPasses with warnings
The open format from agentskills.io, held to the strictest version of each rule among the agents we check.
- Warning
The name "claude-security" uses the reserved word claude. Uploads to the Claude apps and API reject it. N5
Fix: Choose a name without "anthropic" or "claude".
- Warning
allowed-tools is a list; the spec defines a space-separated string. gh skill publish rejects a list, though Claude Code accepts one. O5
Fix: Write it on one line: allowed-tools: Read Write Edit Glob Grep AskUserQuestion Workflow Workflow(claude-security:scan) Agent(claude-security:scan-inventory, claude-security:scan-researcher, claude-security:scan-verifier, claude-security…
- Warning
Links to files that aren't in the skill folder: line 42: ${CLAUDE_SKILL_DIR}/jobs/scan-codebase.md, line 43: ${CLAUDE_SKILL_DIR}/jobs/scan-changes.md, line 44: ${CLAUDE_SKILL_DIR}/jobs/suggest-patches.md, line 51: ${CLAUDE_PLUGIN_ROOT}/scripts, line 52: ${CLAUDE_SKILL_DIR}/specs/report-spec.md and 1 more. B3
Fix: Add the missing files or correct the paths, relative to SKILL.md.
- Note
The first sentence of the description is 283 characters. Agents shorten long descriptions, so lead with the main job. D8
Fix: Start with one short sentence that names the job.
- Note
There is no license field, so readers can't tell whether they may reuse the skill. O2
Fix: Add license: with an SPDX name such as MIT or Apache-2.0, or the name of a bundled licence file.
- Note
Reference files over 100 lines with no table of contents at the top: jobs/scan-changes.md (147 lines), jobs/scan-codebase.md (127 lines), jobs/suggest-patches.md (126 lines) and specs/report-spec.md (220 lines). B5
Fix: Add a short list of the sections at the top of each.
- Warning
Claude CodePasses with warnings
Claude Code reads its own extra fields, ignores unknown ones, and still loads a skill whose frontmatter is broken, without its fields.
- Warning
Links to files that aren't in the skill folder: line 42: ${CLAUDE_SKILL_DIR}/jobs/scan-codebase.md, line 43: ${CLAUDE_SKILL_DIR}/jobs/scan-changes.md, line 44: ${CLAUDE_SKILL_DIR}/jobs/suggest-patches.md, line 51: ${CLAUDE_PLUGIN_ROOT}/scripts, line 52: ${CLAUDE_SKILL_DIR}/specs/report-spec.md and 1 more. B3
Fix: Add the missing files or correct the paths, relative to SKILL.md.
- Note
The name "claude-security" uses the reserved word claude. Claude Code loads it, but uploading it to claude.ai or the Claude API fails. N5
Fix: Choose a name without "anthropic" or "claude".
- Note
The first sentence of the description is 283 characters. Agents shorten long descriptions, so lead with the main job. D8
Fix: Start with one short sentence that names the job.
- Note
Reference files over 100 lines with no table of contents at the top: jobs/scan-changes.md (147 lines), jobs/scan-codebase.md (127 lines), jobs/suggest-patches.md (126 lines) and specs/report-spec.md (220 lines). B5
Fix: Add a short list of the sections at the top of each.
- Warning
Claude apps & API uploadFails
Uploading to claude.ai or the Claude API, or packaging with Anthropic's script, accepts only the six spec fields and stops on anything else.
- Error
The name "claude-security" uses the reserved word claude. Anthropic's API docs don't allow "anthropic" or "claude" in skill names. N5
Fix: Choose a name without "anthropic" or "claude".
- Warning
Links to files that aren't in the skill folder: line 42: ${CLAUDE_SKILL_DIR}/jobs/scan-codebase.md, line 43: ${CLAUDE_SKILL_DIR}/jobs/scan-changes.md, line 44: ${CLAUDE_SKILL_DIR}/jobs/suggest-patches.md, line 51: ${CLAUDE_PLUGIN_ROOT}/scripts, line 52: ${CLAUDE_SKILL_DIR}/specs/report-spec.md and 1 more. B3
Fix: Add the missing files or correct the paths, relative to SKILL.md.
- Note
The description is 446 characters. The claude.ai Help Center says 200 at most, though Anthropic's API docs and validator allow 1,024. D4
Fix: If the claude.ai upload refuses it, trim the description to 200 characters.
- Note
allowed-tools is a list; the spec defines a space-separated string. O5
Fix: Write it on one line: allowed-tools: Read Write Edit Glob Grep AskUserQuestion Workflow Workflow(claude-security:scan) Agent(claude-security:scan-inventory, claude-security:scan-researcher, claude-security:scan-verifier, claude-security…
- Note
Reference files over 100 lines with no table of contents at the top: jobs/scan-changes.md (147 lines), jobs/scan-codebase.md (127 lines), jobs/suggest-patches.md (126 lines) and specs/report-spec.md (220 lines). B5
Fix: Add a short list of the sections at the top of each.
- Error
OpenAI (Codex & API)Passes with warnings
Codex finds SKILL.md by its exact name and needs a description; OpenAI's Skills API checks the frontmatter against the spec and caps uploads.
- Warning
Links to files that aren't in the skill folder: line 42: ${CLAUDE_SKILL_DIR}/jobs/scan-codebase.md, line 43: ${CLAUDE_SKILL_DIR}/jobs/scan-changes.md, line 44: ${CLAUDE_SKILL_DIR}/jobs/suggest-patches.md, line 51: ${CLAUDE_PLUGIN_ROOT}/scripts, line 52: ${CLAUDE_SKILL_DIR}/specs/report-spec.md and 1 more. B3
Fix: Add the missing files or correct the paths, relative to SKILL.md.
- Note
The first sentence of the description is 283 characters. Agents shorten long descriptions, so lead with the main job. D8
Fix: Start with one short sentence that names the job.
- Note
allowed-tools is a list; the spec defines a space-separated string. O5
Fix: Write it on one line: allowed-tools: Read Write Edit Glob Grep AskUserQuestion Workflow Workflow(claude-security:scan) Agent(claude-security:scan-inventory, claude-security:scan-researcher, claude-security:scan-verifier, claude-security…
- Warning
VS Code & CopilotPasses with warnings
VS Code reads skills one folder below .github/skills, .claude/skills or .agents/skills and falls back to the folder name when the name is missing or differs; GitHub's Copilot docs require the exact name SKILL.md.
- Warning
Links to files that aren't in the skill folder: line 42: ${CLAUDE_SKILL_DIR}/jobs/scan-codebase.md, line 43: ${CLAUDE_SKILL_DIR}/jobs/scan-changes.md, line 44: ${CLAUDE_SKILL_DIR}/jobs/suggest-patches.md, line 51: ${CLAUDE_PLUGIN_ROOT}/scripts, line 52: ${CLAUDE_SKILL_DIR}/specs/report-spec.md and 1 more. B3
Fix: Add the missing files or correct the paths, relative to SKILL.md.
- Note
allowed-tools is a list; the spec defines a space-separated string. O5
Fix: Write it on one line: allowed-tools: Read Write Edit Glob Grep AskUserQuestion Workflow Workflow(claude-security:scan) Agent(claude-security:scan-inventory, claude-security:scan-researcher, claude-security:scan-verifier, claude-security…
- Warning
SKILL.md
Files
7 files
More from anthropics/claude-plugins-official
Other Security skills
Same category, most repo stars first.