polygon-pos-dev
Comprehensive guide for Polygon PoS blockchain development. Use when deploying smart contracts to Polygon, testing on Amoy testnet, getting test tokens from faucets, or verifying contracts on Polygonscan. Supports Foundry framework with deployment scripts and testing strategies.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/akshatgada/polygon-pos-devWhat This Skill Does
The polygon-pos-dev skill provides an end-to-end framework for developing, testing, and deploying smart contracts on the Polygon PoS network. It streamlines the developer experience by integrating Foundry-based workflows specifically tailored for the Amoy Testnet. The skill acts as an intelligent assistant that handles environment configuration, deployment scripting, and automated contract verification on Polygonscan. It is designed to minimize the complexity of blockchain development, allowing users to focus on contract logic while the skill manages the underlying network interactions and gas estimation.
Installation
To integrate this capability into your OpenClaw environment, execute the following command: clawhub install openclaw/skills/skills/akshatgada/polygon-pos-dev. Ensure that you have Foundry installed on your machine (curl -L https://foundry.paradigm.xyz | bash && foundryup) and your environment variables, specifically the PRIVATE_KEY and POLYGONSCAN_API_KEY, are properly exported in your shell or local .env file before initiating any deployment tasks.
Use Cases
This skill is ideal for developers building decentralized applications on Ethereum-compatible L2s. Common use cases include: 1) Rapid prototyping of dApps where quick iterations on the Amoy Testnet are required. 2) Developing complex smart contract systems that necessitate unit, integration, and fork testing before production mainnet releases. 3) Automating the deployment of NFT collections, tokens, or DeFi protocols using Forge scripts. 4) Troubleshooting verification issues on Polygonscan for deployed contracts to ensure transparency and public trust in your codebase.
Example Prompts
- "I have a simple ERC-20 contract. Can you guide me through the quick-start deployment to the Amoy testnet using Foundry?"
- "My contract is failing verification on Polygonscan. Can you analyze my forge verify-contract command and suggest how to fix the constructor argument encoding?"
- "Help me set up a testing suite for my DeFi protocol using Forge, including a fork test against the Polygon mainnet state."
Tips & Limitations
Always prioritize security by keeping your private keys out of version control systems; use a secure secret manager or environment files ignored by git. Note that while this skill excels at automating standard deployments, advanced gas optimization or custom network configurations may require manual intervention. Always verify your bytecode on Polygonscan immediately after deployment to allow users to interact with your contract safely.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-akshatgada-polygon-pos-dev": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution