utsavsavani08/rain-skill-main/smart-contract-deployment

Claude Code and agent skill by utsavsavani08/rain-skill-main

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-deployment

Semi-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)

  1. ✅ smart-contract-security audit pass clean on the exact code
  2. ✅ Full test suite + invariants/fuzz green (foundry-hardhat-testing)
  3. ✅ Deployed on a testnet and exercised end-to-end
  4. ✅ Admin will be a Safe multisig (+ timelock), not an EOA
  5. ✅ Constructor/initializer args reviewed
  6. ✅ RPC URL + deployer key handled as secrets (env, never committed)

EVM — Foundry

bash
forge script script/Deploy.s.sol:Deploy \
--rpc-url $RPC_URL --account deployer --broadcast --verify \
--etherscan-api-key $ETHERSCAN_KEY
  • 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)

bash
npx hardhat ignition deploy ./ignition/modules/Deploy.ts --network base
npx hardhat verify --network base <address> <constructor args>

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 prepareUpgrade to separate validation from execution.
  • Test the upgrade on a fork against real state before executing.

Solana

bash
anchor build && anchor deploy --provider.cluster devnet # devnet first
anchor deploy --provider.cluster mainnet # only after audit + devnet
  • 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/utsavsavani08/rain-skill-main/smart-contract-deployment/badge)](https://verified-skill.com/skills/utsavsavani08/rain-skill-main/smart-contract-deployment)

Something wrong with this skill or its page? Tell us.