write-agents-md
FreeNo executable scriptsNot checkedDraft a short, accurate AGENTS.md (and a CLAUDE.md bridge) for a repository from evidence in the repo. Use when a project has no agent instructions, or when…
by aiskillstore★ 509 GitHub starsAbout this skill
Write an AGENTS.md from evidence
Goal: a file under about 100 lines that tells a coding agent how to run, test and change this repo, using only facts you verified. Unknown beats invented.
Gather evidence first (read, do not guess)
README*,CONTRIBUTING*, anydocs/index.- Manifests and task runners:
package.jsonscripts,Makefile,justfile,pyproject.toml,Cargo.toml,go.mod,*.csproj,project.godot. - CI config (
.github/workflows/*,.gitlab-ci.yml): the commands CI runs are the commands that must pass. - Lint, format and type-check config (
.eslintrc*,ruff.toml,.editorconfig,tsconfig.json). - Directory layout, two levels deep, ignoring
node_modules,.git, build output. - Existing instruction files (
CLAUDE.md,.cursor/rules,.github/copilot-instructions.md). Merge, do not duplicate.
Write the file
Use references/template.md as the skeleton. Rules:
- Commands first. Exact commands to install, run, test one file, run the full suite, lint, build. Copy them from the manifests; run the safe ones to confirm.
- Only what the agent cannot infer. Skip "this is a Next.js app" if
package.jsonsays so. Keep: unusual conventions, forbidden areas, generated files, required env setup. - Make each rule testable. "Run
npm run lintbefore finishing" not "keep code clean". - Boundaries section. Files and directories never to edit by hand (generated code, lockfiles, vendored code), and actions that need approval (migrations, deploys, deleting data, force-push).
- Unknowns. Where evidence is missing, write
TODO(owner): <question>instead of guessing, and list the TODOs in your final message. - No secrets, no personal paths, no links you did not open.
Bridge for other tools
- Claude Code reads
CLAUDE.md, notAGENTS.md. If noCLAUDE.mdexists, create one containing only@AGENTS.mdso both stay in sync (Claude Code supports@pathimports). If one exists, add that import line at the top and remove duplicated content. - Cursor, GitHub Copilot, Codex and others read
AGENTS.mddirectly or via their own files; do not copy the content into several places.
Verify before finishing
- Run each command you documented (skip destructive ones, say so).
- Check every path exists.
- Count lines. If over about 100, move scoped rules to nested
AGENTS.mdfiles or tool-specific rule files. - Show the user the file and the TODO list. Do not commit unless asked.
Install write-agents-md in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the write-agents-md skill do?
Draft a short, accurate AGENTS.md (and a CLAUDE.md bridge) for a repository from evidence in the repo. Use when a project has no agent instructions, or when asked to create or rewrite AGENTS.md.
How do I install the write-agents-md skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the write-agents-md skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic