Install
openclaw skills install auto-bug-finderIteratively scans, analyzes, fixes, and verifies Solidity contracts using Hardhat and Slither until no critical, high, or medium security bugs remain or max...
openclaw skills install auto-bug-finderIterative, LLM-inspired bug detection and fixing system for production code. Currently supports Solidity (Hardhat + Slither). Extensible to Node.js, Python, and other stacks. Inspired by Andrej Karpathy's methodology: analyze → find → fix → test → repeat until clean.
Runs multi-tool security scans in iterative sprints:
# Copy the skill into your contract project
cp skills/auto-bug-finder/auto-bug-finder.js projects/my-contract/auto-bug-finder.js
# Run from the project root (where hardhat.config.js lives)
cd projects/my-contract
node auto-bug-finder.js
pip install slither-analyzer)The script creates in auto-bug-finder/:
FINAL-REPORT.md — Executive summary with all findingssprint-results.json — Detailed per-sprint datapatches/patch-N.md — Per-finding documentation with fix rationaleEdit the config at the top of auto-bug-finder.js:
const CONFIG = {
contractDir: 'contracts', // Solidity source directory
testFile: 'test/AgentEscrow.test.js', // Test file to run
maxSprints: 10, // Safety limit
severityGate: ['Critical', 'High', 'Medium'], // Stop when these are 0
heuristics: true, // Enable custom heuristic checks
};
FINAL-REPORT.md in project auto-bug-finder/ directoryFINAL-REPORT.md before allowing completion mark| Sprint | Findings | Critical | High | Medium | Low | Info |
|---|---|---|---|---|---|---|
| 1 | 7 | 0 | 0 | 0 | 2 | 5 |
| 2 | 7 (same) | 0 | 0 | 0 | 2 | 5 |
Result: ✅ LOW RISK — 2 improvements applied (removed unused Status.Created, added SelfEscrow check)