{"slug": "one-library-every-agent", "title": "One library, every agent", "summary": "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.", "body_md": "*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.*\n\nThe 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.\n\nEvery 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.\n\nIf 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.\n\nA 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.\n\n```\n---\nname: done-when\ndescription: \"Turn a task into a loop an agent can finish: write the goal as an end\"\n  state, the check that proves it and the stop condition, as one done-when line on\n  the Linear issue.\ntrack: doctrine\nruntime: [shared]\ntriggers: [done when, make this issue ready, add a stop condition]\n---\n\n# Done-when\n\n## Use it when\n…\n## Steps\n1. Write the goal as an end state. …\n```\n\nTwo 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.\n\nThe 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.\n\nSkills versus rules\n\nA 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.\n\nThe 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:\n\n**One library, linked into every agent home**\n\n- LIBRARY ·\n**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 ·\n**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 ·\n**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 ·\n**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.\n*lit = this step · tap a box · ← → or Play · [Interactive version in the original post](https://agentair.ai/blog/one-library-every-agent)*\n\nOn 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.\n\nEach 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.\n\nThe 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.\n\nTwo details keep this cheap enough to maintain:\n\nAcross 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.\n\nEvery 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.\n\nOne 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.\n\nNothing 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:\n\n`make check` at the source, before any app sees it.\nThe general lesson\n\nWhen 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.\n\nFour parts, one system around the agent:\n\n| Part | The question | The habit | \n|---|---|---|\n| **Context** | What does the agent know before you speak? | One launch folder, a door for every agent, one must-read list | \n| **Loops** | How will it know when to stop? | A done-when line on every unit of work | \n| **Evidence** | How will it prove it's done? | Proof from something the agent didn't write | \n| **Procedure** | What will the next session inherit? | One library of skills, linked into every agent | \n\nNone 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.\n\nOriginally published at [https://agentair.ai/blog/one-library-every-agent](https://agentair.ai/blog/one-library-every-agent).", "url": "https://wpnews.pro/news/one-library-every-agent", "canonical_source": "https://dev.to/gaurav_narasimhan/one-library-every-agent-4bca", "published_at": "2026-12-05 20:08:21+00:00", "updated_at": "2026-12-05 20:14:19.198320+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols"], "entities": ["Claude", "Codex", "Gemini", "Kimi", "Linear"], "also_reported_by": [], "takeaway": "Storing agent instructions as SKILL.md folders with a description field for applicability and a runtime field for distribution, then symlinking them into every agent home, lets one edit propagate to all agents at their next start.", "recommendation": {"advice": "Write recurring lessons as SKILL.md folders with a trigger-and-outcome description and a runtime field, then symlink them into each agent home so every agent inherits the update at next start.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/one-library-every-agent", "markdown": "https://wpnews.pro/news/one-library-every-agent.md", "text": "https://wpnews.pro/news/one-library-every-agent.txt", "jsonld": "https://wpnews.pro/news/one-library-every-agent.jsonld"}}