Agent skill

Code Audit

by zhaoxuya520 in zhaoxuya520/reverse-skill

A skill your agent uses for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

MITAuto-check: warningsSecurity

Install Code Audit

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add zhaoxuya520/reverse-skill --skill code-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhaoxuya520/reverse-skill code-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhaoxuya520/reverse-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-audit .claude/skills/code-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-audit
GitHub stars
40k
Used in
2 other repos
Token cost
~374 tokens
SKILL.md length
91 words
Files
2 (incl. references)
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

  • Works in 4 steps: 范围与威胁模型 → 自动扫描 → 人工验证(MUST) → …
  • Authorized source-code security review and SAST workflows including Semgrep
  • SKILL.md covers ACTION REQUIRED(读完后立刻执行), 适用场景, 工作流 and 工具链, plus 3 more sections
  • Calls semgrep

What it does

Code Audit is an agent skill from zhaoxuya520/reverse-skill. Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

Its SKILL.md is about 370 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/sast-review-checklist.md`).

It sits in Security, covering Static analysis and SAST and Security review. It works with Semgrep. The repository describes itself as: Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base…. The licence is MIT.

When your agent uses it

  • Authorized source-code security review and SAST workflows including Semgrep
  • CodeQL patterns
  • Dangerous API hunting
  • Fix verification

Example prompts

  • “/code-audit”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 范围与威胁模型
  2. 自动扫描
  3. 人工验证(MUST)
  4. 产出

What it can do on your machine

Read from SKILL.md and the folder at commit cab634b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • semgrep

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Audit loads about 374 tokens when it runs, and up to ~452 if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 91 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~374
With references · SKILL.md plus every file in references/, read only if the agent opens them
~452

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningTells the agent its actions are pre-authorized / not to stop for confirmationSKILL.md:10
    ield-journal/precedent-pentest.md` 或代码审计授权

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zhaoxuya520/reverse-skill at commit cab634b, republished under its MIT licence (© zhaoxuya520). 91 words, ~374 tokens.

Download SKILL.mdSave it as .claude/skills/code-audit/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
code-audit
description
Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

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. 范围与威胁模型
text
□ 信任边界:用户输入、文件、反序列化、SSRF、鉴权中间件
□ 高价值资产:鉴权、支付、管理端、密钥处理
2. 自动扫描
bash
semgrep --config auto .
# 或项目规则包
semgrep --config p/owasp-top-ten .
3. 人工验证(MUST)
text
□ 每个 SAST 命中:可达性?可利用性?误报?
□ 鉴权:IDOR/越权、缺校验、错误的多租户隔离
□ 注入:SQL/命令/模板/LDAP
□ 加密:硬编码密钥、ECB、自定义 crypto
4. 产出
text
Finding:位置 + 数据流 + PoC + 修复建议
可选 ATT&CK / CWE 编号

工具链

工具语言/场景
Semgrep多语言快速规则
CodeQL深数据流(GitHub)
BanditPython
gosec / staticcheckGo
SpotBugs / FindSecBugsJava

参考

  • 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?

© zhaoxuya520, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/code-audit of zhaoxuya520/reverse-skill.

  • SKILL.md
  • references/sast-review-checklist.md

Open the folder on GitHubat commit cab634b

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in zhaoxuya520/reverse-skill, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Code Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Audit this skillzhaoxuya520/reverse-skill40k2 repos~374Automated safety check: WarnMIT
Semgrep Security Scantrailofbits/skills7.4k—~3.7kAutomated safety check: NotesCC-BY-SA-4.0
Code Auditsickn33/agentic-awesome-skills47k1 repos~480Automated safety check: PassMIT
Semgrepalpha-omega-security/scrutineer239—~439Automated safety check: PassMIT
Warden Scanjeremylongshore/tons-of-skills-marketplace2.8k—~750Automated safety check: NotesMIT
Kedro Security Reviewkedro-org/kedro11k—~3.3kAutomated safety check: PassCustom licence

