Graz
graz-sh/graz
React hooks for Cosmos blockchain interactions — connect wallets, query balances, send tokens, sign messages.
A skill your agent uses when building dApp frontends with wagmi v2 and viem.
$ npx skills add ccashwell/evm-cortex --skill dapp-frontend-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ccashwell/evm-cortex dapp-frontend-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/dapp-frontend-patterns .claude/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .claude/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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/dapp-frontend-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 dapp-frontend-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ccashwell/evm-cortex dapp-frontend-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/dapp-frontend-patterns .agents/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .agents/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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 dapp-frontend-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ccashwell/evm-cortex dapp-frontend-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/dapp-frontend-patterns .cursor/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .cursor/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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/dapp-frontend-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 dapp-frontend-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ccashwell/evm-cortex dapp-frontend-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/dapp-frontend-patterns .gemini/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .gemini/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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 dapp-frontend-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 dapp-frontend-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/dapp-frontend-patterns .github/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .github/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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 dapp-frontend-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 dapp-frontend-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/dapp-frontend-patterns .opencode/skills/dapp-frontend-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 "dapp-frontend-patterns" agent skill from https://github.com/ccashwell/evm-cortex/tree/main/skills/dapp-frontend-patterns into .opencode/skills/dapp-frontend-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dapp-frontend-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.
dapp-frontend-patternsA skill your agent uses when building dApp frontends with wagmi v2 and viem.
Dapp Frontend Patterns is an agent skill from ccashwell/evm-cortex. Use when building dApp frontends with wagmi v2 and viem. Covers useReadContract, useWriteContract, useSimulateContract, useWaitForTransactionReceipt, wallet connection (RainbowKit), chain switching, and ENS resolution.
Its SKILL.md is about 1.9k 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 Frontend & Design, covering Smart contracts. It works with viem and wagmi. 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:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, 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.
Dapp Frontend Patterns loads about 1.9k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 112 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). 112 words, ~1,928 tokens.
.claude/skills/dapp-frontend-patterns/SKILL.md (or your agent's skills folder).npm create wagmi@latest my-dapp
# Select: Next.js, RainbowKit
# Or add to existing project:
npm install wagmi viem @tanstack/react-query @rainbow-me/rainbowkitimport { http, createConfig } from 'wagmi';
import { base, mainnet, optimism } from 'wagmi/chains';
import { getDefaultConfig } from '@rainbow-me/rainbowkit';
export const config = getDefaultConfig({
appName: 'My dApp',
projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID!, // WalletConnect
chains: [base, mainnet, optimism],
transports: {
[base.id]: http(process.env.NEXT_PUBLIC_BASE_RPC),
[mainnet.id]: http(process.env.NEXT_PUBLIC_MAINNET_RPC),
[optimism.id]: http(process.env.NEXT_PUBLIC_OP_RPC),
},
});'use client';
import { WagmiProvider } from 'wagmi';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { RainbowKitProvider, darkTheme } from '@rainbow-me/rainbowkit';
import { config } from './config';
import '@rainbow-me/rainbowkit/styles.css';
const queryClient = new QueryClient();
export function Providers({ children }: { children: React.ReactNode }) {
return (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider theme={darkTheme()}>
{children}
</RainbowKitProvider>
</QueryClientProvider>
</WagmiProvider>
);
}import { useReadContract, useReadContracts } from 'wagmi';
import { formatEther, formatUnits } from 'viem';
const tokenAbi = [
{ name: 'balanceOf', type: 'function', stateMutability: 'view',
inputs: [{ name: 'account', type: 'address' }],
outputs: [{ name: '', type: 'uint256' }] },
{ name: 'decimals', type: 'function', stateMutability: 'view',
inputs: [], outputs: [{ name: '', type: 'uint8' }] },
{ name: 'symbol', type: 'function', stateMutability: 'view',
inputs: [], outputs: [{ name: '', type: 'string' }] },
] as const;
function TokenBalance({ address, token }: { address: `0x${string}`; token: `0x${string}` }) {
const { data: balance, isLoading } = useReadContract({
address: token,
abi: tokenAbi,
functionName: 'balanceOf',
args: [address],
});
// Batch multiple reads in one call
const { data: tokenInfo } = useReadContracts({
contracts: [
{ address: token, abi: tokenAbi, functionName: 'symbol' },
{ address: token, abi: tokenAbi, functionName: 'decimals' },
],
});
if (isLoading) return <span>Loading...</span>;
const symbol = tokenInfo?.[0]?.result ?? '';
const decimals = tokenInfo?.[1]?.result ?? 18;
return (
<span>
{balance != null ? formatUnits(balance, decimals) : '0'} {symbol}
</span>
);
}import { useSimulateContract, useWriteContract, useWaitForTransactionReceipt } from 'wagmi';
import { parseEther } from 'viem';
function DepositButton({ amount }: { amount: string }) {
// 1. Simulate (dry run) to check for revert
const { data: simData, error: simError } = useSimulateContract({
address: '0xVault',
abi: vaultAbi,
functionName: 'deposit',
args: [parseEther(amount)],
});
// 2. Write (send transaction)
const { writeContract, data: txHash, isPending } = useWriteContract();
// 3. Wait for confirmation
const { isLoading: isConfirming, isSuccess } = useWaitForTransactionReceipt({
hash: txHash,
});
return (
<div>
{simError && <p>Error: {simError.message}</p>}
<button
disabled={!simData?.request || isPending || isConfirming}
onClick={() => writeContract(simData!.request)}
>
{isPending ? 'Signing...' : isConfirming ? 'Confirming...' : 'Deposit'}
</button>
{isSuccess && <p>Deposit confirmed!</p>}
</div>
);
}function ApproveAndDeposit({ token, vault, amount }: Props) {
const { address } = useAccount();
const { data: allowance } = useReadContract({
address: token,
abi: erc20Abi,
functionName: 'allowance',
args: [address!, vault],
});
const needsApproval = allowance != null && allowance < amount;
const { data: approveSim } = useSimulateContract({
address: token,
abi: erc20Abi,
functionName: 'approve',
args: [vault, amount],
query: { enabled: needsApproval },
});
const { data: depositSim } = useSimulateContract({
address: vault,
abi: vaultAbi,
functionName: 'deposit',
args: [amount],
query: { enabled: !needsApproval },
});
const { writeContract, data: txHash } = useWriteContract();
const { isSuccess } = useWaitForTransactionReceipt({ hash: txHash });
if (needsApproval) {
return (
<button
disabled={!approveSim?.request}
onClick={() => writeContract(approveSim!.request)}
>
Approve
</button>
);
}
return (
<button
disabled={!depositSim?.request}
onClick={() => writeContract(depositSim!.request)}
>
Deposit
</button>
);
}import { useSwitchChain, useChainId } from 'wagmi';
import { base, optimism } from 'wagmi/chains';
function ChainSwitcher() {
const chainId = useChainId();
const { switchChain } = useSwitchChain();
return (
<div>
<p>Current chain: {chainId}</p>
<button onClick={() => switchChain({ chainId: base.id })}>Switch to Base</button>
<button onClick={() => switchChain({ chainId: optimism.id })}>Switch to Optimism</button>
</div>
);
}import { useEnsName, useEnsAddress, useEnsAvatar } from 'wagmi';
function ENSProfile({ address }: { address: `0x${string}` }) {
const { data: name } = useEnsName({ address });
const { data: avatar } = useEnsAvatar({ name: name ?? undefined });
return (
<div>
{avatar && <img src={avatar} alt="ENS avatar" />}
<span>{name ?? `${address.slice(0, 6)}...${address.slice(-4)}`}</span>
</div>
);
}import { createPublicClient, createWalletClient, http, parseAbi } from 'viem';
import { base } from 'viem/chains';
const publicClient = createPublicClient({ chain: base, transport: http() });
const balance = await publicClient.readContract({
address: '0xToken',
abi: parseAbi(['function balanceOf(address) view returns (uint256)']),
functionName: 'balanceOf',
args: ['0xAddress'],
});
const logs = await publicClient.getLogs({
address: '0xContract',
event: parseAbi(['event Transfer(address indexed, address indexed, uint256)'])[0],
fromBlock: 'earliest',
toBlock: 'latest',
});useSimulateContract → useWriteContract)useWaitForTransactionReceipt for confirmation — don't assume tx is mineduseReadContracts to reduce RPC callsparseAbi for inline ABI definitions (type-safe)query.enabled to conditionally run hooks© 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/dapp-frontend-patterns of ccashwell/evm-cortex.
Open the folder on GitHubat commit f8f3301
Dapp Frontend 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 |
|---|---|---|---|---|---|---|
| Dapp Frontend Patterns this skillccashwell/evm-cortex | 131 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Grazgraz-sh/graz | 123 | — | ~4.2k | Automated safety check: Pass | MIT | |
| Bridge Stablecoincirclefin/skills | 155 | — | ~3.4k | Automated safety check: Notes | Apache-2.0 | |
| NEAR dApp Builderinternet-court/internet-court-skill | 6.4k | 1 repos | ~684 | Automated safety check: Pass | Custom licence | |
| Frontend Playbookaustintgriffith/ethskills | 294 | — | ~3.4k | Automated safety check: Notes | None | |
| Frontend UXaustintgriffith/ethskills | 294 | — | ~1.5k | Automated safety check: Pass | None |
graz-sh/graz
React hooks for Cosmos blockchain interactions — connect wallets, query balances, send tokens, sign messages.
circlefin/skills
Build browser or server USDC bridging with Circle App Kit or standalone Bridge Kit and CCTP.
internet-court/internet-court-skill
Scaffolds new NEAR dApps with create-near-app or adds NEAR wallet sign-in, contract calls and transaction signing to an existing React or plain JavaScript app.
austintgriffith/ethskills
The complete build-to-production pipeline for Ethereum dApps.
austintgriffith/ethskills
Frontend UX rules for Ethereum dApps that prevent the most common AI agent UI bugs.
vechain/x-app-template
VeChain Kit and dapp-kit packages — installation, hooks, components, wallet connection, social login, smart accounts, theming, and Privy setup.
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 dApp frontends with wagmi v2 and viem. Dapp Frontend Patterns is an agent skill from ccashwell/evm-cortex. Use when building dApp frontends with wagmi v2 and viem.
Dapp Frontend Patterns fits situations like: building dApp frontends with wagmi v2 and viem; tasks that involve Smart contracts.
Run `npx skills add ccashwell/evm-cortex --skill dapp-frontend-patterns -a claude-code`. Or copy the skill folder (skills/dapp-frontend-patterns in ccashwell/evm-cortex) into .claude/skills/dapp-frontend-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ccashwell/evm-cortex --skill dapp-frontend-patterns -a codex`. Or copy the skill folder (skills/dapp-frontend-patterns in ccashwell/evm-cortex) into .agents/skills/dapp-frontend-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 dapp-frontend-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/dapp-frontend-patterns, .gemini/skills/dapp-frontend-patterns, .github/skills/dapp-frontend-patterns and .opencode/skills/dapp-frontend-patterns in your project.
Going by SKILL.md and its folder, Dapp Frontend Patterns needs the command-line tools its instructions call (npm). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npm, 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.
Dapp Frontend 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 1.9k tokens (SKILL.md is roughly 7.7k 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 Dapp Frontend Patterns: Graz (graz-sh/graz, 123 stars), Bridge Stablecoin (circlefin/skills, 155 stars), NEAR dApp Builder (internet-court/internet-court-skill, 6.4k stars) and Frontend Playbook (austintgriffith/ethskills, 294 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.