Agent skill

Smart Contract Audit

by forefy in forefy/.context

Comprehensive smart contract security audit framework with multi-expert analysis.

MITAuto-check passedSecurity

Install Smart Contract Audit

skills CLI
$ npx skills add forefy/.context --skill smart-contract-audit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forefy/.context smart-contract-audit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forefy/.context.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/blockchain/smart-contract-audit .claude/skills/smart-contract-audit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
smart-contract-audit
GitHub stars
152
Used in
1 other repo
Token cost
~5.1k tokens
SKILL.md length
1,278 words
Files
365
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Comprehensive smart contract security audit framework with multi-expert analysis.

  • Works in 7 steps: Core Identity and Purpose → Audit Configuration → Audit Methodology → …
  • Full audits of Ethereum / EVM Solidity and Vyper
  • SKILL.md covers 1. Core Identity and Purpose, 2. Audit Configuration, 3. Audit Methodology and 4. Multi-Expert Analysis…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Smart Contract Audit is an agent skill from forefy/.context. 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.

Its SKILL.md is about 5.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 369 other files (for example `anchor-checks.md`, `finding-format.md` and `move-checks.md`).

It sits in Security, covering Smart contract auditing and Smart contracts. It works with Rust, Solidity, Ethereum and Solana. The repository describes itself as: AI Agent Skills, Goals and Dynamic Workflows for Security Auditing, Pentesting and Research. The licence is MIT.

When your agent uses it

  • Full audits of Ethereum / EVM Solidity and Vyper
  • Solana / SVM Anchor Rust
  • TON / FunC / Tact
  • Sui / Move projects

Example prompts

  • “/smart-contract-audit”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Core Identity and Purpose
  2. Audit Configuration
  3. Audit Methodology
  4. Multi-Expert Analysis Framework
  5. Finding Documentation Protocol
  6. Triager Validation Process
  7. Report Generation

What it can do on your machine

Read from SKILL.md and the folder at commit c8ff161. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown, bash and mermaid).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • consensys.github.io
    • swcregistry.io
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Smart Contract Audit loads about 5.1k tokens when it runs. Until then it costs about 57 tokens; SKILL.md has 1,278 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~57
When it runs · the whole SKILL.md, loaded when a task matches
~5.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forefy/.context at commit c8ff161, republished under its MIT licence (© forefy). 1,278 words, ~5,139 tokens.

Download SKILL.mdSave it as .claude/skills/smart-contract-audit/SKILL.md (or your agent's skills folder). This skill also uses 364 other files; get the full folder from GitHub.
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

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:

bash
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:

markdown
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-referenced to fv-anc-X IDs
  • $SKILL_DIR/reference/solidity/ - Ethereum/Solidity vulnerability patterns (fv-sol-X)
  • $SKILL_DIR/reference/solidity/protocols/ - EVM protocol-type context files derived from 10,600+ real audit findings; each file maps bug classes to protocol-specific preconditions, detection heuristics, and historical exploit patterns; cross-referenced to fv-sol-X IDs
  • $SKILL_DIR/reference/vyper/ - Vyper vulnerability patterns (fv-vyp-X)
  • $SKILL_DIR/reference/ton/ - TON/FunC/Tact vulnerability patterns (fv-ton-X)
  • $SKILL_DIR/reference/ton/protocols/ - TON protocol-type context files covering oracle (async delivery model), AMM/DEX (async slippage), lending (async liquidation), staking (accumulator ordering, cooldown griefing), and bridge/governance patterns; cross-referenced to fv-ton-X IDs
  • $SKILL_DIR/reference/move/ - Sui/Move vulnerability patterns (fv-mov-X)
  • $SKILL_DIR/reference/move/protocols/ - Sui/Move protocol-type context files covering oracle (Pyth on Sui), AMM/DEX (CLMM tick arithmetic, flash swap), lending (vault inflation, capability-based access), staking (PTB flash stake, receipt duplication), and governance (UpgradeCap, AdminCap, ZK nullifier) patterns; cross-referenced to fv-mov-X IDs

Three-layer reading order for Solidity/EVM audits:

  1. Detect protocol type and load the matching $SKILL_DIR/reference/solidity/protocols/[type].md - this is the primary checklist
  2. For each bug class in the protocol file, reference the corresponding fv-sol-X entry for deeper theory and code examples
  3. Apply quick tricks from $SKILL_DIR/solidity-checks.md throughout

Three-layer reading order for Solana/Anchor audits:

  1. Detect protocol type (oracle consumer, lending, staking, AMM/DEX, governance) and load the matching $SKILL_DIR/reference/anchor/protocols/[type].md - this provides protocol-specific preconditions and heuristics
  2. For each bug class in the protocol file, reference the corresponding fv-anc-X entry for detection patterns specific to Anchor/Rust
  3. Apply quick tricks from $SKILL_DIR/anchor-checks.md throughout, paying special attention to Token-2022 and compute budget heuristics when relevant

Three-layer reading order for TON/FunC/Tact audits:

  1. Detect protocol type (oracle consumer, AMM/DEX, lending, staking, bridge/governance) and load the matching $SKILL_DIR/reference/ton/protocols/[type].md - emphasizes async message model preconditions unique to TON
  2. For each bug class, reference the corresponding fv-ton-X entry for TON actor model specific patterns
  3. Apply quick tricks from $SKILL_DIR/ton-checks.md throughout

Three-layer reading order for Sui/Move audits:

  1. Detect protocol type (oracle consumer, AMM/DEX, lending, staking, governance) and load the matching $SKILL_DIR/reference/move/protocols/[type].md - emphasizes Sui object model and capability pattern preconditions
  2. For each bug class, reference the corresponding fv-mov-X entry for Move type system specific patterns
  3. Apply quick tricks from $SKILL_DIR/move-checks.md throughout

Two-layer reading order for Vyper audits:

  1. Identify the vulnerability surface (reentrancy, integer overflow, access control, external calls, timestamp, randomness, front-running, precision, DoS, upgradeability) and load the matching $SKILL_DIR/reference/vyper/fv-vyp-X-[category]/readme.md - Vyper compiler version and built-in guard behavior must be established first as they affect which patterns apply
  2. Apply quick tricks from $SKILL_DIR/vyper-checks.md throughout, paying particular attention to compiler-version-specific reentrancy lock behavior and fixed-point division edge cases

External resources:

Show full SKILL.md (359 more words)Show less

3. Audit Methodology

Step 1: Scope Analysis and Detection

MANDATORY FIRST ACTIONS:

markdown
1. IDENTIFY AUDIT SCOPE:
   - What smart contracts are in scope? (core protocol, periphery, governance)
   - What smart contracts are explicitly OUT of scope?
   - What blockchain networks are targeted? (Ethereum, Polygon, BSC, etc.)
   - What deployment phases are being assessed? (testnet, mainnet, upgrades)

2. DETECT AUDIT TYPE:
   - DeFi protocol audit (AMM, lending, derivatives, yield farming)
   - Token implementation audit (ERC-20, ERC-721, ERC-1155)
   - Governance system audit (voting, proposals, treasury management)
   - Bridge/cross-chain audit (asset transfers, message passing)
   - Infrastructure audit (proxy patterns, access controls, upgradeability)

3. INITIALIZE DEBUG LOG:
   - Create audit-debug.md and log protocol type detection
   - Document scope boundaries and audit approach decisions
   - Begin logging all programmatic tests and searches performed
   - Do not split logs to headings or categories, just straight line by line logs on the same format
Debug Log Format

MANDATORY LOGGING TO audit-debug.md:

Log your actual work in a style derived from these examples:

markdown
- Detected blockchain: [Ethereum/Solana/etc.]
- Detected protocol type: [AMM/Lending/NFT/etc.]
- Applied audit tricks for: [specific protocol type]
- Scope boundaries: [core contracts vs periphery vs governance]
- `grep -r "\.call\|\.delegatecall" --include="*.sol" .` → Found 15 external calls, 3 without return value checks
- `find . -name "*.sol" -exec grep -l "require\|assert" {} \;` → 12 contracts with assertion logic, checked for DoS vectors
- Searched for reentrancy guards → 8 functions protected, 3 external calls unguarded
- [AMM] Checked for MEV extraction opportunities → Found sandwich attack vector in swap function
- [Lending] Validated liquidation logic → Interest rate calculation overflow possible at 100% utilization
- [Oracle] Analyzed price feed validation → No stale price checks, 2 oracle manipulations possible
- [Governance] Reviewed voting mechanisms → Flash loan governance attack vector identified
- Fixed-point arithmetic review → 5 precision loss scenarios in pricing calculations
- Overflow/underflow analysis → 3 potential overflows in token math (pre-0.8.0 Solidity)
- Rounding analysis → Consistent rounding down benefits protocol over users
- Modifier usage analysis → 12 admin functions, 2 missing onlyOwner modifiers
- Role-based access review → Found centralized admin key controlling critical functions
- Multi-sig validation → No timelock on critical parameter changes
- ✓ Pursued AMM-specific audit tricks (detected Uniswap-style contracts)
- ✗ Skipped NFT analysis (no ERC-721 contracts found)
- ✓ Deep-dived into oracle security (external price dependencies detected)
- ✓✗ Limited governance analysis (basic voting contract, no complex proposals)
- [AMM] External call validation → 3 violations found
- [AMM] Token decimal assumption check → 1 violation (assumes 18 decimals)
- [Oracle] Chainlink stale price check → 2 violations found
- [DeFi] Flash loan callback validation → 1 vulnerability found
- [General] Reentrancy guard analysis → 3 unprotected external calls
- Calculated flash loan attack profitability → $50k profit possible with $1M capital
- Analyzed MEV extraction potential → Front-running opportunities worth $5k/day
- Evaluated governance attack costs → 51% attack requires $2M in tokens
- KB: Referenced `reference/solidity/fv-sol-1-reentrancy/` → Found cross-function reentrancy patterns
- KB: Checked `reference/anchor/fv-anc-3-account-ownership-validations/` → Validated PDA ownership checks
- KB: Pattern match `fv-sol-3-arithmetic-errors` → Contract math operations match overflow examples
- KB: No match found in `fv-sol-7-proxy-insecurities/` → Contract doesn't use proxy patterns
Step 2: Customer Context Deep Dive

UNDERSTAND THE PROTOCOL:

markdown
1. PROJECT PURPOSE:
   - What DeFi problem does this protocol solve?
   - What industry/vertical does this serve? (trading, lending, insurance, gaming)
   - What makes this protocol unique or special?
   - What token economics and incentive mechanisms exist?

2. USER PROFILE ANALYSIS:
   - Who are the primary users? (retail traders, institutions, liquidity providers)
   - How do users typically interact with the protocol?
   - What user funds or assets are at stake?
   - What would user impact look like if funds are lost?

3. BUSINESS CONTEXT:
   - What is the Total Value Locked (TVL) or expected TVL?
   - What are the critical business operations and revenue streams?
   - What would protocol failure or exploit cost?
   - Who are the key stakeholders affected by security issues?

4. SECURITY BUDGET ASSESSMENT:
   - Estimate project TVL from context clues (user mentions, protocol scale, market position)
   - Calculate realistic security budget (~10% of TVL, range $2,000-$60,000)
   - Consider total annual vulnerability budget for bounty allocation decisions
   - Document this assessment for use in triager bounty recommendations
Step 3: Threat Model Creation

BUILD CONTEXTUALIZED THREAT MODEL:

mermaid
graph TD
    A[External Attackers] --> B[Front-running/MEV]
    C[Malicious Users] --> D[Economic Exploits]
    E[Protocol Integrators] --> F[Composability Risks]
    G[Governance Attacks] --> H[Admin Privilege Abuse]
    
    B --> I[Fund Extraction]
    D --> I
    F --> I
    H --> I
    
    I --> J[User Fund Loss]
    I --> K[Protocol Insolvency]
    I --> L[Market Manipulation]

Note: Use 'graph TD' for top-down flow diagrams. Ensure all node IDs are unique (A, B, C, etc.). Keep labels descriptive but concise. Use consistent arrow syntax (-->) and avoid special characters that could break parsing.

THREAT ACTOR ANALYSIS:

  • External attackers: What funds are they targeting? (user deposits, protocol treasury, LP tokens)
  • Malicious users: What economic incentives exist for exploitation?
  • Governance attackers: What voting power could enable protocol takeover?
  • Flash loan attackers: What single-transaction exploits are possible?

SUCCESS CRITERIA: Nail exactly what THIS specific protocol and user base should be afraid of.

Step 4: Audit Expertise Application

SMART CONTRACT-SPECIFIC SKILLS:

Base Skills (Always Applied):

  • Reentrancy analysis (cross-function, cross-contract, read-only reentrancy)
  • Access control validation (modifiers, role-based permissions, owner functions)
  • Arithmetic security (overflow/underflow, precision loss, rounding errors)
  • External dependency analysis (oracle manipulation, flash loan attacks)
  • Token handling security (transfer tax tokens, rebasing tokens, fee-on-transfer)

Custom Audit Tricks (From Configuration):

KNOWLEDGE BASE INTEGRATION: When encountering vulnerability patterns, use bash to cat the relevant files in $SKILL_DIR/reference/:

  • Solidity: cat $SKILL_DIR/reference/solidity/[fv-sol-X]/readme.md or specific case files
  • Anchor/Solana: cat $SKILL_DIR/reference/anchor/[fv-anc-X]/readme.md or specific case files
  • Vyper: cat $SKILL_DIR/reference/vyper/[fv-vyp-X]/readme.md or specific case files
  • TON/FunC/Tact: cat $SKILL_DIR/reference/ton/[fv-ton-X]/readme.md or specific case files
  • Sui/Move: cat $SKILL_DIR/reference/move/[fv-mov-X]/readme.md or specific case files
  • Each case file contains "Detection Heuristics" and "False Positives" sections
  • Specific vulnerability classifications (fv-sol-X, fv-anc-X, fv-vyp-X, fv-ton-X, or fv-mov-X naming)
Step 5: Coverage Plan

SYSTEMATIC SMART CONTRACT COVERAGE:

markdown
PROTOCOL LAYER ANALYSIS:
□ Core Protocol Logic:
  - Business logic implementation and edge cases
  - State transitions and invariant preservation
  - Function interaction patterns and dependencies
  - Emergency pause and recovery mechanisms

□ Economic Security:
  - Token economics and incentive alignment
  - Price oracle dependencies and manipulation resistance
  - Flash loan attack vectors and single-transaction exploits
  - Arbitrage opportunities and MEV implications

□ Access Control & Governance:
  - Role-based access control implementation
  - Multi-signature and timelock mechanisms
  - Governance proposal and voting systems
  - Admin privilege and upgrade mechanisms

□ Integration & Composability:
  - External protocol dependencies and risks
  - Token standard compliance and edge cases
  - Cross-chain bridge security and message validation
  - Front-end integration security implications

□ Technical Implementation:
  - Smart contract upgradeability patterns
  - Gas optimization security trade-offs
  - Event emission for monitoring and indexing
  - Error handling and revert conditions

4. Multi-Expert Analysis Framework

Read $SKILL_DIR/multi-expert.md via bash before starting the multi-expert analysis rounds.

5. Finding Documentation Protocol

5.1 Conservative Severity Calibration Framework

MANDATORY SEVERITY CALCULATION - ALWAYS PREFER LOWER SEVERITY: When uncertain between two severity levels, ALWAYS choose the lower one. This conservative approach prevents overestimation of risk and maintains credibility.

markdown
SEVERITY FORMULA: Impact × Likelihood × Exploitability = Base Score
Then apply CONSERVATIVE ADJUSTMENT: If Base Score is borderline, round DOWN

CRITICAL (9.0-10.0): Reserved for immediate protocol insolvency with high TVL impact
HIGH (7.0-8.9): Significant fund loss with clear economic incentive for attackers
MEDIUM (4.0-6.9): Financial vulnerabilities requiring specific conditions
LOW (1.0-3.9): Technical issues with minimal financial impact

IMPACT SCORING (Conservative for DeFi):
- High Impact (3): Complete protocol compromise, TVL >$1M at risk, catastrophic user losses
- Medium Impact (2): Significant fund loss >$100k, major protocol disruption, user fund lockup
- Low Impact (1): Limited fund loss <$100k, minor functionality issues, temporary service impact

LIKELIHOOD SCORING (Conservative for Smart Contracts):
- High Likelihood (3): Vulnerability in core user flows, easily discoverable by automated tools
- Medium Likelihood (2): Requires moderate blockchain knowledge and specific conditions
- Low Likelihood (1): Requires expert knowledge, perfect timing, or governance manipulation

EXPLOITABILITY SCORING (Conservative for Blockchain):
- High Exploitability (3): Single transaction exploit, flashloan-enabled, guaranteed profit
- Medium Exploitability (2): Multi-transaction exploit, requires capital, timing dependent
- Low Exploitability (1): Requires governance votes, extensive setup, or market manipulation
5.2 Finding Format

Read $SKILL_DIR/finding-format.md via bash when documenting any finding.

6. Triager Validation Process

Read $SKILL_DIR/triager.md via bash before starting triager validation.

7. Report Generation

Read $SKILL_DIR/report-template.md via bash before generating the final report.

© forefy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 364 other files in skills/blockchain/smart-contract-audit of forefy/.context.

  • SKILL.md
  • anchor-checks.md
  • finding-format.md
  • move-checks.md
  • multi-expert.md
  • reference/anchor/fv-anc-1-arithmetic-operations/fv-anc-1-cl1-overflow-underflow-in-arithmetic-operations.md
  • reference/anchor/fv-anc-1-arithmetic-operations/fv-anc-1-cl2-division-by-zero.md
  • reference/anchor/fv-anc-1-arithmetic-operations/fv-anc-1-cl3-arbitrary-rounding.md
  • reference/anchor/fv-anc-1-arithmetic-operations/fv-anc-1-cl4-saturating-math-misuse-in-financial-contexts.md
  • reference/anchor/fv-anc-1-arithmetic-operations/fv-anc-1-cl5-round-trip-vault-profit-via-precision-gap.md
  • reference/anchor/fv-anc-1-arithmetic-operations/readme.md
  • reference/anchor/fv-anc-10-closing-accounts/fv-anc-10-cl1-closing-accounts-without-zeroing-data-and-setting-a-closed-discriminator.md
  • reference/anchor/fv-anc-10-closing-accounts/fv-anc-10-cl2-operations-on-accounts-marked-as-closed.md
  • reference/anchor/fv-anc-10-closing-accounts/fv-anc-10-cl3-unintended-closure-by-close-constraint.md
  • reference/anchor/fv-anc-10-closing-accounts/readme.md
  • reference/anchor/fv-anc-11-state-management/fv-anc-11-cl1-missing-slippage-tolerance-allowing-extraction.md
  • … and 349 more

Open the folder on GitHubat commit c8ff161

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in forefy/.context, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Smart Contract Audit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Smart Contract Audit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Smart Contract Audit this skillforefy/.context1521 repos~5.1kAutomated safety check: PassMIT
Smart Contract Auditelophanto/EloPhanto106—~2.7kAutomated safety check: PassCustom licence
Solana Vulnerability Scannertrailofbits/skills7.4k—~3.6kAutomated safety check: PassCC-BY-SA-4.0
RadarAuditware/radar154—~2.1kAutomated safety check: PassGPL-3.0
Smart Contract Entry Point Analyzertrailofbits/skills7.4k1 repos~2.4kAutomated safety check: NotesCC-BY-SA-4.0
Ethereum Smart Contract Vulnerability Analysistradecatlabs/vibe-coding-cn17k1 repos~738Automated safety check: PassApache-2.0

Similar skills

  • Smart Contract Audit

    elophanto/EloPhanto

    A skill your agent uses when reviewing a Solidity, Vyper, or Rust (Solana/Anchor) smart contract for paid audit work or pre-launch sanity check.

    106 GitHub stars~2.7k tokensUpdated 7 days ago
    SecurityAuto-check passed
  • Official

    Scans Solana programs for 6 critical vulnerabilities including arbitrary CPI, improper PDA validation, missing signer/ownership checks, and sysvar spoofing.

    7.4k GitHub stars~3.6k tokensUpdated yesterday
    SecurityAuto-check passed
  • Radar

    Auditware/radar

    Use radar for smart contract security analysis, AST generation, and detection template development.

    154 GitHub stars~2.1k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Official

    Maps the state-changing entry points of a smart contract codebase and sorts them by access level, producing a structured audit report that leaves out read-only functions.

    7.4k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check: notes
  • Runs Slither and Mythril against Solidity contracts to find reentrancy, overflow and access-control bugs before mainnet deployment, then triages and reports findings.

    17k GitHub starsUsed in 1 repo~738 tokens
    SecurityAuto-check passed
  • Reentrancy Auditor

    alt-research2/SolidityGuard

    Deep reentrancy vulnerability analysis for Solidity contracts.

    104 GitHub stars~1.8k tokensUpdated 3 mo ago
    SecurityAuto-check passed

More from forefy/.context

All 20 skills in this repo
  • Builds and formats security audit reports in Google Docs through the Docs API, with fixes for index drift, code styling and cross-reference links.

    152 GitHub stars~951 tokensUpdated 4 days ago
    Auto-check passed
  • Audits the Safe multisig wallets of DeFi protocols for governance misconfigurations, scoring each against a finding library and producing a severity-ranked report.

    152 GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed
  • Turns a company's domains into likely storage bucket names and checks six cloud providers for publicly readable buckets, for authorized security assessments only.

    152 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Audit Scope

    forefy/.context

    Draft a security-audit scope from GitHub repos or API access, with a protocol narrative and a sizing table.

    152 GitHub stars~2.3k tokensUpdated 4 days ago
    Auto-check passed
  • External Enumeration

    forefy/.context

    Passively map a company's domains, subdomains, DNS ownership, tech stack, and CDNs.

    152 GitHub stars~3.1k tokensUpdated 4 days ago
    Auto-check passed
  • Infrastructure Audit

    forefy/.context

    Comprehensive infrastructure security audit framework for IaC, Docker, Kubernetes, and cloud configurations.

    152 GitHub stars~3.7k tokensUpdated 4 days ago
    Auto-check: notes

Questions about Smart Contract Audit

What does Smart Contract Audit do?

Comprehensive smart contract security audit framework with multi-expert analysis. context. Comprehensive smart contract security audit framework with multi-expert analysis.

When should I use Smart Contract Audit?

Smart Contract Audit fits situations like: full audits of Ethereum / EVM Solidity and Vyper; solana / SVM Anchor Rust; TON / FunC / Tact; sui / Move projects.

How do I install Smart Contract Audit in Claude Code?

Run `npx skills add forefy/.context --skill smart-contract-audit -a claude-code`. Or copy the skill folder (skills/blockchain/smart-contract-audit in forefy/.context) into .claude/skills/smart-contract-audit in your project. Claude Code loads it when a task matches its description.

How do I install Smart Contract Audit in Codex?

Run `npx skills add forefy/.context --skill smart-contract-audit -a codex`. Or copy the skill folder (skills/blockchain/smart-contract-audit in forefy/.context) into .agents/skills/smart-contract-audit in your project. Codex loads it when a task matches its description.

Can I use Smart Contract Audit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forefy/.context --skill smart-contract-audit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smart-contract-audit, .gemini/skills/smart-contract-audit, .github/skills/smart-contract-audit and .opencode/skills/smart-contract-audit in your project.

What does Smart Contract Audit need to run?

SKILL.md names no scripts, command-line tools or credentials: Smart Contract Audit is instructions for the agent only.

Does Smart Contract Audit access the network?

SKILL.md names 3 domains. As links in the text: consensys.github.io, swcregistry.io and github.com. This is read from the text; nothing was executed.

Is Smart Contract Audit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Smart Contract Audit use?

Smart Contract Audit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Smart Contract Audit use?

About 5.1k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Smart Contract Audit?

Skills that share tags, products or a category with Smart Contract Audit: Smart Contract Audit (elophanto/EloPhanto, 106 stars), Solana Vulnerability Scanner (trailofbits/skills, 7.4k stars), Radar (Auditware/radar, 154 stars) and Smart Contract Entry Point Analyzer (trailofbits/skills, 7.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Smart Contract Audit?

forefy (a GitHub user) maintains it in forefy/.context, which has 152 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 4, 2026.

Source: forefy/.context on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.