- Home
- Skills
- Web3 & Crypto
- AuditGPT-V01: Polygon Solidity Security Auditor
Works with the AI Agents you already use
AuditGPT-V01: Polygon Solidity Security Auditor
Production-grade Solidity security audits for Polygon PoS with gas, economic, and upgradeability analysis.
$8
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
| Category | Finding | Severity | Line | Confidence |
|---|---|---|---|---|
| SWC-107 | Reentrancy in withdrawRewards | High | 142 | High |
| Storage | Missing __gap variable in parent | Medium | 12 | High |
| Gas | Inefficient storage packing in UserStats | Info | 45 | Medium |
| Economic | Spot price dependency in calculateYield | High | 89 | High |
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
nonReentrantmodifier 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
- Implement the
nonReentrantmodifier on line 142. - Add a storage gap to the
BaseStoragecontract to ensure future upgrade safety. - 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
- Provide the Solidity source code and contract name to the audit engine.
- The agent simulates Slither and Mythril detectors alongside manual economic review.
- The system executes deep analysis using high-reasoning models with strict deterministic settings.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
File Scopes
What's inside
Frequently Asked Questions
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.