Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/ccashwell/evm-cortexnpx agentmods add skills/ccashwell/evm-cortex/scaffold-eth-patternsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ccashwell/evm-cortex/scaffold-eth-patterns)<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/scaffold-eth-patterns"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/scaffold-eth-patterns.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 15 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.01943 |
| Opus 5 | $0.00025 | $0.00971 |
| Sonnet 5 | $0.00010 | $0.00389 |
| Haiku 4.5 | $0.00005 | $0.00194 |
Grade A, and why
scaffold-eth-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 298 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scaffold-ETH 2 Patterns
Overview
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.
Quick Start
npx create-eth@latest my-dapp
cd my-dapp
yarn install
Start all services:
# Terminal 1: Local chain
yarn chain
# Terminal 2: Deploy contracts
yarn deploy
# Terminal 3: Start frontend
yarn start
Project Structure
my-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.lock
Custom Hooks
useScaffoldReadContract
Reads 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>;
}
useScaffoldWriteContract
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>
);
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 298 lines · 50 tokens per session scan A 00da0b9f828a
scaffold-eth-patterns is a skill published in the GitHub repository ccashwell/evm-cortex (128 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,943 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
onchainkit
Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.
crypto-market-dashboard-guide
Guide to building a real-time crypto market dashboard with Next.js, React, and TradingView charts. Features multi-chain portfolio tracking, DeFi position monitoring, price alerts, and social sentiment integration. Production-ready dashboard template.
solana-v1
Solana dApp UI with kit and web3.js. Use when wallet connect, transactions, or Solana address validation in React/Next.js.
ritual-dapp-frontend
Skill "ritual-dapp-frontend" from OpenCoven/coven, covering ritual dapp frontend skill, when to use, tech stack, quick start pattern and 1. setup chain & providers.
helius-phantom
Build frontend Solana applications with Phantom Connect SDK and Helius infrastructure. Covers React, React Native, and browser SDK integration, transaction signing via Helius Sender, API key proxying, token gating, NFT minting, crypto payments, real-time updates, and secure frontend architecture.
wagmi-v3
Wagmi v3 wallet and contract hooks for React/Next.js. Use when connecting wallets, reading/writing contracts, or handling transaction state.