update-agents-md
Skill8 starsChanged 3 months agoMITView on GitHub
Generate or refresh a repo's AGENTS.md (the source-of-truth agent context file) and its one-line CLAUDE.md pointer. Use when the user says 'update the claude.md', 'update AGENTS.md', 'analyze this project and update the context file', 'write an AGENTS.md', or after a stack/structure change makes the current file stale.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- zkmake/skillstheir own version, first seen Oct 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- zkmake/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- autonomous-maintainerSkill
- commitSkill
- competitive-ads-extractorSkill
- compress-skillsSkill
- extract-design-systemSkill
- fix-ciSkill
- flesch-kincaid-proofreaderSkill
- frontendSkill
- get-pr-commentsSkill
- gogSkill
- posthogSkill
- shipSkill
- signoz-investigating-alertsSkill
- teachSkill
- thermo-nuclear-code-quality-reviewSkill
- visualizeSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Never document a path or pattern you haven't verified in the tree (e.g.
- Distinctive: line 43
No license boilerplate, no table of contents, no "this file provides guidance" preamble.
- Very specific: line 44
Leave committing/PRs to the commit / ship skills.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Update AGENTS.md
This skill follows a two-file convention: AGENTS.md is the single source of truth, and CLAUDE.md is a one-line pointer containing exactly @AGENTS.md. pi reads AGENTS.md directly; Claude Code reads CLAUDE.md, which imports it. Maintain AGENTS.md — never duplicate content across the two files.
Steps
- Ground yourself in the repo — don't invent:
- Stack: read
package.json(dependencies +scripts), the lockfile (bun/pnpm/npm — tells you the package manager), framework config,tsconfig, and linter/formatter config. - Layout: list the real top-level and
src/dirs; open a few to learn what each actually holds. - Conventions: infer from existing code — import alias, state/data libraries, auth, testing, formatting — and cite real paths.
- Stack: read
- Write/refresh
AGENTS.mdusing the skeleton below. Keep it dense and specific: every line should save an agent a lookup. No filler, no restating generic framework docs. - Ensure
CLAUDE.mdis exactly@AGENTS.md(create or replace). If CLAUDE.md already holds real content and there's no AGENTS.md, migrate that content into AGENTS.md first, then reduce CLAUDE.md to the one-line pointer. - Preserve tool-managed blocks verbatim — e.g.
<!-- BEGIN:nextjs-agent-rules -->…<!-- END:nextjs-agent-rules -->is rewritten bynext dev. Keep it in place and commit it with your changes (removing it only re-creates an uncommitted diff).
Section skeleton (AGENTS.md)
## Stack
- framework + versions, package manager, db/orm, auth, styling, state, lint/format — one bullet each, real versions
## Repo Layout
- `dir/` — what lives here and the one rule an agent must know (cite real paths)
## Runtime Patterns
- how requests / data / sessions actually flow; the non-obvious wiring
## Conventions
- import alias, where to add X before creating new, naming, do / don't
## Agent Behavior
- repo-specific rules: what to run before committing, what never to touch, gotchasGuardrails
- Match the terseness of the repo's existing AGENTS.md files (~40–110 lines). If it's growing long, cut — link to code instead of explaining it.
- Never document a path or pattern you haven't verified in the tree (e.g. don't reference an old
sessions.tsif the code now lives insrc/lib/sessions/). - No license boilerplate, no table of contents, no "this file provides guidance" preamble.
- Leave committing/PRs to the
commit/shipskills.
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.

