Skip to content
Security
Skill

/smart-contract-audit

Comprehensive smart contract security audit framework with multi-expert analysis. Use for full audits of Ethereum / EVM Solidity and Vyper, Solana / SVM Anchor Rust, TON / FunC / Tact, or Sui / Move projects.

From plugin
bountyforge
46529 skills

Claude Code

$ npx -y skills add Gabson0x/bountyforge --skill smart-contract-audit --agent claude-code

SKILL.md

smart-contract-audit.SKILL.md
name: smart-contract-audit
description: Comprehensive smart contract security audit framework with multi-expert analysis. Use for full audits of Ethereum / EVM Solidity and Vyper, Solana / SVM Anchor Rust, TON / FunC / Tact, or Sui / Move projects.

Smart Contract Security Audit Framework

See also: [[Web3 Audit]], [[Trust Map]], [[Methodology]], [[Web3 Bug Classes]], [[Web3 Grep Arsenal]], [[Web3 POC Foundry]], [[Web3 Triage Report]], [[Web3 Hunt Foundation]], [[Code Sleuth]], [[Fizz]], [[Pashov Solidity Auditor]], [[Pashov X-Ray]], [[A→B Chains]], [[Lead Ledger]], [[Triage]], [[Report Writing]]

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`

**MANDATORY OUTPUT FILES:**

  • `audit-context.md`: Key assumptions, boundaries, and finding summaries
  • `audit-debug.md`: Programmatic log of all tests, searches, and decisions
  • `audit-report.md`: Final security assessment report
  • `findings.json` (optional): Machine-readable findings for tool integration

2. Audit Configuration

2.1 Protocol Type Detection and Custom Audit Tricks

**MANDATORY FIRST STEP - DETECT PROTOCOL TYPE AND BLOCKCHAIN:**

1. IDENTIFY BLOCKCHAIN PLATFORM:
   - Ethereum/EVM (Solidity, Vyper)
   - Solana (Anchor, Native Rust)
   - TON (FunC, Tact)
   - Sui (Move)
   - Cosmos (CosmWasm)
   - Near Protocol (AssemblyScript, Rust)
   - Cardano (Plutus, Haskell)
   - Other L1s/L2s (Avalanche, Polygon, BSC, Arbitrum, Optimism)

2. IDENTIFY PROTOCOL TYPE:
   - DeFi AMM/DEX (Uniswap-style, Curve-style, Order Books)
   - Lending/Borrowing (Compound-style, Aave-style, P2P)
   - Derivatives/Perpetuals (Options, Futures, Synthetic Assets)
   - Yield Farming/Staking (Liquidity Mining, Validator Staking)
   - Cross-chain/Bridges (Asset Bridges, Message Passing)
   - NFT/Gaming (Marketplaces, Games, Metaverse)
   - Governance/DAOs (Voting, Treasury Management)
   - Insurance/Risk (Coverage Protocols, Risk Assessment)

3. APPLY TYPE-SPECIFIC AUDIT TRICKS:

**Apply Language-Specific Audit Tricks:**

Based on detected blockchain platform, consult the appropriate reference file:

  • **Ethereum/Solidity**: Read `$SKILL_DIR/solidity-checks.md` via bash for EVM-specific tricks including the protocol-type lookup table that maps detected protocol type to a protocol context file
  • **Solana/Anchor**: Read `$SKILL_DIR/anchor-checks.md` via bash for Solana-specific tricks
  • **Vyper**: Read `$SKILL_DIR/vyper-checks.md` via bash for Vyper-specific tricks
  • **TON/FunC/Tact**: Read `$SKILL_DIR/ton-checks.md` via bash for TON actor-model tricks, FunC language footguns, Tact-specific patterns, and TEP standard compliance checks
  • **Sui/Move**: Read `$SKILL_DIR/move-checks.md` via bash for Sui Move object model (abilities), capability pattern, PTB/shared-object concurrency, upgrade safety, and real-world exploit patterns (Cetus, Thala, KriyaDEX)

2.2 Proof of Concept Approach

Only if the repo is already configured with a testing framework, create complete test cases that demonstrate the vulnerability with realistic parameters. Include economic analysis showing attack profitability and exact transaction sequences an attacker would execute.

2.3 Knowledge Base Integration

Reference `$SKILL_DIR/reference/` directory for vulnerability patterns organized by language:

  • `$SKILL_DIR/reference/anchor/` - Solana/Anchor vulnerability patterns (fv-anc-X)
  • `$SKILL_DIR/reference/anchor/protocols/` - Solana protocol-type context files covering oracle, lending, staking, AMM/DEX, and governance DeFi patterns; each file maps bug classes to Solana-specific preconditions, detection heuristics, and remediation notes; cross
Read more
@gabson0x
Ships withbountyforge

All-round bug bounty skill for Claude Code — parallelized agents for smart contract audits (EVM, Move, Solana, TRON), web/API security, local tooling orchestration, and submission-ready reports for HackerOne, Bugcrowd, Intigriti & Immunefi.

Stars on GitHub

Momentum

stars in total
465
Star history of Gabson0x/bountyforge on GitHub, a chart by star-history.com

Other skills on bountyforge.

bug-bounty

bug-bounty

Complete bug bounty workflow — recon (subdomain enumeration, asset discovery, fingerprinting, HackerOne scope, source code…

code-sleuth

code-sleuth

Analyze EVM smart contracts for storage-safety vulnerabilities that can cause persistent state updates to be lost, overwritten,…

fizz

fizz

Generate Echidna/Medusa-compatible Solidity fuzz suites from Foundry or Hardhat projects. Trigger on "fizz", "generate fuzz…

fizz-convert

fizz-convert

Convert English-language properties in PROPERTIES.md (produced by the Fizz skill) into Solidity assertions inside the existing…

fizz-sync

fizz-sync

Reconcile an existing Fizz harness with a changed source tree. Detects added/removed/changed contract functions, quarantines…

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about smart-contract-audit.

Which coding agents can use smart-contract-audit?
smart-contract-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.