/install auto-bug-finder
Auto Bug Finder — Code Security Scanner
Iterative, 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.
What It Does
Runs multi-tool security scans in iterative sprints:
- Scan — Compiles, runs tests, runs static analysis (Slither for Solidity), checks coverage
- Analyze — Parses all tool outputs into structured findings (Critical/High/Medium/Low/Info)
- Fix — Generates patches for each finding with documentation
- Verify — Recompiles, retests, rescans to confirm fixes
- Loop — Repeats until 0 Critical/High/Medium findings OR 10 sprints max
When To Use
- Before marking any Solidity contract as complete (mandatory per Netrix policy)
- Before mainnet deployment — catch issues cheaply on testnet
- After major refactors — verify no regressions
- As part of CI/CD — automated security gate
How To Use
Quick Start
# 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
Requirements
- Node.js 18+
- Hardhat project with existing tests
- Slither (
pip install slither-analyzer) - Solidity 0.8.x contracts
Output
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 rationale
Customization
Edit 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
};
Heuristic Checks (Beyond Slither)
- Missing zero-address validation on sensitive parameters
- Missing event emissions on state changes
- Self-escrow / self-interaction risks
- Unreachable enum states
- State transition completeness
- Access control gaps
Auto-Audit Policy (MANDATORY — All Code)
- All final code (smart contracts, APIs, services, frontends) must pass Auto Bug Finder before marking complete
- Gate: 0 Critical, 0 High, 0 Medium findings required
- Max Sprints: 10 (safety limit)
- Output:
FINAL-REPORT.mdin projectauto-bug-finder/directory - PM cron checks for
FINAL-REPORT.mdbefore allowing completion mark
First Run: Agent Escrow (2026-03-16)
| 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)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install auto-bug-finder - 安装完成后,直接呼叫该 Skill 的名称或使用
/auto-bug-finder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Auto Bug Finder 是什么?
Iteratively scans, analyzes, fixes, and verifies Solidity contracts using Hardhat and Slither until no critical, high, or medium security bugs remain or max... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 262 次。
如何安装 Auto Bug Finder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-bug-finder」即可一键安装,无需额外配置。
Auto Bug Finder 是免费的吗?
是的,Auto Bug Finder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Auto Bug Finder 支持哪些平台?
Auto Bug Finder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Auto Bug Finder?
由 jengajojo(@jengajojo)开发并维护,当前版本 v1.0.0。