smart-contract-audit

smart-contract-audit is a skill for Claude Code, Codex from forefy/.context. It costs 55 tokens per session (4,787 once invoked), scanned A, original, MIT.

A security review framework for smart contracts, which are programs that run on blockchains and can control digital assets. It covers Solidity and Vyper on Ethereum-compatible networks, plus selected Solana, TON, and Sui technologies.

In plain words
What is it for?
Use it to audit smart-contract projects, search for exploitable vulnerabilities, and record the checks and decisions made during the review.
Why use it?
It helps find flaws that could let attackers steal funds, manipulate a protocol, or take control of parts of the system before deployment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to audit smart-contract projects, search for exploitable vulnerabilities, and record the checks and decisions made during the review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forefy/.context/smart-contract-audit
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 forefy/.context --skill smart-contract-audit
Clone the repo
git clone --depth 1 https://github.com/forefy/.context

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/forefy/.context/smart-contract-audit/github.svg)](https://agentmods.dev/skills/forefy/.context/smart-contract-audit)
Your own site
<a href="https://agentmods.dev/skills/forefy/.context/smart-contract-audit"><img src="https://agentmods.dev/badge/skills/forefy/.context/smart-contract-audit/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/forefy/.context/smart-contract-audit"><img src="https://agentmods.dev/badge/skills/forefy/.context/smart-contract-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,787 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.00055 $0.04787
Opus 5 $0.00028 $0.02393
Sonnet 5 $0.00011 $0.00957
Haiku 4.5 $0.00006 $0.00479

Measured 9d ago against content hash c2aeb2c264ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

smart-contract-audit 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 9d 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.

skills/blockchain/smart-contract-audit/SKILL.md · 363 lines

How it starts

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

Smart Contract Security Audit Framework

1. Core Identity and Purpose

You are a senior smart contract security auditor with expert-level knowledge in the field. Your primary goal is to deliver comprehensive security audits through systematic analysis that identifies exploitable vulnerabilities leading to direct fund loss, protocol manipulation, or system compromise.

SKILL DIRECTORY DETECTION: Before reading any skill resource files, locate this skill's installation directory once and store it as $SKILL_DIR:

SKILL_DIR=$([ -d "$HOME/.context/skills/smart-contract-audit" ] && echo "$HOME/.context/skills/smart-contract-audit" || echo ".context/skills/smart-contract-audit")

Use $SKILL_DIR as the base for all reference and resource file reads. Outputs always go to .context/outputs/ relative to the current project directory.

1.1 Context Preservation Protocol

MANDATORY DEBUG LOGGING:

  • Create .context/outputs/X/audit-debug.md to log all programmatic tests and decisions
  • Document every search, scan, and audit trick attempted with brief results
  • Log decision points (why certain paths were or weren't pursued)
  • Provide technical breadcrumbs for audit reviewers to validate thoroughness
  • Do not create any markdown headings or special characters, nothing but a pure straight line should be written as a log

1.2 Workspace and Output Management

IMPORTANT - .context Directory Handling:

  • IGNORE ALL FILES in the .context/ directory of the project being audited unless specifically mentioned or referenced by the user
  • The .context/ folder contains audit framework files and should NOT be included in your security analysis
  • Only analyze the actual project files outside of .context/
  • EXCEPTION: Use $SKILL_DIR/reference/ for vulnerability pattern lookups

Output Directory Structure: When saving any audit outputs, reports, or analysis files:

  • Save to .context/outputs/ directory in numbered folders: .context/outputs/1/, .context/outputs/2/, .context/outputs/3/, etc.
  • IMPORTANT: Check existing directories first and use the next available number (if .context/outputs/1/ exists, use .context/outputs/2/)
  • Never overwrite existing audit run directories
  • Create the numbered folder structure automatically if it doesn't exist
  • Example paths: .context/outputs/1/audit-report.md, .context/outputs/2/findings.json, .context/outputs/3/threat-model.md

Read the full file on GitHub · 363 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 363 lines · 55 tokens per session scan A c2aeb2c264ed

Subscribe to this mod's changes

smart-contract-audit is a skill published in the GitHub repository forefy/.context (144 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 4,787 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

web3-audit

Smart contract security audit — 10 DeFi bug classes (accounting desync, access control, incomplete path, off-by-one, oracle, ERC4626, reentrancy, flash loan, signature replay, proxy), pre-dive kill signals (TVL < $500K etc), Foundry PoC template, grep patterns for each class, and real Immunefi paid examples. Use for…

Awarexone/Agentic-Bug-Hunter · 103 tokens

meme-coin-audit

Meme coin and token security audit — rug pull detection (honeypot, hidden mint, fee manipulation, LP lock bypass), Solana SPL token analysis (freeze authority, mint authority, metadata mutability), Token-2022 extension risks (transfer hooks, permanent delegate), DEX liquidity pool attacks (sandwich amplification, LP…

Awarexone/Agentic-Bug-Hunter · 129 tokens

authoring-godot-prompter-skills

Use when writing or editing a SKILL.md or an agent definition in this repo — required frontmatter, section ordering, and the GDScript-then-C# example convention.

jame581/GodotPrompter · 47 tokens

hr-blockchain

Help HR and recruiting teams hire and screen blockchain and Web3 engineering candidates (smart contracts, protocol engineering, cryptography). Use when asked to write a blockchain engineer job description, create smart contract interview questions, assess a Web3 candidate, build a blockchain role leveling framework…

tuanductran/hr-skills · 65 tokens

defi-trading-systems

Designs DeFi trading systems for perpetual futures, liquidity provision, and automated strategies with risk management and MEV protection.

organvm-iv-taxis/a-i--skills · 31 tokens

clawild-moltbook

Use when autonomous crypto intelligence agent for Moltbook — blockchain analysis, social sentiment tracking, and real-time alpha detection. Use when working with clawild moltbook.

oyi77/1ai-skills · 40 tokens