A coding agent starts every session knowing nothing about your project. It doesn't know:

  • how to build and test it;
  • which parts are fragile;
  • what was decided last month, and why;
  • what broke in production last week.

Whatever it needs has to be written somewhere it reads, or somebody types it again. Most of the time, somebody types it again.

On a team it gets worse. One person works with Claude Code, another with Codex, a third with Cursor. Even two people on the same agent each keep their own instructions and their own memory. The project's knowledge ends up split into as many private copies as there are people, and the copies disagree. A new teammate, or the same teammate in a fresh session, starts from whichever copy they have, which is usually none.

So the knowledge has to live in the repository, in a form every agent reads. Much of what matters there isn't about code at all. It's project management:

  • decisions recorded before the code that implements them;
  • incidents written up, with the rule each one taught;
  • a status page with a date on it;
  • runbooks someone can follow at 3 a.m.

A clean codebase with none of this still gets an agent that confidently undoes last month's decision, because nothing told it the decision was deliberate.

I learned this the expensive way, across a year of building mostly through agents. Halfword's instruction file grew to 3,332 lines, Cuando Partner's to 2,775, Fare Enough's to 2,028. Rules about my own laptop ended up in about a hundred memory files across ten projects, many of them the same rule written again. So I wrote it all down once, in a repo of its own: slntopp/vibecoding.

What it is

Modules you compose into a repository, for a new project or an old one you're bringing up to date:

  • core: AGENTS.md as a short index and rulebook, which Codex and Cursor read directly and Claude Code reads through a one-line CLAUDE.md. Also a status page, a decisions log, and a line budget that vibe lint enforces.
  • working agreement: how agents behave on your machine and your CI. It goes into your home folder, not into every repo.
  • ops docs: RFCs and ADRs, runbooks with a rollback for every step, incident write-ups, roadmaps, handovers. Every one opens with a status line and a date.
  • migration: rewriting a system while it serves traffic, unit by unit, behind switches.
  • observability: where every log, metric and trace lives, and read-only access for the agent through Grafana's gcx CLI or an MCP server, including what the system costs.
  • design system: principles, tokens, a component registry, a catalog rendered outside the app, and artboards.
  • stacks: Skip apps, Cloudflare Workers, Go on Kubernetes, and web apps that non-developers change through an agent.
  • layouts for monorepos and for products split across many repos, plus CI basics.

Alongside them come twenty skills in five plugins:

  • bootstrap, adopt and audit, which put the modules into a repo;
  • rfc, runbook, incident, investigate, query-budget, migration;
  • design, artboard, catalog;
  • store-screenshots, dependabot-rollup, and a few more.

Some modules also recommend skills published by other people. More on that below.

Pick yours

Choose a profile or a set of modules. The preview shows every file that would be written, including the AGENTS.md they compose to, the skills that come with them, and the commands to install it all.

Loading the module catalog…

The ideas

One rulebook every agent reads

AGENTS.md is the file Codex, Cursor and most other agents read at the start of a session. Claude Code reads CLAUDE.md, which in these repos is one line: @AGENTS.md. Whoever opens the repo with whatever agent gets the same rules, and nobody's private instructions override them.

That file is loaded into every session, so it has to stay short. Mine didn't. Halfword's grew to 3,332 lines. Each incident, each platform trap, each feature spec and each progress note went into the one file every session reads, because that was the one file every session reads.

What every one of those files did well was the same skeleton:

  • what the project is and how it talks;
  • the sources of truth, in order;
  • where things live;
  • how to build and test;
  • one-line rules;
  • a landmines checklist;
  • open decisions the agent must raise instead of settling.

That skeleton is the core module, and everything else gets a folder the agent looks in when it needs it. For an existing repo, the adopt skill does the moving. It sorts every section and moves the text word for word:

  • specs into docs/;
  • incident stories into docs/incidents/, leaving their rule behind as one checklist line;
  • progress notes into docs/status.md.

Then it proves nothing was lost: every line of the old file has to turn up in some new file.

Decisions before code

An agent reading code can't tell a deliberate choice from an accident. It sees the odd retry, the table two services write to, the field that is never sent, and it "fixes" them. The only defence is to write the decision down, ideally before the code:

  • A short ADR: what we do, why not the strongest alternative, and what would have to change for the alternative to win.
  • A longer RFC while the design is still being argued. It numbers its open questions and records each answer with a date.

AGENTS.md carries a table of open decisions the agent has to raise, not decide. Once the owner answers, the row moves to the decisions log, and an agent doesn't reopen it on its own.

Incidents become rules, and docs carry dates

An incident write-up starts its timeline where the cause came in, which is often weeks before anyone noticed. It describes systems, not people, and ends with follow-ups. The lesson becomes one line in the repo's landmines checklist, which every agent runs before calling a change finished. The story stays in the incident; the rule travels with the code.

Every RFC, runbook and incident opens with a status line: status, owner, date and tracking issue. A document without a date gets re-checked every time someone uses it, so vibe lint fails on one.

Rules about you are not rules about the repo

My Mac panicked with four builds running and an Android emulator on top (that story is here). After that, each project's memory got its own copy of rules like:

  • one heavy job at a time;
  • check free disk before a release build;
  • don't poll CI for forty minutes;
  • push once, not per commit.

They're mine, not the repos', so they live in one user-level working agreement now.

A migration is a set of switches

This year I moved a Django platform to Go and a messaging channel from a VM to Workers, both while they served customers. What made it work fits in a paragraph:

  • Cut the system into units.
  • Give each unit one switch, in configuration, that goes both ways without a deploy.
  • Move units through four states: code only, dev, validated against production, prod.
  • Keep a board of those states, updated in the PR that changes one.
  • Make the gate between stages a number decided before the first run, not a feeling.
  • While both sides run, find out which side serves a thing before you change it.

