growth-engineer
AGENTS.md147 starsChanged 2 months agoMITView on GitHub
Canonical instructions for coding agents and humans: the durable invariants and the routing table into the deep-dive docs. CI caps it at 200 lines (pnpm docs:check) — one canonical statement per policy, no changelog. An open-source catalog of companies, the tools they make, and workflows that put tools to work. A COMPANY makes many TOOLS; a tool is ONE function an agent can call (apollo/enrich-person), tied to a specific MCP tool, CLI subcommand or API endpoint — not the product.…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,638 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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-workflowSkill
- research-companySkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
THE CATALOG IS THE REPOSITORY: Every entry is a markdown file under companies/ and workflows/, plus the vocabulary in tags.yml.
- Very specific: line 100
Every rule is enforced at build with the offending file's path, and every problem is reported at once (ContentErrors): strict schemas …
- Very specific: line 121
Every page's metadata comes from pageMetadata() (lib/seo/metadata.ts): a canonical path, Open Graph facts, and for a page that IS a file …
- Very specific: line 140
EVERY page and permutation is generated at build.
- Very specific: line 143
No page reads searchParams on the server.
- Distinctive: line 168
Write the negative cases. A guard is not done until it has FAILED.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Agent Guidelines — growth.engineer
Canonical instructions for coding agents and humans: the durable invariants
and the routing table into the deep-dive docs. CI caps it at 200 lines
(pnpm docs:check) — one canonical statement per policy, no changelog.
What this is
An open-source catalog of companies, the tools they make, and
workflows that put tools to work. A COMPANY makes many TOOLS; a tool is
ONE function an agent can call (apollo/enrich-person), tied to a specific
MCP tool, CLI subcommand or API endpoint — not the product. A WORKFLOW is
several tools in order with the instructions that reach a result, and a growth
hack IS a workflow, not a second kind. Every tool and workflow is ONE
generated markdown file any agent can run; copying it is the product action.
Reads are public; agents fetch files with no sign-in.
THE CATALOG IS THE REPOSITORY. Every entry is a markdown file under
companies/ and workflows/, plus the vocabulary in tags.yml; the site is
built from them, and the community contributes by pull request.
Changing the catalog
Adding or fixing a company, tool, workflow or tag touches only companies/,
workflows/ and tags.yml, then pnpm content:check. Start at
CONTRIBUTING.md; every field is in the folder READMEs
(companies/, workflows/),
and two skills do it end to end: add-workflow
and research-company. Never edit a
rendered file or the app to change a fact. The rest of this file is for
changing the site itself.
Stack
Next.js 16 (App Router, Cache Components, Turbopack) · a build-time content
compiler (lib/content/) · Tailwind v4 · shadcn on Base UI · Biome · Vitest
· pnpm. The catalog has no backend, no database and no auth provider;
the one runtime store is an optional Upstash Redis counting workflow copies
(lib/usage/copies.ts: Uses, Popular). Every route is public; every
env var is optional (.env.example, read only through lib/env.ts).
Validation — proportional, not ceremonial
- While editing:
pnpm exec biome check --write <all touched files>once per unit of work, in ONE call (every invocation loads the whole project). Pluspnpm test:run tests/<exact file>for the behavior you touched. - Touched catalog data (
companies/,workflows/,tags.yml):pnpm content:check— every problem, with its file path. - Once per unit of work:
pnpm check(Biome +tsgo). Not per patch. - Final handoff:
pnpm tscthenpnpm lint. Touched the renderer: the goldens intests/render-markdown.test.tsmust still pass byte for byte. - Docs only:
pnpm docs:check.
Heavy commands (check, tsc, build, test:run, knip) queue through
scripts/heavy-lock.mjs, one at a time per repository; a lock timeout is a
queue timeout, not a failure. content:check is light and runs at once. Never call vitest, tsc,
next build or knip directly; dev servers are pnpm dev. What CI blocks
on: docs/maintainers/ci.md.
Critical invariants
The markdown file
- ONE render path:
lib/catalog/render-markdown.ts(andrender-tag.tsfor tags; pure), called only bylib/content/build-documents.tsat build time. Nothing renders on the request path; a rendered file is never hand-edited. A SOURCE file is a YAML header of facts; a company or workflow adds a markdown body (a tool file is its header alone): a workflow's outcome, inputs and steps are body sections (lib/content/workflow-body.ts); the build adds setup and rules. - The format is the contract in
docs/markdown-files.md: flat YAML header, setup picks the best way in (official MCP → CLI → API → community; tool files list every option, workflow files ≤ 2 per tool, each company's ways once), inputs in backticks, ≤ 10 steps, Rules last and immutable, tool ≈ 80 lines, workflow ≈ 200. Change the format and the golden fixtures intests/fixtures/markdown/in the same commit. - A rendered file's
updatedis the newestupdatedamong the source files that fed it (tool ← company, workflows; workflow ← tools, their companies).
Keys and refs
- Public identity is the
key(apollo,apollo/enrich-person,funding-signal-outbound), and the key IS the path:companies/apollo/,companies/apollo/tools/enrich-person.md,workflows/funding-signal-outbound.md(FLAT — no folders; the workflow'sauthoris a GitHub login in its header, never a company). Keys are never authored in a header. Grammar and reserved handles live inlib/catalog/keys.ts; every top-level route must be reserved (pinned bytests/keys.test.ts). - Keys never change after publishing. A rename lists the old key under
aliases:; every miss asks the alias map before answering 404, and the.mdhandler and the pages turn a hit into a real 308. - Deprecated stays visible with a warning; a
drafttool or workflow has no page, no file and no list; a published workflow uses published tools only.
The content compiler
lib/content/read-tree.tsis the only reader of the content tree (the OG font islib/seo/og-font.ts);buildCatalog(files)is pure and testable.- Every rule is enforced at build with the offending file's path, and every
problem is reported at once (
ContentErrors): strict schemas (unknown fields rejected), reserved handles, every step's tool resolves and is published, tags exist, aliases never shadow a live key, a published tool has ≥ 1 call on a declared way in anddocs:, a tool file has no body, every company has a logo, files within their line caps. A new rule ships with a negative test intests/content-schema.test.ts— a guard is not done until it has FAILED. - Computed values (tags,
searchText) come fromlib/content/derive.ts; the links and tag counts fromlib/content/build-relations.ts, read throughrelationsOf— one writer each, never authored in a file. The workflow ↔ tool relationship is written into BOTH rendered files (tools:/workflows:) and both pages. - The pure half of
lib/catalog/*(keys, renderer, search grammar) imports nothing fromnode:,server-onlyorlib/content— it runs in the proxy and the browser too (tests/catalog-purity.test.ts). Onlycatalog.ts,loaders.ts,discovery.tsandstatic-params.tsare server-side.
Discovery: SEO, GEO and agents
- The words are defined ONCE, in
lib/catalog/definitions.ts;/llms.txt,/llms-full.txtand the structured data read from it. Never restate a definition in a page or a doc — link or import. - Every page's metadata comes from
pageMetadata()(lib/seo/metadata.ts): a canonical path, Open Graph facts, and for a page that IS a file itstext/markdownalternate. The card is the segment'sopengraph-image.tsx, drawn at build (generateStaticParams,next/og). Structured data (lib/seo/structured-data.ts, rendered by<JsonLd>) restates facts already on the page — never new ones./sitemap.xmllists every indexable page with itsupdateddate; a.mdfile names its page as canonical./robots.txtallows every crawler outside/api/and names the AI crawlers.tests/seo.test.tsxpins them all.proxy.tsreports AI visits to Notra.
Rendering and caching
- The catalog is built ONCE per process (
lib/catalog/catalog.ts) from synchronous reads, so every page, the.mdhandler and/llms.txtPRERENDER with no'use cache'and noconnection(); detail routes list params withgenerateStaticParams(lib/catalog/static-params.ts). Neverexport const dynamic,revalidateordynamicParams. The ONE'use cache'is the copy counts (+connection(), streamed into<Suspense>holes). Values that move (star count, year) are inlined at build (next.config.tsenv). - EVERY page and permutation is generated at build. Listings prerender every
item with no query and, once hydrated (
useIsClient), narrow themselves from the URL (useSearchParams; pure search inlib/catalog/search.ts). No page readssearchParamson the server. The dynamic routes are/mcpand the copy counter's POST (/api/workflows/<name>/copies). The proxy runs for.mdfiles,Accept: text/markdownand page views (the Notra report), never a prefetch or an asset. A detail page saysexport const instant = false. - NOTHING LOADS: no skeletons, no spinners, no fetch after load, no
<Suspense>in a page but a copy-count hole. A page renders directly; one with params awaits them itself: every known key is ingenerateStaticParams, so its HTML is complete and inline. Only an unknown key renders on demand. - Internal navigation is ALWAYS
next/link(never a raw<a href="/…">): Link prefetches on viewport and on hover, and every target is static, so a navigation is a cached fetch. Raw anchors are for external URLs and for files a route handler serves (/llms.txt,.md), which are not pages. - Route handlers never read
request.url: a redirect is a relativeLocationon a 308, or the route silently goes dynamic. - A redirect is never a page: decided in a Suspense child it becomes a
<meta refresh>agents ignore. A redirect-only URL is a route handler (/tools/[handle]). - Filters and search are LINKS and GET forms (
next/form) — the URL is the state; an agent can use the same URL.
Testing
tests/runs innode; the suite is hermetic on a fresh clone. The content suite (tests/content.test.ts) builds the real tree and asks every question a page asks; extend it when you add a read.- Write the negative cases. A guard is not done until it has FAILED.
Code conventions
- Tailwind:
flex gap-*, neverspace-x/y-*;flex-1pairs withmin-w-0; type only through atype-*role inapp/typography.css(test-enforced). - One concern per file, ~200 lines (cap 400, data tables exempt); name files
by what they render;
Array<T>; booleans takeis/has/should/can; env vialib/env.ts. - Icons from
@hugeicons/react+@hugeicons/core-free-icons; Geist Sans and Geist Mono throughnext/font. - Nothing invented in the catalog or the UI: no placeholder facts, fake stats, invented users, commands or endpoints (the home page's illustrated avatars are decoration). Hide a slot when data is absent.
Documentation hygiene
A change that moves a boundary updates the closest README or this file in the
same batch; pnpm docs:check fails on a broken link or this file over cap.
Docs routing table
| Topic | Doc |
| Product vision, phases, what is not in v1 | docs/vision.md |
| What the build derives and every rule it enforces | docs/data-model.md |
| The rendered markdown file contract and where files are served | docs/markdown-files.md |
| Request path, the build-time catalog, search, layout | docs/architecture.md |
| First run and deploying | docs/setup.md |
| Validation, the heavy lock, dev servers, worktrees | docs/maintainers/validation.md |
| CI jobs and why each exists | docs/maintainers/ci.md |
| Cache Components, bundle budget, Turbopack | docs/maintainers/performance.md |
Company logos: the CDN, the rules, pnpm logos:upload | docs/maintainers/logos.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.

