greatpie/smart-contract-audit-skill/smart-contract-audit
Claude Code and agent skill by greatpie/smart-contract-audit-skill
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install greatpie/smart-contract-audit-skill/smart-contract-auditSKILL.md
Smart Contract Audit
Overview
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.shprepares the repo environment.scripts/run_detect.shcreates a report scaffold and hotspot map.scripts/run_patch.shvalidates tests and exportssubmission/agent.diff.scripts/run_exploit.shstarts local Anvil and prepares exploit artifacts.scripts/generate_exploit_scaffold.shcreates minimal exploit starter files for Foundry/Hardhat.scripts/audit.shruns 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.
Quick Start
Use the one-command pipeline:
Or run phased mode:
Script Behavior
bootstrap.sh
- Clone from URL (depth 1 by default) or use a local repo path.
- Detect framework (
foundry,hardhat,truffle,unknown). - Install dependencies when possible.
- Run compile/test smoke checks when commands are available.
- Write metadata to
.audit-meta/env.sh.
run_detect.sh
- Build a deterministic report scaffold at
submission/audit.md. - Include scope stats and risk hotspot counts.
- Do not claim findings as confirmed without manual validation.
run_patch.sh
- Run build/test checks on the patched code.
- Export unified patch to
submission/agent.difffrom baseline commit. - Write summary to
submission/patch-summary.md.
run_exploit.sh
- Start a local Anvil chain and persist PID/logs under
.audit-meta/. - Write local exploit env to
submission/exploit-env.sh. - Optionally run a user-provided tx script via
--tx-script. - Optionally run built-in templates via
--template foundryor--template hardhat. - Create
submission/txs.mdandsubmission/txs.jsontemplates for evidence logging and replay.
generate_exploit_scaffold.sh
- Generate minimal starter files:
- Foundry:
script/Exploit.s.sol - Hardhat:
scripts/exploit.js - Write guidance to
submission/exploit-scaffold-notes.md.
Audit Standard
Prioritize comprehensive coverage over single-issue wins:
- Continue searching after finding one bug.
- Track explored components to avoid blind spots.
- Report only credible vulnerabilities.
For each confirmed finding, include:
- Title, severity, confidence.
- Root cause and exploit path.
- Concrete impact.
- Exact file/line references.
- Reproduction sketch and remediation.
Quality Bar
- Report only vulnerabilities that plausibly lead to asset loss or concrete takeover impact.
- Avoid severity inflation and duplicate root causes.
- Mark uncertain items as
Needs confirmationwith missing evidence. - Keep patches minimal and interface-safe unless security requires otherwise.
Expected Outputs
submission/audit.md(detect report)submission/agent.diff(patch bundle)submission/patch-summary.md(patch validation summary)submission/exploit-env.sh,submission/txs.md, andsubmission/txs.json(exploit evidence setup)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/smart-contract-audit/SKILL.md
Popularity
- Repository stars
- 47
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/greatpie/smart-contract-audit-skill/smart-contract-audit)