Agent skill

Audit Breadth Scan

by ccashwell in ccashwell/evm-cortex

A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.

MITAuto-check passedLegal & Compliance

Install Audit Breadth Scan

skills CLI
$ npx skills add ccashwell/evm-cortex --skill audit-breadth-scan -a claude-code

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

GitHub CLI
$ gh skill install ccashwell/evm-cortex audit-breadth-scan --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/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/audit-breadth-scan .claude/skills/audit-breadth-scan && 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
audit-breadth-scan
GitHub stars
131
Token cost
~1.4k tokens
SKILL.md length
268 words
Files
1
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.

  • Performing systematic breadth-first review of all contracts during a security audit
  • SKILL.md covers Purpose, Methodology, Common Vulnerability Patterns… and Breadth Scan Report Template, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Threat modeling

What it does

Audit Breadth Scan is an agent skill from ccashwell/evm-cortex. Use when performing systematic breadth-first review of all contracts during a security audit. Covers contract-by-contract review, function-level risk assessment, attack surface mapping, and identifying leads for depth analysis.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Threat modeling, Contract review and Security review. The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.

When your agent uses it

  • Performing systematic breadth-first review of all contracts during a security audit
  • Tasks that involve Threat modeling
  • Tasks that involve Contract review

Example prompts

  • “/audit-breadth-scan”

What it can do on your machine

Read from SKILL.md and the folder at commit f8f3301. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    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

Audit Breadth Scan loads about 1.4k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 268 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

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 passed

The automated check found no risky patterns in SKILL.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 ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 268 words, ~1,405 tokens.

