Wagmi Feature Development
wevm/wagmi
Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.
A skill your agent uses when building with Scaffold-ETH 2. An agent skill from ccashwell/evm-cortex.
$ npx skills add ccashwell/evm-cortex --skill scaffold-eth-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex scaffold-eth-patterns --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/scaffold-eth-patterns .claude/skills/scaffold-eth-patterns && 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 "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .claude/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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/scaffold-eth-patternsType 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 scaffold-eth-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex scaffold-eth-patterns --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/scaffold-eth-patterns .agents/skills/scaffold-eth-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .agents/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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 scaffold-eth-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex scaffold-eth-patterns --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/scaffold-eth-patterns .cursor/skills/scaffold-eth-patterns && 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 "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .cursor/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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/scaffold-eth-patterns--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 scaffold-eth-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex scaffold-eth-patterns --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/scaffold-eth-patterns .gemini/skills/scaffold-eth-patterns && 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 "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .gemini/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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 scaffold-eth-patternsInstalls 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 scaffold-eth-patterns -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/scaffold-eth-patterns .github/skills/scaffold-eth-patterns && 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 "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .github/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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 scaffold-eth-patterns -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 scaffold-eth-patterns --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/scaffold-eth-patterns .opencode/skills/scaffold-eth-patterns && 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 "scaffold-eth-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/scaffold-eth-patterns into .opencode/skills/scaffold-eth-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scaffold-eth-patterns", 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.
scaffold-eth-patternsA skill your agent uses when building with Scaffold-ETH 2. An agent skill from ccashwell/evm-cortex.
Scaffold Eth Patterns is an agent skill from ccashwell/evm-cortex. Use when building with Scaffold-ETH 2. Covers project structure, custom hooks (useScaffoldReadContract, useScaffoldWriteContract), debug page, deploying contracts, hot reload, and wagmi integration.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with viem and wagmi. The repository describes itself as: Ethereum protocol engineering squad for AI coding assistants. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
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:
yarnnpxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn and npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Scaffold Eth Patterns loads about 2k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 300 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). 300 words, ~1,969 tokens.
.claude/skills/scaffold-eth-patterns/SKILL.md (or your agent's skills folder).Scaffold-ETH 2 is an open-source toolkit for rapid dApp prototyping. It combines Foundry (or Hardhat) + Next.js + wagmi + RainbowKit with custom hooks that simplify contract interaction. Key difference from raw wagmi: Scaffold hooks auto-detect ABIs from deployed contracts and wait for transaction confirmations.
npx create-eth@latest my-dapp
cd my-dapp
yarn installStart all services:
# Terminal 1: Local chain
yarn chain
# Terminal 2: Deploy contracts
yarn deploy
# Terminal 3: Start frontend
yarn startmy-dapp/
├── packages/
│ ├── foundry/ # Smart contracts
│ │ ├── contracts/ # Solidity sources
│ │ ├── script/ # Deploy scripts
│ │ ├── test/ # Contract tests
│ │ └── foundry.toml
│ └── nextjs/ # Frontend
│ ├── app/ # Next.js app router pages
│ ├── components/ # React components
│ ├── contracts/ # Auto-generated contract data
│ ├── hooks/scaffold-eth/ # Custom hooks
│ ├── scaffold.config.ts # Global config
│ └── utils/scaffold-eth/ # Utilities
├── package.json
└── yarn.lockReads contract state with auto-detected ABI:
import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";
function GreeterDisplay() {
const { data: greeting, isLoading } = useScaffoldReadContract({
contractName: "YourContract",
functionName: "greeting",
});
// With arguments
const { data: balance } = useScaffoldReadContract({
contractName: "YourContract",
functionName: "balanceOf",
args: ["0xAddress"],
});
if (isLoading) return <p>Loading...</p>;
return <p>Greeting: {greeting}</p>;
}Writes to contracts with automatic confirmation waiting:
import { useScaffoldWriteContract } from "~~/hooks/scaffold-eth";
function SetGreeting() {
const { writeContractAsync, isPending } = useScaffoldWriteContract("YourContract");
const handleSubmit = async () => {
try {
// This waits for the tx to be confirmed (unlike raw wagmi)
await writeContractAsync({
functionName: "setGreeting",
args: ["Hello from Scaffold-ETH!"],
value: parseEther("0.01"), // Optional ETH value
});
console.log("Transaction confirmed!");
} catch (e) {
console.error("Transaction failed:", e);
}
};
return (
<button onClick={handleSubmit} disabled={isPending}>
{isPending ? "Sending..." : "Set Greeting"}
</button>
);
}Get a contract instance for direct interaction:
import { useScaffoldContract } from "~~/hooks/scaffold-eth";
function ContractInfo() {
const { data: contract } = useScaffoldContract({
contractName: "YourContract",
});
// Access contract address and ABI
console.log("Address:", contract?.address);
console.log("ABI:", contract?.abi);
}Read historical events:
import { useScaffoldEventHistory } from "~~/hooks/scaffold-eth";
function EventLog() {
const { data: events, isLoading } = useScaffoldEventHistory({
contractName: "YourContract",
eventName: "GreetingChange",
fromBlock: 0n,
watch: true, // Live updates
});
return (
<ul>
{events?.map((event, i) => (
<li key={i}>
{event.args.greetingSetter}: {event.args.newGreeting}
</li>
))}
</ul>
);
}// packages/foundry/script/Deploy.s.sol
pragma solidity ^0.8.20;
import {ScaffoldETHDeploy} from "./DeployHelpers.s.sol";
import {YourContract} from "../contracts/YourContract.sol";
contract DeployScript is ScaffoldETHDeploy {
function run() external ScaffoldEthDeployerRunner {
YourContract yourContract = new YourContract(deployer);
console.logString(string.concat("YourContract deployed at: ", vm.toString(address(yourContract))));
}
}# Deploy to local chain
yarn deploy
# Deploy to a specific network
yarn deploy --network base
# Reset deployments
yarn deploy --resetScaffold-ETH includes a debug page at /debug that auto-generates a UI for all contract functions:
Access at: http://localhost:3000/debug
Scaffold-ETH watches for contract changes:
packages/foundry/contracts/yarn deploy — recompiles and redeploysThe deployedContracts.ts file is auto-generated on each deploy.
| Feature | Scaffold-ETH | Raw Wagmi |
|---|---|---|
| ABI management | Auto-detected | Manual import |
| Tx confirmation | Auto-waits | Manual useWaitForTransactionReceipt |
| Contract address | Auto-resolved | Manual address |
| Debug UI | Built-in /debug | Build your own |
| Hot reload | Contracts auto-update | Manual config |
| Multi-chain | Config-based | Manual setup |
| Prototyping speed | Very fast | Moderate |
| Production flexibility | Limited | Full control |
// Scaffold-ETH: writeContractAsync waits for confirmation
await writeContractAsync({ functionName: "setGreeting", args: ["Hello"] });
// Transaction is CONFIRMED here
// Raw wagmi: need separate hook for confirmation
const { writeContract, data: hash } = useWriteContract();
const { isSuccess } = useWaitForTransactionReceipt({ hash });
// Must track isSuccess separately// packages/nextjs/scaffold.config.ts
import { defineConfig } from "~~/utils/scaffold-eth/defineConfig";
export default defineConfig({
targetNetworks: [chains.foundry], // Local dev
// targetNetworks: [chains.base], // Production
pollingInterval: 30000,
onlyLocalBurnerWallet: true, // Dev only
walletAutoConnect: true,
});packages/foundry/contracts/packages/foundry/script/Deploy.s.solyarn deploy// packages/foundry/contracts/Vault.sol
pragma solidity ^0.8.20;
contract Vault {
mapping(address => uint256) public balances;
event Deposited(address indexed user, uint256 amount);
function deposit() external payable {
balances[msg.sender] += msg.value;
emit Deposited(msg.sender, msg.value);
}
function withdraw(uint256 amount) external {
require(balances[msg.sender] >= amount, "Insufficient");
balances[msg.sender] -= amount;
(bool ok,) = msg.sender.call{value: amount}("");
require(ok, "Transfer failed");
}
}# Build frontend
yarn next:build
# Deploy contracts to production chain
yarn deploy --network base
# The frontend reads from the generated contract data
# Deploy frontend to Vercel, IPFS, etc.© 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/scaffold-eth-patterns of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Scaffold Eth Patterns 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 |
|---|---|---|---|---|---|---|
| Scaffold Eth Patterns this skillccashwell/evm-cortex | 131 | — | ~2k | Automated safety check: Pass | MIT | |
| Wagmi Feature Developmentwevm/wagmi | 6.8k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Error Handlingalchemyplatform/aa-sdk | 321 | — | ~299 | Automated safety check: Pass | MIT | |
| Reviewmorpho-org/morpho-blue-liquidation-bot | 115 | — | ~703 | Automated safety check: Pass | MIT | |
| NEAR Intents Swap Integrationinternet-court/internet-court-skill | 6.4k | 2 repos | ~939 | Automated safety check: Pass | Custom licence | |
| Vibenetbase/skills | 121 | — | ~2.7k | Automated safety check: Pass | MIT |
wevm/wagmi
Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.
alchemyplatform/aa-sdk
A skill your agent uses when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.
morpho-org/morpho-blue-liquidation-bot
Review code against CLAUDE.md standards with focus on multi-chain safety, BigInt precision, and config separation.
internet-court/internet-court-skill
Builds cross-chain token swaps and bridge flows with the NEAR Intents 1Click API: quotes, deposit addresses, per-chain deposits and status polling.
base/skills
Build on vibenet — Base's devnet for native account abstraction (EIP-8130), payer gas sponsorship (ERC-8168), and Cobalt 200ms native blocks.
base/skills
Complete Base development playbook. An agent skill from base/skills.
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.
Works with
Categories
A skill your agent uses when building with Scaffold-ETH 2. An agent skill from ccashwell/evm-cortex. Scaffold Eth Patterns is an agent skill from ccashwell/evm-cortex. Use when building with Scaffold-ETH 2.
Scaffold Eth Patterns fits situations like: building with Scaffold-ETH 2.
Run `npx skills add ccashwell/evm-cortex --skill scaffold-eth-patterns -a claude-code`. Or copy the skill folder (skills/scaffold-eth-patterns in ccashwell/evm-cortex) into .claude/skills/scaffold-eth-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill scaffold-eth-patterns -a codex`. Or copy the skill folder (skills/scaffold-eth-patterns in ccashwell/evm-cortex) into .agents/skills/scaffold-eth-patterns 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 scaffold-eth-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scaffold-eth-patterns, .gemini/skills/scaffold-eth-patterns, .github/skills/scaffold-eth-patterns and .opencode/skills/scaffold-eth-patterns in your project.
Going by SKILL.md and its folder, Scaffold Eth Patterns needs the command-line tools its instructions call (yarn and npx). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. 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.
Scaffold Eth Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k 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 Scaffold Eth Patterns: Wagmi Feature Development (wevm/wagmi, 6.8k stars), Error Handling (alchemyplatform/aa-sdk, 321 stars), Review (morpho-org/morpho-blue-liquidation-bot, 115 stars) and NEAR Intents Swap Integration (internet-court/internet-court-skill, 6.4k 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.