Similar skills

  • Semgrep Security Scan

    trailofbits/skills

    Official

    Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.

    7.4k GitHub stars~3.7k tokensUpdated yesterday
    SecurityAuto-check: notes
  • Code Audit

    sickn33/agentic-awesome-skills

    Authorized source-code security review and SAST workflows: Semgrep and CodeQL pattern hunting, dangerous API identification, and fix verification.

    47k GitHub starsUsed in 1 repo~480 tokens
    SecurityAuto-check passed
  • Semgrep

    alpha-omega-security/scrutineer

    Run semgrep's p/security-audit and p/secrets rulesets and map hits into the findings shape.

    239 GitHub stars~439 tokensUpdated today
    SecurityAuto-check passed
  • Warden Scan

    jeremylongshore/tons-of-skills-marketplace

    Automated SAST + dependency vulnerability scan. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~750 tokensUpdated today
    SecurityAuto-check: notes
  • Kedro Security Review

    kedro-org/kedro

    Run a Kedro security scan on the full codebase or just a pull request.

    11k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Kedro Plugins Security Review

    kedro-org/kedro-plugins

    Run a security scan on the kedro-plugins codebase or a pull request.

    119 GitHub stars~3.1k tokensUpdated today
    SecurityAuto-check passed

More from zhaoxuya520/reverse-skill

All 19 skills in this repo
  • Diagram Generator

    zhaoxuya520/reverse-skill

    Turns text, notes, code, schemas or tables into diagram source in Mermaid, Graphviz DOT, PlantUML or SVG, and renders files when you ask for an image or PDF.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check: warnings
  • Supply Chain Security

    zhaoxuya520/reverse-skill

    A skill your agent uses for software supply-chain security assessment covering SBOM, SCA, CI/CD pipelines, container images, build integrity, dependency provenance, and vulnerability reachability.

    40k GitHub starsUsed in 4 repos~953 tokens
    Auto-check: warnings
  • Dsl Vm Reverse

    zhaoxuya520/reverse-skill

    Reverse JavaScript-based custom DSL/VM interpreters, non-standard WASM-like runtimes, and risk-control engines.

    40k GitHub starsUsed in 3 repos~2.3k tokens
    Auto-check passed
  • Browser Extension Reverse

    zhaoxuya520/reverse-skill

    A skill your agent uses for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic…

    40k GitHub starsUsed in 2 repos~366 tokens
    Auto-check passed
  • Go Rust Reverse

    zhaoxuya520/reverse-skill

    A skill your agent uses for reverse engineering stripped Go and Rust binaries including runtime recognition, pclntab/moduel data recovery, panic strings, and idiomatic decompilation recovery.

    40k GitHub starsUsed in 2 repos~339 tokens
    Auto-check passed
  • Identity Federation

    zhaoxuya520/reverse-skill

    A skill your agent uses for authorized assessment of federated identity systems including SAML, OIDC, OAuth2 flows, SSO misconfiguration, and token confusion issues.

    40k GitHub starsUsed in 2 repos~290 tokens
    Auto-check passed

Works with

Categories

Questions about Code Audit

What does Code Audit do?

A skill your agent uses for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification. Code Audit is an agent skill from zhaoxuya520/reverse-skill. Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

When should I use Code Audit?

Code Audit fits situations like: authorized source-code security review and SAST workflows including Semgrep; codeQL patterns; dangerous API hunting; fix verification.

How do I install Code Audit in Claude Code?

Run `npx skills add zhaoxuya520/reverse-skill --skill code-audit -a claude-code`. Or copy the skill folder (skills/code-audit in zhaoxuya520/reverse-skill) into .claude/skills/code-audit in your project. Claude Code loads it when a task matches its description.

How do I install Code Audit in Codex?

Run `npx skills add zhaoxuya520/reverse-skill --skill code-audit -a codex`. Or copy the skill folder (skills/code-audit in zhaoxuya520/reverse-skill) into .agents/skills/code-audit in your project. Codex loads it when a task matches its description.

Can I use Code Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhaoxuya520/reverse-skill --skill code-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-audit, .gemini/skills/code-audit, .github/skills/code-audit and .opencode/skills/code-audit in your project.

What does Code Audit need to run?

Going by SKILL.md and its folder, Code Audit needs the command-line tools its instructions call (semgrep). Our summary lists: Python 3.

Does Code Audit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Audit safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Code Audit use?

Code Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Audit use?

About 374 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 78 tokens, read only when the agent opens those files.

What are the alternatives to Code Audit?

Skills that share tags, products or a category with Code Audit: Semgrep Security Scan (trailofbits/skills, 7.4k stars), Code Audit (sickn33/agentic-awesome-skills, 47k stars), Semgrep (alpha-omega-security/scrutineer, 239 stars) and Warden Scan (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Audit?

zhaoxuya520 (a GitHub user) maintains it in zhaoxuya520/reverse-skill, which has 40,325 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on September 22, 2026.

Source: zhaoxuya520/reverse-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.