A skill, not a server: how your agent edits content
Nov 12, 2026, 4:00 AM · 4 min read

When a coding agent edits content, it needs three things: the rules of your content, a way to check its work, and limits on what it may publish. Editlet gives it all three as files in the npm package. There is no server for the agent to call, no database and no API key. This post explains why, and what it costs.
What the agent gets
The package ships three skills. A skill is a folder with a SKILL.md file of instructions, reference pages and
scripts. Claude Code reads it from .claude/skills/, and other agents read it from .agents/skills/.
editletedits content and the schema, validates, and publishes through a pull request.editlet-setupinstalls Editlet, sets up the live site and finds what is broken.editlet-migratemoves existing Markdown or MDX content into Editlet.
One command links them into your project:
node node_modules/editlet/skills/editlet/scripts/link.mjs --hooksThe agent loads a skill only when the task needs it, and reads a reference page only for that part of the task.
The main editlet skill is about 1,100 words.
The same rules as the editor
The agent's scripts are built from the same code as the editor and the framework adapters. validate.mjs checks the
schema and every entry, with references and images. The editor runs the same check before it saves. next build
runs it too. So an entry the agent wrote cannot pass in one place and fail in another.
The agent works in a loop: it reads cms/schema.json, tells you which files it will change, edits them and runs
validate until it passes. If your dev server runs, it opens the changed entry with ?editlet, so you can look at
it on the real page.
Changes that can lose data go slowly
Renaming a field or removing an entry can break other entries. For these the scripts start with a dry run:
node .claude/skills/editlet/scripts/schema.mjs remove-field post subtitleThe dry run lists every entry it would touch and every value it would drop. Nothing changes until the agent runs the
same command with --apply, and the skill tells it to ask you first.
A guard that does not trust the agent
Instructions are not enough, so link.mjs --hooks also adds a Claude Code hook. It checks every shell command the
agent runs:
- A push to
main,masteror your base branch is blocked. - A commit while
validatefails is blocked. gh pr merge --adminand changes to branch protection are blocked.- Any other merge asks you first.
The hook cannot see commands hidden inside scripts. That is why the real lock is GitHub's branch protection on the base branch: it applies to the agent, the editor and you alike.
Why not a server
A server for the agent, such as an MCP server, is the common answer. We chose files instead, for four reasons.
- Nothing to run. There is no process to host, update or keep alive, and no port to secure.
- Nothing to leak. The agent uses your own
gitandgh. There is no extra API key in your shell or your CI. - It changes with your code. The skills are part of the package version in your lockfile. An upgrade updates the rules and the code together.
- You can read it. The instructions are Markdown in
node_modules. You can see exactly what the agent was told.
What it costs
Files have limits too, and you should know them.
- The hook is Claude Code's. Other agents get the skills, but not the guard. Protect the base branch on GitHub in any case.
- Instructions are not code. An agent can still misread a skill. The scripts, the hook and the pull request are there because of that.
- Every task spends tokens. The agent reads the skill and the schema before it edits. For a few changes a week that is small. For hundreds of edits a day, the editor is cheaper.
The agent skills docs list every script and every rule of the guard.