Download SKILL.mdSave it as .claude/skills/audit-breadth-scan/SKILL.md (or your agent's skills folder).
name
audit-breadth-scan
description
Use when performing systematic breadth-first review of all contracts during a security audit. Covers contract-by-contract review, function-level risk assessment, attack surface mapping, and identifying leads for depth analysis.

Audit Breadth Scan

Purpose

The breadth scan is a systematic, contract-by-contract review that ensures every function is examined at least once. The goal is NOT to find every bug — it's to identify high-risk areas that warrant depth analysis.

Methodology

Pass 1: Contract-Level Assessment

For each contract in scope, assess:

markdown
## [Contract Name] — Breadth Assessment

### Overview
- Lines of code: X
- Inheritance chain: A -> B -> C
- State variables: Y
- External calls: Z

### Complexity Rating: [Low | Medium | High | Critical]
Factors: math complexity, external interactions, state machine logic,
         upgrade mechanics, cross-contract dependencies

### Initial Risk Notes
- [Any patterns that stand out]
Pass 2: Function-Level Risk Assessment

Rate each function on a risk matrix:

Risk FactorWeightCriteria
External callsHighCalls to untrusted contracts
State changesMediumModifies critical state (balances, shares)
Math operationsMediumDivision, multiplication with large numbers
Access controlHighMissing or incorrect
Value transferCriticalETH or token movement
User inputMediumComplex parameter handling
markdown
### Function Risk Matrix

| Function | External Calls | State Change | Math | Value Transfer | Risk |
|----------|---------------|--------------|------|----------------|------|
| deposit() | transferFrom | balances, supply | share calc | tokens in | HIGH |
| withdraw() | transfer, strategy | balances, supply | share calc | tokens out | CRITICAL |
| setFee() | none | fee param | none | none | LOW |
| harvest() | aave.withdraw | deployed amount | yield calc | tokens move | HIGH |
Pass 3: Attack Surface Mapping

For each high/critical risk function, map potential attack vectors:

markdown
### Attack Surface: withdraw()

**Preconditions**: User has shares, vault has assets

**Attack Vectors**:
1. Reentrancy via token callback (ERC777, hooks)
   - Mitigation: ReentrancyGuard
   - Status: CHECK if guard applied

2. Share price manipulation
   - Donate tokens to inflate totalAssets before withdraw
   - Status: CHECK virtual shares mitigation

3. Front-running
   - Sandwich attack around large withdrawals
   - Status: CHECK slippage protection

4. Oracle manipulation
   - Stale/manipulated price affects withdrawal amount
   - Status: CHECK staleness validation

5. Integer overflow/underflow
   - Share calculation edge cases
   - Status: CHECK Solidity 0.8 overflow protection

Common Vulnerability Patterns to Check

High Priority
□ Reentrancy (state changes after external calls)
□ Access control missing or bypassable
□ Oracle manipulation / stale prices
□ Flash loan attack vectors
□ Integer overflow in unchecked blocks
□ First depositor / share inflation attacks
□ Frontrunning / sandwich attacks
□ Unauthorized token approvals
□ Improper input validation
Medium Priority
□ Centralization risks (owner can rug)
□ Denial of service (gas griefing, reverts)
□ Rounding errors favoring attacker
□ Event emission correctness
□ Return value handling (unchecked transfers)
□ Storage collision (proxies)
□ Signature replay / malleability
□ Block timestamp dependence
Low Priority
□ Gas optimization opportunities
□ Code quality / readability
□ Missing error messages
□ Unused variables / imports
□ Inconsistent naming
□ Missing NatSpec documentation

Breadth Scan Report Template

For each contract:

markdown
## Vault.sol — Breadth Scan

### Functions Reviewed: 12/12
### Risk Rating: HIGH

### Findings (leads for depth)
| ID | Function | Pattern | Confidence | Depth Priority |
|----|----------|---------|------------|----------------|
| B-01 | withdraw | Possible reentrancy before state update | Medium | P0 |
| B-02 | deposit | No check for zero shares | High | P1 |
| B-03 | harvest | Unchecked return value from strategy | Medium | P1 |
| B-04 | setOracle | No timelock on oracle change | High | P2 |

### Clean Areas (no further review needed)
- Constructor: correctly initializes all state
- View functions: no state modifications
- Pause mechanism: standard OZ implementation

Timing Guidelines

Project SizeBreadth TimeDepth TimeReport
< 500 SLOC2-4 hours4-8 hours2 hours
500-2000 SLOC1-2 days2-4 days1 day
2000-5000 SLOC2-3 days4-6 days1-2 days
> 5000 SLOC3-5 days5-10 days2-3 days

Transition to Depth Analysis

After breadth scan, prioritize depth analysis leads:

  • P0: Likely vulnerability, high impact → analyze immediately
  • P1: Suspicious pattern, needs verification → analyze next
  • P2: Possible issue, lower impact → analyze if time permits
  • P3: Informational / optimization → include in report as-is

Checklist

  • Every contract in scope reviewed
  • Every external/public function risk-assessed
  • Attack surfaces mapped for high-risk functions
  • Common vulnerability patterns checked against each contract
  • Depth analysis leads prioritized (P0-P3)
  • Clean areas documented (saves time later)
  • Breadth scan notes organized per contract
  • Automated tool findings cross-referenced with manual review

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

Files

Just SKILL.md in skills/audit-breadth-scan of ccashwell/evm-cortex.

Open the folder on GitHubat commit f8f3301

Compare with similar skills

Audit Breadth Scan 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.

Audit Breadth Scan compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audit Breadth Scan this skillccashwell/evm-cortex131—~1.4kAutomated safety check: PassMIT
Security Audit Scannerruvnet/ruflo74k2 repos~823Automated safety check: PassMIT
Solidity AuditorGabson0x/bountyforge443—~3.7kAutomated safety check: PassNone
Solidity Auditorpashov/skills1.2k1 repos~9.9kAutomated safety check: PassMIT
CSO Security Auditgarrytan/gstack136k—~4.5kAutomated safety check: PassMIT
Behavioral State Analysisquillai-network/quillshield_skills129—~1.4kAutomated safety check: PassMIT

Similar skills

  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    SecurityAuto-check passed
  • Solidity Auditor

    Gabson0x/bountyforge

    Security audit of Solidity code while you develop. An agent skill from Gabson0x/bountyforge.

    443 GitHub stars~3.7k tokensUpdated 21 days ago
    Backend & APIsAuto-check passed
  • Solidity Auditor

    pashov/skills

    Security audit of Solidity code while you develop. An agent skill from pashov/skills.

    1.2k GitHub starsUsed in 1 repo~9.9k tokens
    Backend & APIsAuto-check passed
  • CSO Security Audit

    garrytan/gstack

    Runs an evidence-first security audit of a codebase through gstack's trusted launcher, with static findings by default and isolated reproduction when enabled.

    136k GitHub stars~4.5k tokensUpdated today
    SecurityAuto-check passed
  • Behavioral State Analysis

    quillai-network/quillshield_skills

    Token-efficient smart contract security auditing via Behavioral State Analysis (BSA).

    129 GitHub stars~1.4k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Commit Security Scan

    codexstar69/bug-hunter

    Scan code changes for security vulnerabilities using Bug Hunter-native artifacts and STRIDE context.

    519 GitHub stars~629 tokensUpdated 1 mo ago
    SecurityAuto-check passed

More from ccashwell/evm-cortex

All 89 skills in this repo
  • Xray Pre Audit

    ccashwell/evm-cortex

    A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.

    131 GitHub stars~25k tokensUpdated 8 days ago
    Auto-check passed
  • Aave Integration

    ccashwell/evm-cortex

    A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.

    131 GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • Access Control Patterns

    ccashwell/evm-cortex

    Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.

    131 GitHub stars~1.8k tokensUpdated 8 days ago
    Auto-check passed
  • Anvil Patterns

    ccashwell/evm-cortex

    A skill your agent uses when running a local Ethereum node with Anvil.

    131 GitHub stars~1.3k tokensUpdated 8 days ago
    Auto-check passed
  • Audit Depth Analysis

    ccashwell/evm-cortex

    A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.

    131 GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check passed
  • Audit Prep

    ccashwell/evm-cortex

    A skill your agent uses when preparing a codebase for security audit.

    131 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed

Questions about Audit Breadth Scan

What does Audit Breadth Scan do?

A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit. Audit Breadth Scan is an agent skill from ccashwell/evm-cortex. Use when performing systematic breadth-first review of all contracts during a security audit.

When should I use Audit Breadth Scan?

Audit Breadth Scan fits situations like: performing systematic breadth-first review of all contracts during a security audit; tasks that involve Threat modeling; tasks that involve Contract review.

How do I install Audit Breadth Scan in Claude Code?

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

How do I install Audit Breadth Scan in Codex?

Run `npx skills add ccashwell/evm-cortex --skill audit-breadth-scan -a codex`. Or copy the skill folder (skills/audit-breadth-scan in ccashwell/evm-cortex) into .agents/skills/audit-breadth-scan in your project. Codex loads it when a task matches its description.

Can I use Audit Breadth Scan 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 ccashwell/evm-cortex --skill audit-breadth-scan -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audit-breadth-scan, .gemini/skills/audit-breadth-scan, .github/skills/audit-breadth-scan and .opencode/skills/audit-breadth-scan in your project.

What does Audit Breadth Scan need to run?

SKILL.md names no scripts, command-line tools or credentials: Audit Breadth Scan is instructions for the agent only.

Does Audit Breadth Scan 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 Audit Breadth Scan safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Audit Breadth Scan use?

Audit Breadth Scan 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 Audit Breadth Scan use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Audit Breadth Scan?

Skills that share tags, products or a category with Audit Breadth Scan: Security Audit Scanner (ruvnet/ruflo, 74k stars), Solidity Auditor (Gabson0x/bountyforge, 443 stars), Solidity Auditor (pashov/skills, 1.2k stars) and CSO Security Audit (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audit Breadth Scan?

ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.

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