That paragraph is now a module, a skill and a PR template.

Ask the telemetry first

The fastest investigations start from logs and metrics, not from code: when did it start, for how many, what changed at that minute. An agent can do that itself if three things are true:

  • It can query the telemetry, read-only. That means Grafana's gcx CLI with a login, or a Grafana MCP server with a viewer token.
  • The repo says where each signal lives. A table maps each question to its datasource and an example query.
  • The repo says which sources are sampled. A sampled analytics store answers "which platform fails most", not "did it drop at 14:00".

Some data sits where Grafana can't reach, like an edge database. For that, the module describes a small read-only bridge Worker with an allowlist, instead of copying the data somewhere. The investigate skill follows the same order: frame the question, pin the first bad minute, size the blast radius, line it up with deploys, and quote every query.

Rows read are the bill

Cloudflare bills D1 by rows read and rows written, and Workers by requests. Each comes with an allowance per billing cycle: Workers Paid includes 25 billion rows read, 50 million rows written and 10 million requests, with a price per million past that. On D1, a query that scans a whole table on every request is the slowest thing in your system and the biggest line on your invoice. Full table scans are the classic production database problem anywhere. On D1 you also pay for every row they touch.

Cuando has a Grafana board for this. It reads Cloudflare's GraphQL Analytics API live, so nothing is copied and nothing runs on the Worker. The top row shows rows read and written against the allowance, over the actual billing cycle, projected to its end. Below that sits the table that matters, the top queries, with:

  • how often each runs;
  • rows read;
  • rows read per row returned;
  • rows written;
  • P99 latency.

A ratio near 1 is an index lookup. A ratio in the thousands is a scan.

The first time I looked, one query stood out. It rebuilt a departure board by scanning the whole departure_vectors table on every poll, and it was about 80% of all rows read. Two changes fixed it:

  • a precomputed board kept in KV, invalidated by the few code paths that write those tables;
  • a partial index for the one live-status lookup that is still left.

Requests get the same treatment: billed invocations per Worker, then edge requests by endpoint and client to explain them, with ids folded out of paths so a million tile URLs become one row.

The query-budget skill is that loop, written down:

  1. Write down the allowance and the cycle.
  2. Rank queries by rows read and by the ratio.
  3. Confirm the scan with EXPLAIN QUERY PLAN.
  4. Fix it, cheapest first: an index, then a partial or covering index, then a cache or a precomputed artifact, then keyset pagination.
  5. Prove the drop with before-and-after numbers in the PR.

The Workers module adds one rule to AGENTS.md: a new query on a hot path shows SEARCH … USING INDEX, not SCAN.

A design system an agent can use

An agent can only reuse what it can find. The design systems that worked for me had:

  • principles the agent cites when it pushes back on a request;
  • tokens in one file, with "never invent a token" as a rule;
  • a list of defaults agents get wrong, which grows every time I correct one.

The piece I didn't have is a catalog. Every one of my apps has a design-system gallery behind Settings → Developer. It's the only way to see a component on Android at the largest text size, but nobody browses it and no agent can open it.

So the module asks for two things:

  • A registry of components: purpose, when to use it and when not, variants, states, tokens, code paths.
  • A catalog generated from it, outside the app: every component and every state, in light and dark, at default and largest text, narrow and wide, in the longest language, on each platform. It's a page anyone can open, and it comes with an index the agent reads to find the exact image to check.

Before the registry and the catalog come artboards. These are explorations drawn with the agent in a single HTML file, using the real tokens and component names, three variants side by side. Translating one into code then becomes a mapping, not a reinvention, and anything without a token or a component shows up as a named gap before any code is written.

Shared knowledge is a shared skill, and some of the best ones aren't mine

The same cache-clearing skill lived in two of my repos and had already drifted. The Skip platform rules lived in three instruction files. Now they are skills, installed from one place and updated in one place.

The best skill I used this year isn't mine, though. Cloudflare's security-audit is a source-first, defensive review:

  • A finding has to cross a real trust boundary: a principal who gets access to something they shouldn't.
  • It comes with the evidence in the code, a safe way to reproduce it, a priority, and the smallest fix that closes it.

I ran it over Cuando's backend in November. The first run alone filed sixteen findings. Almost none was a missing check; they were checks asking the right question about the wrong row, org or moment. All sixteen were fixed in one change, and the rules they left are in the repo's checklist now. The core module recommends it for every repo that serves users:

npx skills add cloudflare/security-audit-skill

The observability module does the same for Grafana's own skills (gcx agent skills install). Modules can list skills published by others, and the picker above shows them with their install commands.

Installing it

In Claude Code, it is a plugin marketplace:

/plugin marketplace add slntopp/vibecoding
/plugin install vibecoding@vibecoding
/vibecoding:bootstrap

For other agents, the skills install with npx skills add slntopp/vibecoding. The modules don't need an agent at all: npx -y github:slntopp/vibecoding apply --profile … runs the CLI straight from GitHub. It is plain Node with no dependencies, and it never overwrites anything: a file that already exists gets a proposal next to it instead.

What's next

The first real rollout is four repos of one multi-repo platform. Each got an AGENTS.md of 56 to 91 lines, built from its own history, and the hub repo got a map of every repository.

The catalog is described thoroughly, but there is no reference implementation per stack yet. The first one will come out of the Cuando apps, web and Skip, and go back into the repo. Modules for stacks I don't use yet are open to anyone who does.