Individual skill
simao-audit-pipeline
Use when performing an accounting-first smart contract security audit in the style of 0xSimao. Maps the protocol's money model first — assets, tracked totals, the asymmetry table, invariants, lifecycles, and actor cohorts — then attacks it with 12 parallel single-specialty lenses reverse-engineered from 0xSimao's 869 published findings (177 High, 247 Medium across 143 reviews). Its signature class: a tracked total that desyncs from reality, letting early actors over-withdraw and leaving the last user out insolvent. Produces deduplicated, gated, severity-classified findings with PoCs for High findings. Trigger on "simao audit", "0xsimao audit", "accounting-first audit", "follow the money audit".
skills/simao-audit-pipeline/SKILL.md
Source commit a53141f10a1bbf9c634e44af6bc5a29dd1660697
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 132
- Repository last updated
- Oct 23, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesSKILL.mdcore · 27,847 bytesVERSIONasset · 6 bytesreferences/attack-lenses/access-trust.mddoc · 5,494 bytesreferences/attack-lenses/accounting-desync.mddoc · 5,170 bytesreferences/attack-lenses/cross-chain-state.mddoc · 5,473 bytesreferences/attack-lenses/dos-griefing.mddoc · 5,414 bytesreferences/attack-lenses/edge-states.mddoc · 6,503 bytesreferences/attack-lenses/flow-completeness.mddoc · 5,762 bytesreferences/attack-lenses/integration-assumptions.mddoc · 5,724 bytesreferences/attack-lenses/liquidation-solvency.mddoc · 5,643 bytesreferences/attack-lenses/ordering-mev.mddoc · 5,556 bytesreferences/attack-lenses/rounding-precision.mddoc · 4,740 bytesreferences/attack-lenses/share-exchange-rate.mddoc · 4,562 bytesreferences/attack-lenses/shared-rules.mddoc · 4,492 bytesreferences/attack-lenses/temporal-cohort.mddoc · 5,269 bytesreferences/report-formatting.mddoc · 2,941 bytesreferences/severity-calibration.mddoc · 4,552 bytesreferences/simao-method.mddoc · 12,399 bytes
Read excerpt
# 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:
```bash
curl -sf https://raw.githubusercontent.com/0xsimao/0xsimao-ai/main/VERSION
```