simao-audit-pipeline

simao-audit-pipeline is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 0 tokens per session (6,728 once invoked), scanned B, original, MIT.

An accounting-first method for auditing smart contracts, especially protocols that track assets, balances, and user claims. It models where money enters and leaves before checking different classes of security flaws.

In plain words
What is it for?
Use it to map assets and liabilities, define invariants, analyze user lifecycles, compare accounting changes, and investigate contract security issues.
Why use it?
It helps reveal cases where contract records no longer match real assets, leaving some users unable to withdraw what they are owed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; names the AskUserQuestion tool.

Good fit Use it to map assets and liabilities, define invariants, analyze user lifecycles, compare accounting changes, and investigate contract security issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccashwell/evm-cortex/simao-audit-pipeline
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 ccashwell/evm-cortex --skill simao-audit-pipeline
Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/simao-audit-pipeline/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/simao-audit-pipeline)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/simao-audit-pipeline"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/simao-audit-pipeline/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 simao-audit-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/simao-audit-pipeline"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/simao-audit-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 154
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
  • medium Data Exfiltration · line 17
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00000 $0.06728
Opus 5.5 $0.00000 $0.02691
Sonnet 5.5 $0.00000 $0.01346
Haiku 4.5 $0.00000 $0.00673

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

Security

Grade B, and why

simao-audit-pipeline scanned grade B with 2 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

7. **Auto-clean:** `rm -rf {bundle_dir}`. It is transient build state, not an artifact. For debugging, copy it elsewhere before re-running.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf https://raw.githubusercontent.com/0xsimao/0xsimao-ai/main/VERSION
skills/simao-audit-pipeline/SKILL.md · 336 lines

How it starts

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

0xSimao Audit Pipeline

You are the orchestrator of an accounting-first, parallelized smart contract security audit.

The method is reverse-engineered from 0xSimao's 869 published findings (177 High, 247 Medium) across 143 reviews. His signature is not a checklist. It is this: build the protocol's accounting model first, then find the one step in a multi-step sequence where a tracked total desyncs from reality — and prove who is left holding the loss.

Roughly a third of his Highs are one shape: value leaves the contract but the variable tracking it is never decremented (or is decremented in only one of two branches), so early actors over-withdraw and the last actor out is insolvent. The twelve lenses are built around that class and its siblings.

Vendored from 0xSimao's open-source skill (github.com/0xsimao/0xsimao-ai), VERSION 1.0.0 (see the VERSION file alongside this one). Everything under references/ is upstream content carried over intact, save one repo-convention normalization — on-chain → onchain — required by this repo's style rule. The EVM Cortex adaptations (agent mapping, Foundry pre-flight, PoC routing) live in this SKILL.md only, so an upstream re-sync replaces references/ cleanly. Check for a newer upstream revision before a high-stakes audit:

curl -sf https://raw.githubusercontent.com/0xsimao/0xsimao-ai/main/VERSION

If that returns a version greater than 1.0.0, this skill is behind upstream.

The stance: build the money map, then attack it

This is what separates a 0xSimao audit from a generic parallel scan. Most audit tooling scans for bad lines — that finds what a linter finds. This pipeline writes the protocol's accounting model down first, then hunts the gap between what the protocol records and what it holds. Three consequences worth stating up front:

  • The money map is a prerequisite, not a filter. The largest class of bug lives in the relationships between tracked totals, not in single lines, and no lens can see those relationships without the map. A lens that also finds a bricked liquidation, a signature defect, or a token-compatibility break still reports it — the map is the starting point, not the boundary.
  • A finding is not real until traced with concrete numbers and a named victim. No balance sheet, no attack path with real values → LEAD, not FINDING. Leads are honest calibration, not failures. Emit them.
  • The closing tests are mandatory. Every lens runs the Last User Out test on each lifecycle, and the saturation sweep once it finds one bug — mine every sibling site of the same shape. A repeat instance missed is an audit failure.

Read the full file on GitHub · 336 lines

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 · 336 lines · 0 tokens per session scan B 05a13b9404dd

Subscribe to this mod's changes

simao-audit-pipeline is a skill published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,728 tokens. A static security scan graded it B with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.