Works with the AI Agents you already use

    AuditGPT-V01: Polygon Solidity Security Auditor

    by yasith ravindu

    1

    Production-grade Solidity security audits for Polygon PoS with gas, economic, and upgradeability analysis.

    $8

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    AuditGPT-V01: Polygon Solidity Security Auditor

    AuditGPT-V01: Polygon Solidity Security Auditor

    Example session with this skill installed

    Audit this Polygon UUPS implementation for storage collisions and reentrancy: [Solidity Code Provided]

    • Read your context and instructions
    • Compiled the auditgpt-v01

    I have completed a production-grade security audit of your UUPS implementation for the Polygon PoS network.

    Audit Report: UUPSProxyImplementation

    CategoryFindingSeverityLineConfidence
    SWC-107Reentrancy in withdrawRewardsHigh142High
    StorageMissing __gap variable in parentMedium12High
    GasInefficient storage packing in UserStatsInfo45Medium
    EconomicSpot price dependency in calculateYieldHigh89High

    Summary
    The contract scored 68/100. The primary risks involve a reentrancy vector in the reward distribution and a critical upgradeability flaw where the lack of a storage gap in the parent contract will cause collisions during the next implementation upgrade.

    Vulnerability Detail: Reentrancy

    • Impact: An attacker can drain the reward pool by recursively calling withdrawRewards.
    • Remediation: Apply the nonReentrant modifier or move the state change before the external call.
    • Code Fix: _status = _ENTERED; (bool success, ) = msg.sender.call{value: amount}(""); _status = _NOT_ENTERED;

    Upgradeability Analysis
    The contract uses the UUPS pattern but fails to include a uint256[50] __gap; at the end of the BaseStorage contract. This will lead to storage corruption if new variables are added to the base contract in V2.

    Gas Optimization
    Variable isActive (bool) and userType (uint8) are separated by a uint256 balance. Reordering these will pack them into a single slot, saving 20,000 gas on initialization.

    Next steps

    1. Implement the nonReentrant modifier on line 142.
    2. Add a storage gap to the BaseStorage contract to ensure future upgrade safety.
    3. Replace the spot price oracle with a TWAP or Chainlink feed for the yield calculation.

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

    About this skill

    Manual smart contract reviews are slow and static analysis tools often miss complex economic risks. This skill performs production-grade security audits on Solidity code with a focus on the Polygon PoS ecosystem.

    What it does

    • Vulnerability detection scans for reentrancy, access control flaws, integer issues, and unhandled calls.
    • Gas optimization identifies storage layout packing errors and inefficient memory usage in hot paths.
    • Economic analysis assesses risks related to flash loans, oracle manipulation, and sandwich attacks.
    • Upgradeability checks flags storage collisions in UUPS, Transparent, or Diamond proxy patterns.
    • Formal verification suggests specific properties for further mathematical proofing.

    How it works

    1. Provide the Solidity source code and contract name to the audit engine.
    2. The agent simulates Slither and Mythril detectors alongside manual economic review.
    3. The system executes deep analysis using high-reasoning models with strict deterministic settings.
    4. A structured JSON report is returned containing scores, line-specific findings, and code fixes.

    Frameworks & tools

    Built for Solidity and the Polygon PoS EVM ecosystem. It references SWC IDs and mimics Slither detector patterns for industry-standard reporting.

    Why this beats prompting it yourself

    Standard prompts often produce generic advice or miss specific line numbers. This skill uses a strict JSON schema and deterministic sampling to ensure every finding includes a confidence level, impact assessment, and valid code remediation.

    Use cases

    • Auditing new Polygon smart contracts before mainnet deployment.
    • Reviewing proxy implementation upgrades for potential storage layout collisions.
    • Identifying gas-heavy operations in frequently called contract functions.
    • Evaluating DeFi protocols for oracle dependency and flash loan vulnerability.

    Known limitations

    Focuses on EVM and Polygon PoS specificities. It requires an API key for the underlying reasoning engine and may fall back to faster models if high-reasoning limits are reached.

    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

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    Permissions

    Read Files

    File Scopes

    **/*.sol
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill is specifically optimized for the Polygon PoS ecosystem, meaning it accounts for Polygon's specific gas dynamics and common DeFi patterns like flash loans and oracle dependencies prevalent on the network.

    The skill returns a structured JSON report that includes a security score, line-specific vulnerability findings, impact assessments, and ready-to-implement code fixes for each identified issue.

    Yes, the skill includes specialized checks for UUPS, Transparent, and Diamond proxy patterns to identify potential storage collisions or initialization flaws before you upgrade your implementation.

    While it performs deep vulnerability and economic analysis, this skill is intended to augment your security workflow; it should be used as a high-fidelity pre-audit tool rather than a replacement for a final human-led audit.

    You will need to provide your own API key for the underlying high-reasoning engine to ensure the agent has the computational power required for deep economic and formal verification analysis.

    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.