code-audit

code-audit is a skill for Claude Code, Codex from Saprophytic-seattle561/reverse-skill. It costs 31 tokens per session (676 once invoked), scanned A, a copy of code-audit, MIT.

A guide for authorized security reviews of an application's source code. It combines automated code scanning with manual checks for issues such as injection, missing access controls, and unsafe cryptography.

In plain words
What is it for?
Use it to review a repository or code change, run tools such as Semgrep or CodeQL, trace dangerous data flows, check authentication and tenant separation, and record fixes with evidence.
Why use it?
It turns scanner findings into verified security issues instead of treating every automated warning as a real problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a repository or code change, run tools such as Semgrep or CodeQL, trace dangerous data flows, check authentication and tenant separation, and record fixes with evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saprophytic-seattle561/reverse-skill/code-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 Saprophytic-seattle561/reverse-skill --skill code-audit
Clone the repo
git clone --depth 1 https://github.com/Saprophytic-seattle561/reverse-skill

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/saprophytic-seattle561/reverse-skill/code-audit"><img src="https://agentmods.dev/badge/skills/saprophytic-seattle561/reverse-skill/code-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 676 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 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.1 $0.00031 $0.00676
Opus 5.5 $0.00012 $0.00270
Sonnet 5.5 $0.00006 $0.00135
Haiku 4.5 $0.00003 $0.00068

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

Security

Grade A, and why

code-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 1mo 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 code-audit — 0 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.

skills/code-audit/SKILL.md · 82 lines

What it actually says

Source Code Security Audit

ACTION REQUIRED(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-pentest.md 或代码审计授权
  2. NOW: 确认有源码/仓库访问(无源码二进制 → 转 RE skill)
  3. NOW: 明确语言栈与范围(目录/服务/PR diff)
  4. NEXT: tool-index;semgrep 等
  5. ACT: 威胁建模草图 → 自动扫描 → 人工验证

适用场景

  • 白盒审计、PR/差分安全审查
  • Semgrep / CodeQL / Bandit / gosec 等 SAST
  • 危险 API、注入点、鉴权缺失、加密误用
  • 与 supply-chain-security/ 分工:本 skill 偏自有代码逻辑,供应链偏依赖与管道

工作流

1. 范围与威胁模型

□ 信任边界:用户输入、文件、反序列化、SSRF、鉴权中间件
□ 高价值资产:鉴权、支付、管理端、密钥处理

2. 自动扫描

semgrep --config auto .
# 或项目规则包
semgrep --config p/owasp-top-ten .

3. 人工验证(MUST)

□ 每个 SAST 命中:可达性?可利用性?误报?
□ 鉴权:IDOR/越权、缺校验、错误的多租户隔离
□ 注入:SQL/命令/模板/LDAP
□ 加密:硬编码密钥、ECB、自定义 crypto

4. 产出

Finding:位置 + 数据流 + PoC + 修复建议
可选 ATT&CK / CWE 编号

工具链

工具 语言/场景
Semgrep 多语言快速规则
CodeQL 深数据流(GitHub)
Bandit Python
gosec / staticcheck Go
SpotBugs / FindSecBugs Java

参考

  • references/sast-review-checklist.md
  • ../supply-chain-security/ ../api-security/ ../llm-security/(Agent 代码)

路由上下文

上游: MASTER R26
角色: ops/role-map.md cae
下游: 依赖漏洞 → supply-chain;运行时验证 → pentest-tools

任务完成自检

  • 是否人工验证而非只贴扫描器输出?
  • 是否含修复建议?
  • 是否限定在授权仓库范围?
  • Checklist?
Files

What ships with it

1 file 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. 1mo ago First seen · 82 lines · 31 tokens per session scan A 122dafd86828

Subscribe to this mod's changes

code-audit is a skill published in the GitHub repository Saprophytic-seattle561/reverse-skill (3 stars, last pushed 13d ago), licensed MIT. It adds 31 tokens to every session and 676 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to code-audit, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

engineer-bot-getting-started

An onboarding guide for an engineering delivery assistant. It helps define a repository, the allowed level of access, and the work needed before reviewing a code change.

makecindy/cindy · 44 tokens

nightly-audit-engineer-getting-started

A first-conversation guide for setting up a code-audit assistant. A code audit is a focused review of source code for defects or risky behavior, with the needed repository, scope, concerns, permissions, and schedule clarified first.

makecindy/cindy · 46 tokens

nightly-audit-engineer-ops

A workflow for reviewing code for reproducible quality problems and recording the evidence behind each finding. It follows data through inputs, permissions, storage, asynchronous work, and recovery, then suggests the smallest authorized fix.

makecindy/cindy · 43 tokens

engineer-bot-evidence

A local checker for confirming that delivery checks and supporting evidence belong to the current software version. It does not contact Git, continuous-integration systems, or the internet.

makecindy/cindy · 31 tokens

nightly-audit-engineer-evidence

A small local checker that creates stable identifiers for code-audit findings and marks duplicates within the current batch or among previously seen findings. It processes supplied JSON with Python and does not infer whether a problem was fixed.

makecindy/cindy · 37 tokens

shepherd

Use when asked to shepherd, babysit, monitor, or poll open pull requests or merge requests, including triaging review feedback, CI failures, and routine follow-up.

chrisbanes/skills · 37 tokens