agentleFS
swiss-knife-xyzswiss-knife-xyz/swiss-knife/AGENTS.md

swiss-knife

AGENTS.md266 starsChanged 10 days agoMITView on GitHub

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
  1. Very specific:

    Use the Node version in .nvmrc (nvm use) before running development or build commands.

    line 3
  2. Very specific:

    Do not ship new pages with the generic https://eth.sh/og/index.png image unless the page is intentionally generic or temporary.

    line 6
  3. Distinctive:

    Read _docs/networks.md before adding or changing network support, network selectors, or RPC access.

    line 10
  4. Very specific:

    Keep network definitions, names, icons, aliases, and RPC endpoint configuration in data/networks.ts.

    line 11
  5. Very specific:

    Use NetworkSelect for standard network dropdowns and the shared identity/option helpers for specialized pickers.

    line 12
  6. Distinctive:

    Keep protocol/provider support lists explicit and reference network IDs.

    line 13
  7. Very specific:

    Use getPublicClient(chainId) for viem reads, getRpcTransport(chainId) for wagmi, and getEthersProvider(chainId) when ethers is required.

    line 14
  8. Very specific:

    After changing shared network behavior, run pnpm test:networks, the affected tool suites, and pnpm exec tsc --noEmit.

    line 15

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 nearest layout.tsx using getMetadata or a typed Next.js Metadata export.
  • 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 metadata images field for both Open Graph and Twitter cards.
  • Do not ship new pages with the generic https://eth.sh/og/index.png image 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.ts is a compatibility re-export; do not add parallel network definitions or hardcoded RPC URLs in tools.
  • Use NetworkSelect for 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, and getEthersProvider(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, and pnpm exec tsc --noEmit.
  • User-saved chains use lib/customChains/ and the shared /_storage iframe 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.