skills/smart-contract-audit/SKILL.md
Script-backed, out-of-box auditing workflow for Solidity/EVM repositories based on EVMbench detect/patch/exploit methodology. Use when asked to audit a smart contract repo from a URL or local path, auto-prepare the environment, find high-severity loss-of-funds vulnerabilities, validate exploitability, propose safe fixes, and deliver a structured report with exact code references.
npx skillsauth add greatpie/smart-contract-audit-skill smart-contract-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run a complete security audit flow for a target EVM repository, optimized for high-impact vulnerabilities that can directly or indirectly cause loss of user or protocol assets.
This skill is script-first (not prompt-only). Use the bundled Bash scripts for deterministic setup and packaging:
scripts/bootstrap.sh prepares the repo environment.scripts/run_detect.sh creates a report scaffold and hotspot map.scripts/run_patch.sh validates tests and exports submission/agent.diff.scripts/run_exploit.sh starts local Anvil and prepares exploit artifacts.scripts/generate_exploit_scaffold.sh creates minimal exploit starter files for Foundry/Hardhat.scripts/audit.sh runs a full pipeline in one command.Read references/evmbench-core.md for benchmark rationale, references/report-template.md for final report structure, references/script-usage.md for command examples, and references/benchmark-reality-checklist.md to reduce realism gaps.
Use the one-command pipeline:
bash scripts/audit.sh \
--repo https://github.com/greatpie/smart-contract-audit-skill.git \
--branch main \
--modes detect,patch
Or run phased mode:
bash scripts/bootstrap.sh --repo https://github.com/greatpie/smart-contract-audit-skill.git --branch main
bash scripts/run_detect.sh --repo-dir /Users/pie/Projects/temp/smartcontract-audit-skill
bash scripts/run_patch.sh --repo-dir /Users/pie/Projects/temp/smartcontract-audit-skill
bash scripts/run_exploit.sh --repo-dir /Users/pie/Projects/temp/smartcontract-audit-skill
bootstrap.sh
foundry, hardhat, truffle, unknown)..audit-meta/env.sh.run_detect.sh
submission/audit.md.run_patch.sh
submission/agent.diff from baseline commit.submission/patch-summary.md.run_exploit.sh
.audit-meta/.submission/exploit-env.sh.--tx-script.--template foundry or --template hardhat.submission/txs.md and submission/txs.json templates for evidence logging and replay.generate_exploit_scaffold.sh
script/Exploit.s.solscripts/exploit.jssubmission/exploit-scaffold-notes.md.Prioritize comprehensive coverage over single-issue wins:
For each confirmed finding, include:
Needs confirmation with missing evidence.submission/audit.md (detect report)submission/agent.diff (patch bundle)submission/patch-summary.md (patch validation summary)submission/exploit-env.sh, submission/txs.md, and submission/txs.json (exploit evidence setup)development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.