Deploy Contract
Nethereum/Nethereum
Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C).
A skill your agent uses when verifying deployed contracts on block explorers.
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex contract-verification --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/contract-verification .claude/skills/contract-verification && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .claude/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verificationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex contract-verification --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/contract-verification .agents/skills/contract-verification && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .agents/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex contract-verification --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/contract-verification .cursor/skills/contract-verification && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .cursor/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ccashwell/evm-cortex.git --path skills/contract-verification--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex contract-verification --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/contract-verification .gemini/skills/contract-verification && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .gemini/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ccashwell/evm-cortex contract-verificationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/contract-verification .github/skills/contract-verification && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .github/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ccashwell/evm-cortex --skill contract-verification -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ccashwell/evm-cortex contract-verification --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ccashwell/evm-cortex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/contract-verification .opencode/skills/contract-verification && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "contract-verification" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/contract-verification into .opencode/skills/contract-verification/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "contract-verification", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
contract-verificationA skill your agent uses when verifying deployed contracts on block explorers.
Contract Verification is an agent skill from ccashwell/evm-cortex. Use when verifying deployed contracts on block explorers. Covers forge verify-contract, Etherscan/Basescan/Arbiscan APIs, Blockscout verification, constructor args encoding, flattening, proxy verification, and multi-file verification.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
Read from SKILL.md and the folder at commit f8f3301. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.basescan.orgapi-optimistic.etherscan.ioapi.arbiscan.ioapi.etherscan.iobase.blockscout.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
ETHERSCAN_API_KEYBASESCAN_API_KEYOPSCAN_API_KEYARBISCAN_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Contract Verification loads about 1.6k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 173 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ccashwell/evm-cortex at commit f8f3301, republished under its MIT licence (© ccashwell). 173 words, ~1,619 tokens.
.claude/skills/contract-verification/SKILL.md (or your agent's skills folder).Verified contracts show source code on block explorers, enabling:
# Basic verification
forge verify-contract 0xContractAddress src/MyContract.sol:MyContract \
--chain-id 1 \
--etherscan-api-key $ETHERSCAN_API_KEY
# With constructor arguments
forge verify-contract 0xContractAddress src/MyToken.sol:MyToken \
--chain-id 1 \
--etherscan-api-key $ETHERSCAN_API_KEY \
--constructor-args $(cast abi-encode "constructor(string,string,uint256)" "MyToken" "MTK" 1000000000000000000000000)
# With compiler settings matching deployment
forge verify-contract 0xContractAddress src/MyContract.sol:MyContract \
--chain-id 1 \
--etherscan-api-key $ETHERSCAN_API_KEY \
--compiler-version v0.8.28 \
--num-of-optimizations 200
# Watch verification status
forge verify-contract 0xContractAddress src/MyContract.sol:MyContract \
--chain-id 1 \
--etherscan-api-key $ETHERSCAN_API_KEY \
--watch# Mainnet (Etherscan)
forge verify-contract $ADDR MyContract \
--chain-id 1 --etherscan-api-key $ETHERSCAN_API_KEY
# Base (Basescan)
forge verify-contract $ADDR MyContract \
--chain-id 8453 \
--verifier etherscan \
--verifier-url https://api.basescan.org/api \
--etherscan-api-key $BASESCAN_API_KEY
# Optimism (Optimistic Etherscan)
forge verify-contract $ADDR MyContract \
--chain-id 10 \
--verifier etherscan \
--verifier-url https://api-optimistic.etherscan.io/api \
--etherscan-api-key $OPSCAN_API_KEY
# Arbitrum (Arbiscan)
forge verify-contract $ADDR MyContract \
--chain-id 42161 \
--verifier etherscan \
--verifier-url https://api.arbiscan.io/api \
--etherscan-api-key $ARBISCAN_API_KEY# Blockscout uses a different verifier
forge verify-contract $ADDR MyContract \
--chain-id 8453 \
--verifier blockscout \
--verifier-url https://base.blockscout.com/api/
# Blockscout doesn't require an API key for most instancesThe most common verification failure is incorrect constructor args:
# Encode constructor args
cast abi-encode "constructor(address,uint256,string)" \
0xAdminAddress 1000000 "MyToken"
# For complex types (arrays, structs)
cast abi-encode "constructor(address[])" \
"[0xAddr1,0xAddr2,0xAddr3]"
# If constructor takes no args, omit --constructor-args entirelyWhen verification tools fail with import resolution, flatten the contract:
# Flatten to single file
forge flatten src/MyContract.sol > MyContract.flat.sol
# Verify using flattened source (manual Etherscan upload)
# 1. Go to etherscan.io/verifyContract
# 2. Select "Solidity (Single file)"
# 3. Paste flattened source
# 4. Set compiler version and optimizer settings to match deployment# Verify the implementation contract first
forge verify-contract $IMPL_ADDR src/MyContract.sol:MyContract \
--chain-id 1 --etherscan-api-key $ETHERSCAN_API_KEYAfter verifying the implementation, mark the proxy:
# Using Etherscan API to mark as proxy
curl "https://api.etherscan.io/api?module=contract&action=verifyproxycontract&apikey=$ETHERSCAN_API_KEY" \
-d "address=$PROXY_ADDR"
# Check proxy verification status
curl "https://api.etherscan.io/api?module=contract&action=checkproxyverification&guid=$GUID&apikey=$ETHERSCAN_API_KEY"# Verify the proxy contract itself (usually OpenZeppelin's)
forge verify-contract $PROXY_ADDR \
lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy \
--chain-id 1 \
--etherscan-api-key $ETHERSCAN_API_KEY \
--constructor-args $(cast abi-encode "constructor(address,bytes)" $IMPL_ADDR $INIT_DATA)# Verify during deployment (recommended)
forge script script/Deploy.s.sol \
--rpc-url $ETH_RPC_URL \
--broadcast \
--verify \
--etherscan-api-key $ETHERSCAN_API_KEY
# This auto-verifies all deployed contracts with correct constructor args[etherscan]
mainnet = { key = "${ETHERSCAN_API_KEY}" }
sepolia = { key = "${ETHERSCAN_API_KEY}" }
base = { key = "${BASESCAN_API_KEY}", url = "https://api.basescan.org/api" }
optimism = { key = "${OPSCAN_API_KEY}", url = "https://api-optimistic.etherscan.io/api" }
arbitrum = { key = "${ARBISCAN_API_KEY}", url = "https://api.arbiscan.io/api" }With this config, forge verify-contract auto-selects the right API based on --chain-id.
# Check what version was used to compile
forge build --force
# Look in out/MyContract.sol/MyContract.json → metadata → compiler
# Specify exact version
forge verify-contract $ADDR MyContract --compiler-version v0.8.28+commit.7893614a# Get constructor args from deployment tx
cast tx $DEPLOY_TX_HASH input --rpc-url $ETH_RPC_URL
# The constructor args are appended after the bytecode
# Compare with: cast abi-encode "constructor(...)" args...Ensure identical compiler settings:
# Rebuild with exact settings and compare
forge build --force
cast code $ADDR --rpc-url $ETH_RPC_URL > deployed.hex
# Compare with out/MyContract.sol/MyContract.json → deployedBytecode© ccashwell, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/contract-verification of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Contract Verification next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Contract Verification this skillccashwell/evm-cortex | 131 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Deploy ContractNethereum/Nethereum | 2.3k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Block No Verify Hookwshobson/agents | 40k | — | ~1.9k | Automated safety check: Notes | MIT | |
| Land and Deploygarrytan/gstack | 136k | — | ~18k | Automated safety check: Notes | MIT | |
| Deploy Setupgarrytan/gstack | 136k | — | ~11k | Automated safety check: Notes | MIT | |
| Deployment Patternsaffaan-m/ECC | 275k | 1 repos | ~2.9k | Automated safety check: Pass | MIT |
Nethereum/Nethereum
Deploy smart contracts to Ethereum using Nethereum typed deployment handlers (.NET/C).
wshobson/agents
Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags.
garrytan/gstack
Merges a pull request, waits for CI and the deploy, then verifies production health with canary checks, picking up where /ship leaves off.
garrytan/gstack
Detects where an app deploys, its production URL and health checks, then saves the deploy configuration in CLAUDE.md for /land-and-deploy.
affaan-m/ECC
Deployment iş akışları, CI/CD pipeline kalıpları, Docker konteynerizasyonu, sağlık kontrolleri, rollback stratejileri ve web uygulamaları için üretim hazırlığı kontrol listeleri.
bytedance/deer-flow
Deploys a project to Vercel with one script and no login, then returns a live preview URL and a claim link for moving the deployment into your own Vercel account.
ccashwell/evm-cortex
A skill your agent uses when preparing for a security audit, performing reconnaissance on a new codebase, or creating a protocol overview.
ccashwell/evm-cortex
A skill your agent uses when integrating with Aave V3 for lending, borrowing, flash loans, or building on top of Aave markets.
ccashwell/evm-cortex
Access control design patterns for Solidity protocols. An agent skill from ccashwell/evm-cortex.
ccashwell/evm-cortex
A skill your agent uses when running a local Ethereum node with Anvil.
ccashwell/evm-cortex
A skill your agent uses when performing systematic breadth-first review of all contracts during a security audit.
ccashwell/evm-cortex
A skill your agent uses when performing deep analysis of specific findings or high-risk areas during a security audit.
A skill your agent uses when verifying deployed contracts on block explorers. Contract Verification is an agent skill from ccashwell/evm-cortex. Use when verifying deployed contracts on block explorers.
Contract Verification fits situations like: verifying deployed contracts on block explorers.
Run `npx skills add ccashwell/evm-cortex --skill contract-verification -a claude-code`. Or copy the skill folder (skills/contract-verification in ccashwell/evm-cortex) into .claude/skills/contract-verification in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill contract-verification -a codex`. Or copy the skill folder (skills/contract-verification in ccashwell/evm-cortex) into .agents/skills/contract-verification in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccashwell/evm-cortex --skill contract-verification -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contract-verification, .gemini/skills/contract-verification, .github/skills/contract-verification and .opencode/skills/contract-verification in your project.
Going by SKILL.md and its folder, Contract Verification needs the command-line tools its instructions call (curl) and credentials named ETHERSCAN_API_KEY, BASESCAN_API_KEY, OPSCAN_API_KEY and ARBISCAN_API_KEY. Our summary lists: A credential in ETHERSCAN_API_KEY; A credential in BASESCAN_API_KEY.
SKILL.md names 5 domains. In commands or code: api.basescan.org, api-optimistic.etherscan.io, api.arbiscan.io, api.etherscan.io and base.blockscout.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Contract Verification is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Contract Verification: Deploy Contract (Nethereum/Nethereum, 2.3k stars), Block No Verify Hook (wshobson/agents, 40k stars), Land and Deploy (garrytan/gstack, 136k stars) and Deploy Setup (garrytan/gstack, 136k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ccashwell (a GitHub user) maintains it in ccashwell/evm-cortex, which has 131 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on September 30, 2026.
Source: ccashwell/evm-cortex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.