swiss-knife
AGENTS.md266 starsChanged 10 days agoMITView on GitHub
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-eth-orgSkill
- add-faucetSkill
- add-rip-projectSkill
- frontend-designSkill
- update-contributorsSkill
- vercel-react-best-practicesSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Use the Node version in .nvmrc (nvm use) before running development or build commands.
- Very specific: line 6
Do not ship new pages with the generic https://eth.sh/og/index.png image unless the page is intentionally generic or temporary.
- Distinctive: line 10
Read _docs/networks.md before adding or changing network support, network selectors, or RPC access.
- Very specific: line 11
Keep network definitions, names, icons, aliases, and RPC endpoint configuration in data/networks.ts.
- Very specific: line 12
Use NetworkSelect for standard network dropdowns and the shared identity/option helpers for specialized pickers.
- Distinctive: line 13
Keep protocol/provider support lists explicit and reference network IDs.
- Very specific: line 14
Use getPublicClient(chainId) for viem reads, getRpcTransport(chainId) for wagmi, and getEthersProvider(chainId) when ethers is required.
- Very specific: line 15
After changing shared network behavior, run pnpm test:networks, the affected tool suites, and pnpm exec tsc --noEmit.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Notes
- Use the Node version in
.nvmrc(nvm use) before running development or build commands. Next.js 16 requires Node >=20.9; the verified local runtime is Node 22 LTS. - For every new page or tool created under
app/, add page-specific metadata in the nearestlayout.tsxusinggetMetadataor a typed Next.jsMetadataexport. - New public pages/tools must include a page-specific Open Graph image served by a Next.js OG API route under
app/api/og/<slug>/route.tsx. Wire that route into the layout metadataimagesfield for both Open Graph and Twitter cards. - Do not ship new pages with the generic
https://eth.sh/og/index.pngimage unless the page is intentionally generic or temporary.
Networks and RPC access
- Read _docs/networks.md before adding or changing network support, network selectors, or RPC access.
- Keep network definitions, names, icons, aliases, and RPC endpoint configuration in
data/networks.ts.data/common.tsis a compatibility re-export; do not add parallel network definitions or hardcoded RPC URLs in tools. - Use
NetworkSelectfor standard network dropdowns and the shared identity/option helpers for specialized pickers. Keep each tool's selected network independent; do not introduce shared selection state or switch the wallet implicitly. - Keep protocol/provider support lists explicit and reference network IDs. Adding a network to the registry does not establish support in every tool. Preserve provider-only networks and directory-only metadata where applicable.
- Use
getPublicClient(chainId)for viem reads,getRpcTransport(chainId)for wagmi, andgetEthersProvider(chainId)when ethers is required. RPC Console must use the public-only endpoint policy. Explicit user-entered RPC testing and server-only credentials are documented exceptions. - After changing shared network behavior, run
pnpm test:networks, the affected tool suites, andpnpm exec tsc --noEmit. - User-saved chains use
lib/customChains/and the shared/_storageiframe hub, in a separate namespace from the address book. Preserve explicit existing-ID override confirmation, no public fallback for custom RPCs, and waiting for saved settings before browser RPC reads. Never proxy user-entered RPC URLs through server routes. See the user-saved chains section in_docs/networks.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

