One library, every agent A developer describes a shared skill library that stores agent instructions as folders containing a SKILL.md file with metadata fields, including a description that agents read to decide applicability and a runtime field that determines which agents receive the skill. A sync script links each skill folder into every agent home, so an edit reaches all linked agents at their next start, and a build step compiles the library into a single machine-readable catalog that apps read instead of maintaining their own lists. The setup covers eleven interactive agent homes and two background workers on the developer's machine. A lesson that lives in one session dies with it. Written as a skill, it reaches every agent on the machine at its next start, and, narrated as a card, it teaches a person the same thing in a few minutes. The first three posts in this series covered what an agent knows before it starts context https://dev.to/blog/agentic-engineering , how it knows when to stop loops https://dev.to/blog/loops-with-a-stop-condition and how it proves it's done evidence https://dev.to/blog/evidence-not-confidence . This one is about the part that compounds: what the next session inherits. Every long session teaches something. How to ship a docs repo without tripping on an auto-generated index file. Which order to publish a content CDN in so the old catalog never points at a deleted page. What the right format is for a milestone message. If that knowledge stays in the conversation, it's gone when the session ends, and the next session pays for it again. A note in one agent's private memory is a little better, but only that agent reads it. What's needed is a form that is written once, found at the right moment, and read by every agent . In this workspace that form is a skill. A skill is a folder with one required file, SKILL.md . The top of the file is a short block of fields; the rest is plain Markdown instructions. --- name: done-when description: "Turn a task into a loop an agent can finish: write the goal as an end" state, the check that proves it and the stop condition, as one done-when line on the Linear issue. track: doctrine runtime: shared triggers: done when, make this issue ready, add a stop condition --- Done-when Use it when … Steps 1. Write the goal as an end state. … Two fields do most of the work. The description is what an agent reads when deciding whether the skill applies, so it says the trigger and the outcome in one sentence. The runtime says which agents get it: every interactive agent, the background workers too, or one worker only. The body is a procedure, not an essay: when to use it, when not to, numbered steps, what it produces. A good skill is short enough to follow in full. That matters, because the rule here is that skills run in full : no step is optional, and long procedures end with a self-audit that counts what was done. Skills versus rules A rule says what must always be true "never squash to main" . A skill says how to do one job "take this change from live to main" . Rules live in the shared rulebook every agent reads at start-up. Skills are loaded when the job comes up. A skill can cite a rule; it never replaces one. The library is one repository with one folder per skill, grouped into tracks. A sync script reads each skill's runtime and links the folder into every agent home that should have it: One library, linked into every agent home - LIBRARY · One folder per skill Every skill is a folder in one repository: the instructions an agent follows, the scenes that teach a person, and the rendered player.- RUNTIME · The skill says who gets it A field in each skill decides which agents receive it: every interactive agent, the background workers as well, or one worker only.- SYNC · Links One command links each folder into every home that should have it. An edit to a skill reaches every linked agent at its next start, with nothing to copy or keep in step.- CATALOG · Apps read one catalog A build step turns the library into one machine-readable catalog. Every app that shows the cards reads that file, and none keeps its own list. lit = this step · tap a box · ← → or Play · Interactive version in the original post https://agentair.ai/blog/one-library-every-agent On this machine, that's eleven interactive homes six Claude accounts and slots, three for Codex, one each for Gemini and Kimi plus two background workers. They're all links into the same folders. When I added the done-when skill this week, every one of those agents had the new version at its next start, and nobody copied anything. Each skill has a second half. Next to SKILL.md sits a spec.json : a short sequence of narrated scenes, each with a heading, a simple diagram and two or three spoken sentences. A renderer turns it into a player page, and a voice model turns each scene's narration into a short audio clip. The point is that the same idea serves two readers. SKILL.md tells an agent how to write a done-when line. The card's scenes teach a person why a task needs a stop condition, what a good check looks like and how to write the line, in a few minutes of listening. The agent and the person learn the same practice from the same folder. Two details keep this cheap enough to maintain: Across the library that's now 238 cards, about 3,800 narrated scenes and nearly twenty hours of listening, grouped into the tracks the cards belong to. It's live as Agentic Engineering at /ae https://dev.to/ae on this site and the other sites. Every app that shows the cards reads one file, catalog.json , built from the library by a script with a --check mode that fails when the committed file is stale. GabbleGrid's study pages read it. One Roof's Learn view reads the same folder tree. The /ae pages on every site do too. One file for every consumer is the right design, and this week it showed its sharp edge. I removed a block of cards and regenerated GabbleGrid's copy of the catalog. The unit tests passed and the type check passed. Then the pull request's build failed: GabbleGrid validates the catalog against a schema when the server starts, and two things no longer fit. One card had no scenes yet, and the curated paths, which the app lays out as exactly six steps, had shrunk to three. Nothing reached production, because the build is a gate and nobody merges on red. The fix took three parts, and each one is a small version of this series: make check at the source, before any app sees it. The general lesson When one file feeds many consumers, put each consumer's assumptions into the producer's check. The producer is the one place every change passes through. Four parts, one system around the agent: | Part | The question | The habit | |---|---|---| | Context | What does the agent know before you speak? | One launch folder, a door for every agent, one must-read list | | Loops | How will it know when to stop? | A done-when line on every unit of work | | Evidence | How will it prove it's done? | Proof from something the agent didn't write | | Procedure | What will the next session inherit? | One library of skills, linked into every agent | None of it is about the model. All of it is ordinary engineering: requirements, checks, failure modes, maintenance. The model does the typing. These four decide whether the typing adds up. Originally published at https://agentair.ai/blog/one-library-every-agent https://agentair.ai/blog/one-library-every-agent .