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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00020 | $0.00777 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (131 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 1,943 once invoked, about $0.0002 per session on Opus 5.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.
scaffold-eth-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scaffold-eth-patternsccashwell/evm-cortex | Skill | 131 | 1mo ago | MIT | A | 50 | Claude Code, Codex |
| onchainkitalsk1992/CloddsBot | Skill | 3.1k | 18d ago | MIT | A | 24 | Claude Code, Codex |
| devtools-event-clientTanStack/devtools | Skill | 519 | yesterday | MIT | A | 79 | Claude Code, Codex |
| walkeros-create-destinationelbwalker/walkerOS | Skill | 354 | 6d ago | MIT | A | 77 | Claude Code |
| walkeros-create-sourceelbwalker/walkerOS | Skill | 354 | 6d ago | MIT | A | 65 | Claude Code |
| implementing-mcp-toolsPostHog/posthog | Skill | 41k | today | none | A | 58 | Claude Code, Codex |
| adding-personhog-rpcPostHog/posthog | Skill | 41k | today | none | A | 88 | Claude Code, Codex |