code-security-audit

code-security-audit is a skill for Claude Code from Azzygoatcoder/agent-useful-skills. It costs 138 tokens per session (4,342 once invoked), scanned A, original, MIT.

A codebase security audit that checks software for vulnerabilities and produces a structured report with severity levels and suggested fixes.

In plain words
What is it for?
Auditing a repository, scanning quickly for risks, reviewing security changes, and checking fixes after an earlier audit.
Why use it?
It helps find security problems systematically instead of relying on one broad review or guesswork. It can also verify whether reported issues were fixed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-security-skills plugin — 2 skills shipped together

Good fit Auditing a repository, scanning quickly for risks, reviewing security changes, and checking fixes after an earlier audit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azzygoatcoder/agent-useful-skills/code-security-audit
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.

Any agent
npx skills add Azzygoatcoder/agent-useful-skills --skill code-security-audit
Clone the repo
git clone --depth 1 https://github.com/Azzygoatcoder/agent-useful-skills

Made for: Claude Code.

Or install code-security-skills, the plugin that ships this one along with the rest of its 2 skills.

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 code-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/code-security-audit/github.svg)](https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/code-security-audit)
Your own site
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/code-security-audit"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/code-security-audit/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 code-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/code-security-audit"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/code-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,342 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.00138 $0.04342
Opus 5.5 $0.00055 $0.01737
Sonnet 5.5 $0.00028 $0.00868
Haiku 4.5 $0.00014 $0.00434

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

Security

Grade A, and why

code-security-audit 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 2mo 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/code-security-skills/skills/code-security-audit/SKILL.md · 137 lines

How it starts

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

Code Security Audit

Overview

Systematic security audit of any codebase using parallel domain exploration. Launch independent review agents across three security domains simultaneously, then synthesize findings into a structured audit report with severity ratings and concrete remediation steps.

Core principle: Coverage through parallelization. Three focused agents catch more than one broad agent — each domain has different grep patterns, different mental models, and different blind spots.

场景判定(先定深度,再走流程)

场景 触发 深度 产出 流程
快速风险扫描 "快扫一眼" / "/audit quick" L1 一页风险概览(不看全文) Phase 1 单 agent + 摘要,跳过 Self-Check
全面审计(默认) "audit this repo" / "安全审计" / "/audit" L2-L3 完整 SECURITY_AUDIT.md Phase 1-3 全流程
增量重审 "再审计" / "检查修复" / "/reaudit" 变更文件 重审段 + 状态更新 Phase 4
状态追踪 "/reaudit status" / "mark-fixed <ID>" — 状态汇总 / 注解更新 状态追踪(不读文件)
快速修复 "修漏洞" / "/security-fix" — 按 P1-P4 批量修复 走 security-fix 技能
单 PR / 单文件 "review this PR" / "看下这个改动" — 代码评审 走 dev-workflow(自带代码评审清单),不进安全审计

默认是全面审计。用户要求"快扫/quick"才降级 L1;"修漏洞"走 security-fix、"再审计/检查修复"走 Phase 4。场景不清时按全面审计走,深度宁高勿低。

Slash Commands / Modes

Command Action Reads files?
/audit 全面审计 — explore → verify → report (Phase 1–3) 是
/reaudit 增量重审,验证先前 finding 是否已修复 (Phase 4) 仅变更文件
/reaudit mark-fixed <ID> 标记为已修复(只改状态注解,不读文件) 否
/reaudit mark-deferred <ID> [--reason "文本"] 标记为结构性延期 否
/reaudit status 认识态 + 修复进度汇总(按注解统计) 否
/reaudit validate 注解契约校验(与 CI 门禁同款) 否
/code-security-audit 同 /audit(规范名) 是

/audit 与 /reaudit 的入口说明见 references/reaudit-modes.md(含各模式逐步操作、报告路径探测、退出码约定)。

When to Use

Trigger when the user asks to:

  • Audit a repository or codebase for security issues
  • Perform a security review or vulnerability assessment
  • Check if security fixes were properly applied (re-audit)
  • Find vulnerabilities before a release or deployment

Read the full file on GitHub · 137 lines

Files

What ships with it

5 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. 2mo ago Changed · +20 lines dbeeba42e1d2
  2. 2mo ago Changed · +4 lines · +43 tokens per session b9eb437cbe00
  3. 3mo ago First seen · 113 lines · 95 tokens per session scan A cb99459a3b63

Subscribe to this mod's changes

code-security-audit is a skill published in the GitHub repository Azzygoatcoder/agent-useful-skills (9 stars, last pushed yesterday), licensed MIT. It adds 138 tokens to every session and 4,342 once invoked, about $0.0006 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-08-31.

Related

code-security-audit compared with skills from other repositories

code-security-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-security-auditAzzygoatcoder/agent-useful-skillsSkill9yesterdayMITA138Claude Code
workdsh-workbench-devtechflag/workdshSkill3531mo agoMITA34Claude Code, Codex
workdsh-expert-managertechflag/workdshSkill3531mo agoMITA43Claude Code
workdsh-ppt-designtechflag/workdshSkill3531mo agoMITA71Claude Code, Codex
workdsh-web-designtechflag/workdshSkill3531mo agoMITA55Claude Code, Codex
workdsh-excel-designtechflag/workdshSkill3531mo agoMITA54Claude Code, Codex
workdsh-word-designtechflag/workdshSkill3531mo agoMITA49Claude Code, Codex