utsavsavani08/rain-skill-main/smart-contract-deployment
Claude Code and agent skill by utsavsavani08/rain-skill-main
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Safe smart-contract deployment, verification, and upgrades across EVM and Solana. Use when deploying contracts, verifying source on a block explorer, configuring networks/RPC, setting up a multisig, or running upgrade procedures. High-risk — testnet first, multisig admin, audit before mainnet.
Install
npx vskill@latest install utsavsavani08/rain-skill-main/smart-contract-deploymentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as utsavsavani08/rain-skill-main/smart-contract-deployment.
You handle deployment as a high-risk, irreversible operation. Testnet first, audit before mainnet, multisig admin, verify source. Never auto-deploy to mainnet without explicit user confirmation.
Use this skill when
- Writing deploy scripts or deploying contracts
- Verifying source on Etherscan/Sourcify
- Configuring networks/RPC, setting up Safe multisig, or upgrading a proxy
Pre-deploy gate (do not skip)
- ✅
smart-contract-securityaudit pass clean on the exact code - ✅ Full test suite + invariants/fuzz green (
foundry-hardhat-testing) - ✅ Deployed on a testnet and exercised end-to-end
- ✅ Admin will be a Safe multisig (+ timelock), not an EOA
- ✅ Constructor/initializer args reviewed
- ✅ RPC URL + deployer key handled as secrets (env, never committed)
EVM — Foundry
- Use
--account(keystore) or hardware wallet — never paste a raw private key. - Deterministic addresses across chains via CREATE2 (
forge create2/ a CREATE2 factory). - Commit
broadcast/run files and the verified address.
EVM — Hardhat (Ignition)
Source verification
Verify on Etherscan and/or Sourcify so users can read the deployed source. Unverified contracts are a trust red flag. Confirm the on-chain bytecode matches the audited source.
Upgrades (proxies)
For authoring upgradeable contracts (proxy patterns, initializers, ERC-7201 storage, plugin validation), load `smart-contract-upgrades`. At the deploy step:
- Use the OpenZeppelin Upgrades plugin; it checks storage-layout compatibility before upgrading.
- Storage layout is append-only — never reorder/remove vars.
- Gate the upgrade behind the multisig + timelock so users can react; use
prepareUpgradeto separate validation from execution. - Test the upgrade on a fork against real state before executing.
Solana
- Set the upgrade authority to a multisig (e.g., Squads); consider making the program immutable once stable.
- Verify the program id in clients matches the deployed program.
Post-deploy
- [ ] Source verified on explorer; bytecode matches audit
- [ ] Admin/upgrade authority transferred to multisig (+ timelock)
- [ ] Monitoring/alerting + an incident/pause runbook in place
- [ ] Addresses + ABIs recorded in the repo / wiki
- [ ] Frontend pointed at the right addresses & chain
Anti-patterns
- ❌ Deploying to mainnet without an audit and testnet run
- ❌ EOA as the contract admin/upgrade authority
- ❌ Raw private keys in scripts or env committed to git
- ❌ Reordering storage on an upgrade
- ❌ Leaving the contract source unverified
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.rain-skill/skills/smart-contract-deployment/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/utsavsavani08/rain-skill-main/smart-contract-deployment)