Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 .sol files using the exclude pattern. Use Bash find (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 f is required, not tidiness: Hardhat writes each build artifact into a directory named GatewayCrossChain.sol/, so a find without it matches directories as if they were source files and hands them to cat. 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 — naming node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol scans 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.md whether 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.tsv in 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. --loop with no number is 3 passes. --loop 1 is 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 --memory was 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 Passes or Memory row in the Scope table. No seen in k/N runs. No KNOWN / NEW tag. 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}/ — one run-1.md, one scope.tsv, one full-report.md — because the report is assembled from those files at every pass count, and name, `mode

Полный SKILL.md на GitHub

Установить solidity-auditor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdVERSIONreferences/agent-prompts.mdreferences/assemble.shreferences/dedup-and-assembly.mdreferences/hacking-agents/access-control-agent.mdreferences/hacking-agents/asymmetry-agent.mdreferences/hacking-agents/boundary-agent.mdreferences/hacking-agents/economic-security-agent.mdreferences/hacking-agents/execution-trace-agent.mdreferences/hacking-agents/first-principles-agent.mdreferences/hacking-agents/flow-gap-agent.mdreferences/hacking-agents/invariant-agent.mdreferences/hacking-agents/math-precision-agent.mdreferences/hacking-agents/numerical-gap-agent.mdreferences/hacking-agents/periphery-agent.mdreferences/hacking-agents/shared-rules.mdreferences/hacking-agents/trust-gap-agent.mdreferences/judging.mdreferences/report-formatting.mdreferences/report-language.mdreferences/senior-auditor-sop.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить solidity-auditor с