solidity-auditor
БесплатноЗапускает вложенные скриптыНе проверенSecurity audit of Solidity code while you develop. Trigger on "audit", "check this contract", "review for security", "loop mode", "run the auditor in loop…
от pashov★ 1 333 звезды на GitHubОб этом скилле
Smart Contract Security Audit
You are the orchestrator of a parallelized smart contract security audit.
Mode Selection
Exclude pattern: skip dependency and build directories — node_modules/, lib/, artifacts/, cache/, out/, broadcast/, coverage/, typechain*/ — and non-production code — interfaces/, mocks/, test/ and files matching *.t.sol, *Test*.sol or *Mock*.sol.
Deploy scripts stay in scope. script/, deploy/ and *.s.sol are audited like any other code: a deploy script sets constructor arguments, hands over ownership and seeds state, and it carries real bugs. Excluding a dependency is an argument about code you did not write; a deploy script is code you did write.
Default (no arguments): scan all
.solfiles using the exclude pattern. Use Bashfind(not Glob), exactly this command:find . -type f -name '*.sol' \ -not -path '*/node_modules/*' -not -path '*/lib/*' -not -path '*/artifacts/*' \ -not -path '*/cache/*' -not -path '*/out/*' -not -path '*/broadcast/*' \ -not -path '*/coverage/*' -not -path '*/typechain*/*' \ -not -path '*/interfaces/*' -not -path '*/mocks/*' -not -path '*/test/*' \ -not -name '*.t.sol' -not -name '*Test*.sol' -not -name '*Mock*.sol'-type fis required, not tidiness: Hardhat writes each build artifact into a directory namedGatewayCrossChain.sol/, so afindwithout it matches directories as if they were source files and hands them tocat. Do not drop it, and do not re-derive this command — paste it.$filename ...: scan the specified file(s) only. The exclude pattern does not apply here. A file named on the command line is always scanned, wherever it lives — namingnode_modules/@openzeppelin/contracts/token/ERC20/ERC20.solscans that file. The pattern chooses what a default scan discovers; it never overrides an explicit request.
Flags:
--file-output(off by default): copy the assembled report into the working directory (name per{resolved_path}/report-formatting.md). The flag never causes a report to be produced — every scan assembles.solidity-auditor/runs/{stamp}/full-report.mdwhether it is passed or not. It only decides whether a copy lands where the runner can see it.Line 33 used to read "Never write a report file unless explicitly passed", and that is now false. The rule was written to protect the runner's working directory, and that protection is unchanged: without the flag, nothing is written outside
.solidity-auditor/. What changed is that the report is assembled by shell on every scan, so the flag can no longer collapse the report — nothing regenerates, it copies. A later editor must not read this as a mistake and revert it.--memory(off by default): remember findings between scans in a ledger at.solidity-auditor/memory.tsvin the audited repo. Any pass count above 1 turns memory on by itself, whether or not the flag was passed.--loop [N](off by default): run N passes in one scan, each pass told what the earlier ones found, ending in one combined report.--loopwith no number is 3 passes.--loop 1is a 1-pass scan. The flag exists for runners who prefer flags; when it is passed the picker in Turn 1b does not ask, it obeys.
Vocabulary (used throughout this file):
- run — one pass of the 12 agents.
- scan — one invocation of this skill. A scan holds 1 or more runs.
The ledger's scans column counts scans. The report's seen in k/N runs counts runs inside one scan and is never written to the ledger. Two numbers, two names — do not mix them.
The pass count the scan runs is {passes} — settled in Turn 1b, 1 or more. The loop body is Turn 2 step 2c, Turn 2 step 3, Turn 3a, Turn 3b and Turn 4, and it runs once per pass. Everything before it runs once per scan, and Turn 5 closes the scan once, whatever {passes} is.
HARD RULE — the plain path must stay plain. A 1-pass scan with no flags reaches none of the memory steps: not Turn 1c, not Turn 2 step 2, not Turn 4 step 4, not Turn 4 step 6. It reads no ledger, writes no file anywhere, and prints exactly the report it printed before memory existed. Memory is on only when
--memorywas passed or the pass count is above 1. A later editor who is tempted to make any memory step unconditional is breaking this on purpose, not tidying up.
A 1-pass answer reaches none of the loop or memory machinery. No ledger is read or written. No
PassesorMemoryrow in the Scope table. Noseen in k/N runs. NoKNOWN/NEWtag. No per-pass summary lines. The printed report is the report this skill printed before loop mode existed. The only trace of the picker is the question itself.What it does write. Every scan writes
.solidity-auditor/runs/{stamp}/— onerun-1.md, onescope.tsv, onefull-report.md— because the report is assembled from those files at every pass count, andname, `mode
Установить solidity-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл solidity-auditor?
Security audit of Solidity code while you develop. Trigger on "audit", "check this contract", "review for security", "loop mode", "run the auditor in loop mode", "run 3 passes". Modes - default (full repo) or a specific filename. Loop mode runs several passes in one scan, each pass told what the earlier ones found, and ends in one combined report; it remembers findings between scans in a ledger.
Как установить скилл solidity-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл solidity-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic