More screenshots

    Works with the AI Agents you already use

    Smart Contract & Tokenomics Security Pre-Audit (Solidity)

    by Alina Tudorache

    2

    - DAO Governance Vulnerability Assessment: Inspects OpenZeppelin Governor and voting modules for flash-loan governance attack vectors (spot balanceOf vs.

    Free

    5.0 (2 reviews)
    Smart Contract & Tokenomics Security Pre-Audit (Solidity)

    Smart Contract & Tokenomics Security Pre-Audit (Solidity)

    Example session with this skill installed

    Run a pre-audit on my Solidity contract (Token.sol), tokenomics.json, and governance setup before we send them for a formal audit. Check for admin centralization risks, unbounded minting, the team's 40% vesting schedule, and any DAO flash-loan or quorum vulnerabilities.

    • Read your context and instructions
    • Compiled the smart contract

    I have completed the deterministic, read-only pre-audit of `Token.sol` and `distribution.json`. While the base token logic follows standard ERC-20 patterns, the administrative privileges, unguarded withdrawal flow, and team vesting parameters present critical centralization and sell-pressure risks prior to a formal security audit. ### 🛡️ Pre-Audit Readiness Verdict: `HIGH RISK (Critical Red Flags Detected)` #### 1. Critical & High-Severity Red Flags - **[Access Control — `Token.sol` (Line 42)]:** The `mint()` function is restricted only by `onlyOwner` and lacks a hard `MAX_SUPPLY` constant. A single private key can inflate token supply indefinitely, diluting holders to zero. **Remediation:** Enforce an immutable `MAX_SUPPLY` cap and transfer ownership to a multi-sig (`Safe`) behind a `TimelockController`. - **[Reentrancy — `Token.sol` (Line 88)]:** The `withdraw()` function executes an external `.call{value: ...}` without a `nonReentrant` guard or strict Checks-Effects-Interactions ordering. **Remediation:** Inherit OpenZeppelin's `ReentrancyGuard` and apply `nonReentrant` to all external value transfers. #### 2. Tokenomics & Vesting Health Check - **Supply & Allocation Assessment:** Insider allocation stands at **40% Team** per `distribution.json`, sitting at the upper boundary of decentralized tokenomics benchmarks (recommended ceiling: 30–35% combined insiders). - **Unlock & Inflation Risks:** `distribution.json` specifies only a **3-month cliff** for the 40% team allocation, creating severe early dump risk. Industry standard for institutional and community alignment is a **12-month cliff** followed by 24–36 months of linear vesting. #### 3. DAO Governance & Decentralization Check - **Control & Voting Risks:** No `TimelockController` or snapshot voting (`ERC20Votes` / `getPastVotes`) is configured. Administrative fee changes (Line 55) execute immediately without community notice, creating a single point of failure if the deployer wallet is compromised. | Audit Dimension | Finding | Severity | Recommended Fix | | :--- | :--- | :--- | :--- | | **Minting Authority** | Unbounded `onlyOwner` `mint()` | Critical | Add immutable `MAX_SUPPLY` cap | | **External Calls** | Unprotected `.call{value}` | High | Add OpenZeppelin `ReentrancyGuard` | | **Team Vesting** | 40% allocation with 3-mo cliff | High | Extend cliff to 12 months + linear vest | | **Governance** | Single EOA admin, no timelock | High | Migrate to Safe multi-sig + 48h Timelock | #### 4. Next Steps Before Mainnet 1. **Patch Supply & Reentrancy:** Add an immutable `MAX_SUPPLY` check to `mint()` and integrate `ReentrancyGuard` in `Token.sol`. 2. **Restructure Vesting:** Update `distribution.json` to enforce a 12-month team cliff and 36-month linear release schedule. 3. **Run Deep Line-by-Line PR Audit:** Before merging these Solidity patches or booking a formal audit, run **Senior PR Code Reviewer & Security Gatekeeper** (`https://agensi.io`) on your `git diff` to verify OWASP compliance, gas/query efficiency, and unit test coverage.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Deploying a Solidity smart contract with centralized admin backdoors, missing timelocks, or flawed vesting schedules leads to catastrophic exploit risks, rug-pull perceptions, and post-launch token sell-offs. **Smart Contract & Tokenomics Security Pre-Audit (Solidity)** is a deterministic, 100% read-only `SKILL.md` workflow built for **Claude Code, Cursor, Codex CLI, Gemini CLI, and MCP agents** that audits your Solidity contracts (`.sol`), tokenomics tables (`tokenomics.json`, `.csv`), and whitepaper drafts before you invest in an expensive formal security audit or deploy to mainnet. ## What This Web3 & Solidity Pre-Audit Skill Does - **Access Control & Centralization Analysis:** Scans Solidity `.sol` files for unrestricted `onlyOwner` privileges, arbitrary pause/blacklist functions, missing `TimelockController` delays, and single-EOA upgradeability risks (`UUPS` / `TransparentUpgradeableProxy`). - **Tokenomics & Vesting Stress Testing:** Evaluates `tokenomics.json`, `.csv`, and whitepaper allocations to flag insider concentration (>35–40% Team/Investor share), missing cliffs (<6 months), simultaneous unlock dump shocks, and unsustainable APY inflation loops. - **DAO Governance Vulnerability Assessment:** Inspects OpenZeppelin `Governor` and voting modules for flash-loan governance attack vectors (spot `balanceOf` vs. snapshot `ERC20Votes` / `getPastVotes`), low quorum thresholds (<4%), and missing execution delays. - **Supply Integrity & Mint Verification:** Confirms strict `MAX_SUPPLY` caps on `mint()` functions and detects hidden inflationary backdoors or unlocked DEX liquidity risks. - **Reentrancy & External Call Hygiene:** Flags unsafe `.call{value: ...}` patterns lacking `ReentrancyGuard` (`nonReentrant`) or Checks-Effects-Interactions ordering. ## How It Works (5-Step Deterministic Protocol) 1. **Workspace Scope Detection:** Automatically locates `.sol` smart contracts, `tokenomics.json` / `.csv` schedules, and `whitepaper.md` drafts in your repository without modifying any files. 2. **Solidity Security & Admin Scan:** Executes a line-by-line check of access modifiers, proxy `initializer` guards, supply caps, and external call safety. 3. **Tokenomics & Unlock Modeling:** Calculates insider-to-community ratios, cliff durations, and potential sell-pressure spikes across vesting timelines. 4. **DAO Governance & Decentralization Triage:** Verifies multi-sig ownership, timelock configurations, and snapshot-based voting power. 5. **Actionable Pre-Audit Verdict:** Outputs a structured Markdown report concluding with an explicit readiness status—`PASS (Ready for Formal Audit)`, `CAUTION (Tokenomics/Governance Adjustments Needed)`, or `HIGH RISK (Critical Red Flags Detected)`—plus a prioritized fix checklist. ## Supported Ecosystems, Frameworks & File Formats - **AI Coding Agents & IDEs:** Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Windsurf, Cline, and any **Model Context Protocol (MCP)** environment. - **Web3 & Smart Contract Standards:** Solidity (`^0.8.x`), OpenZeppelin (`Ownable`, `AccessControl`, `TimelockController`, `ERC20Votes`, `Governor`, `ReentrancyGuard`), UUPS & Transparent Proxies, ERC-20, ERC-721, and ERC-1155. - **Tokenomics & Documentation Formats:** `tokenomics.json`, `.csv` vesting tables, `README.md`, and `whitepaper.md` files. ## Why This Beats Prompting an LLM Yourself Generic AI prompts review code in isolation and miss the critical intersection between smart contract mechanics and token economic incentives. This skill enforces a structured Web3 security and DAO architecture protocol—catching subtle red flags like single-wallet treasury control, unguarded proxy upgrades, and spot-balance governance exploits that standard LLM queries routinely overlook. ## High-Impact Use Cases - **Pre-Audit Preparation:** Clean up obvious Solidity code smells, centralization flags, and missing guards before paying $15,000–$50,000+ to formal audit firms (such as Trail of Bits, OpenZeppelin, or Halborn). - **Web3 Investor & Grant Due Diligence:** Rapidly scan a protocol's smart contracts and token distribution table for rug-pull mechanics, unlocked liquidity, or predatory vesting schedules. - **Token Launch & TGE Simulation:** Stress-test proposed cliff and vesting timelines to prevent severe post-TGE sell-pressure shocks. - **DAO Governance Hardening:** Verify that quorum thresholds, proposal delays, and snapshot voting protect your treasury against whale manipulation and flash-loan attacks. ## Frequently Asked Questions (FAQ) - **How do I pre-audit a Solidity smart contract and tokenomics model before mainnet?** Load this skill into Claude Code, Cursor, or any MCP-compatible agent inside your project directory and run a pre-audit check on your `.sol` files and `tokenomics.json` schedule. - **Does this skill modify my smart contracts or require private keys?** No. It operates **100% read-only** inside your local workspace with zero external API calls, zero shell execution, and zero wallet or key access. - **Can I combine this with a deeper pull-request security review?** Yes. Once you resolve high-level centralization and tokenomics red flags, run **Senior PR Code Reviewer & Security Gatekeeper** on your `git diff` for line-by-line OWASP, N+1 query, and unit test verification before merging. ## Known Limitations This workflow is strictly read-only and performs static code and economic structure analysis; it does not execute Foundry/Hardhat test suites, run formal symbolic verification, or replace a certified third-party smart contract security audit prior to handling mainnet TVL.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    5.0
    2 reviews
    5
    2
    4
    0
    3
    0
    2
    0
    1
    0

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    • Free with an Agensi account

    100% read-only local execution. No wallet connections, private keys, RPC endpoints, external API keys, or third-party subscriptions required—only read access to your local .sol, tokenomics.json, or whitepaper files.

    Permissions

    Read Files

    File Scopes

    **/*.sol
    **/tokenomics.*
    **/*.md
    **/*.csv

    Read-only access to local Solidity smart contracts (.sol), token distribution tables (tokenomics.json / .csv), and whitepaper drafts (.md) is strictly used to analyze code and economic parameters without modifying any files or accessing private keys.

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    The skill supports Solidity smart contracts, focusing on OpenZeppelin standards and common proxy patterns like UUPS or Transparent. It also analyzes JSON/CSV data for token distribution and Markdown/text files for whitepaper logic.

    No, this skill is strictly a read-only analysis tool designed to identify risks before deployment. It never requests private keys or executes transactions, ensuring your code remains secure and unchanged during the audit process.

    While general AI can find basic coding errors, this skill is specifically tuned to detect the intersection of technical bugs and economic pitfalls, such as how a specific vesting cliff might interact with supply concentration to trigger a sell-off.

    Every free install includes the complete SKILL.md workflow for Claude Code, Cursor, Codex CLI, and MCP agents, covering Solidity access-control checks, tokenomics vesting analysis, DAO governance triage, and the structured Pre-Audit Readiness Verdict report template.

    This skill significantly reduces costs by catching 'low-hanging fruit' and high-severity red flags early. This allows you to submit cleaner code to auditors, potentially reducing the billable hours required for a formal security certification.

    Users receive ongoing updates to address emerging Web3 attack vectors, such as new flash-loan techniques or governance exploits, ensuring the audit logic stays current with the evolving DeFi landscape.

    New in Web3 & Crypto

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Web3 & Crypto.

    Free