smart-contract-auditing

smart-contract-auditing is a skill for Claude Code, Codex from nirholas/three.ws. It costs 114 tokens per session (3,374 once invoked), scanned A, original, Apache-2.0.

A guide to reviewing smart contracts, the programs that run on blockchains, for security weaknesses. It covers manual review, automated scanners, fuzz testing, and common DeFi attack patterns.

In plain words
What is it for?
Use it to audit contract code, test attack scenarios, document findings, and check whether security fixes are complete.
Why use it?
It gives you a structured way to look for flaws that could let attackers steal funds or change the protocol's behaviour.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit contract code, test attack scenarios, document findings, and check whether security fixes are complete.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/three.ws/smart-contract-auditing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nirholas/three.ws --skill smart-contract-auditing
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-contract-auditing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/smart-contract-auditing/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/smart-contract-auditing)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/smart-contract-auditing"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/smart-contract-auditing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smart-contract-auditing

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/smart-contract-auditing"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/smart-contract-auditing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.03374
Opus 5.5 $0.00046 $0.01350
Sonnet 5.5 $0.00023 $0.00675
Haiku 4.5 $0.00011 $0.00337

Measured 1mo ago against content hash 8c9861a068c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smart-contract-auditing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

data/skills/security/smart-contract-auditing/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Smart Contract Auditing — From Zero to Expert

This skill teaches you to think like a top-tier smart contract auditor. You'll learn to find vulnerabilities that automated tools miss, write clear findings, and reason about protocol-level risks in DeFi systems.

The Auditor's Mindset

"Your job is not to confirm the code works. It's to prove it can break."

An auditor must think adversarially. Every function is a potential attack surface. Every external call is a trust boundary. Every assumption is a vulnerability waiting to happen.

┌─────────────────────────────────────────────────┐
│              AUDITOR'S MENTAL MODEL              │
├─────────────────────────────────────────────────┤
│                                                  │
│   1. UNDERSTAND the protocol's invariants        │
│   2. ENUMERATE every state-changing path         │
│   3. CHALLENGE every assumption                  │
│   4. SIMULATE adversarial scenarios              │
│   5. VERIFY mitigations are complete             │
│                                                  │
│   "What must ALWAYS be true?" ← start here       │
│   "How can I make it false?" ← then ask this     │
│                                                  │
└─────────────────────────────────────────────────┘

Vulnerability Taxonomy

Tier 1 — Critical (Funds at Risk)

Vulnerability What Breaks Classic Example
Reentrancy State updated after external call The DAO hack ($60M)
Flash Loan Attack Price oracle manipulation in single tx bZx ($8M), Cream ($130M)
Access Control Missing onlyOwner / role checks Parity wallet freeze ($280M)
Unchecked Return Values Silent failure on transfer Token transfers returning false
Storage Collision Proxy upgrades overwriting slots Audius governance ($6M)

Tier 2 — High (Protocol Malfunction)

Vulnerability What Breaks How to Spot
Oracle Manipulation Price feeds return stale/wrong data Check updatedAt staleness
Integer Overflow/Underflow Math wraps around (pre-0.8.0) Solidity < 0.8 without SafeMath
Front-running MEV bots sandwich user txs Unprotected swaps, auctions
Denial of Service Unbounded loops, gas griefing Arrays that grow without limit
Signature Replay Same sig reused across chains/contracts Missing nonce or chainId

Read the full file on GitHub · 387 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 387 lines · 114 tokens per session scan A 8c9861a068c7

Subscribe to this mod's changes

smart-contract-auditing is a skill published in the GitHub repository nirholas/three.ws (250 stars, last pushed yesterday), licensed Apache-2.0. It adds 114 tokens to every session and 3,374 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

compliance-checker

Check affiliate content for FTC compliance and platform rules. Triggers on: "check my content for compliance", "FTC disclosure check", "is this legal", "review for compliance", "check affiliate disclosure", "am I FTC compliant", "audit my content", "compliance review", "legal check", "platform rules check", "check…

Affitor/affiliate-skills · 87 tokens

review-pr

Review a pull request for code quality and security issues. Use when the user wants to review a PR, check PR code changes, or audit a pull request. Triggers on: "review PR", "review pull request", "check this PR", "the review-pr skill".

dyoshikawa/rulesync · 61 tokens

tidy

Reviews a local diff, branch diff, or PR with file:line findings in confirmed and plausible tiers, gates any test the diff adds or changes, and in apply mode lands the fixes and diff-scoped simplifications. Use when asked to "review my changes", "code review", "tidy this", "simplify my diff", "deslop this"…

mblode/agent-skills · 144 tokens

spawn-reviewers

Spawn and collect the reviewer fleet at stage20spawnreviewers. Consumes spawn.json.spec (the authoritative spawn spec from derive-spawn-spec / derive-static-spec), resolves CODEINTELALLOWED and CODEINTELREQUIREROOTARG, builds per-agent prompts from the per-agent template + role suffixes (Bug Hunter A/B, Unified…

closedloop-ai/claude-plugins · 191 tokens

self-review

Use to critically self-review your changes, or when you want to delegate the review to a sub-agent.

sammcj/agentic-coding · 24 tokens

star-chamber

Multi-LLM craftsmanship council with live progress and debate mode for code review and design questions.

peteski22/agent-pragma · 22 tokens