# Smart Contract & Tokenomics Security Pre-Audit (Solidity)

> Read-only Web3 & Solidity smart contract pre-audit skill for Claude Code, Cursor & Codex. Scans .sol files, tokenomics.json & whitepapers for centralization risks, vesting cliffs, inflation flaws & DAO governance vulnerabilities before mainnet.

Smart Contract & Tokenomics Security Pre-Audit (Solidity) is a free AI agent skill on Agensi by Alina Tudorache, in Web3 & Crypto. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Alina Tudorache](https://www.agensi.io/creators/alina-tudorache)
- Category: [Web3 & Crypto](https://www.agensi.io/skills/web3-crypto)
- Rating: 5.0 out of 5 from 2 reviews
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/smart-contract-tokenomics-security-pre-audit-solidity
- Tags: web3, security, code-review, solidity, tokenomics, dao, smart-contracts, smart-contract-audit

## 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.

## Requires

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.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Smart Contract & Tokenomics Security Pre-Audit (Solidity) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Which smart contract languages and file formats are compatible with this audit skill?

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.

### Does the skill require access to a live blockchain wallet or private keys?

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.

### How does this audit differ from just asking a standard AI agent to check my code?

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.

### What exactly is included in the purchase of this skill?

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.

### Can this skill replace the need for a professional third-party audit firm?

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.

### How are new smart contract vulnerabilities or exploit trends updated in the skill?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
