/skills:writing-agents-mdfrom skills
What goes in a project's AGENTS.md or CLAUDE.md, what goes elsewhere, and how the file is laid out. Load BEFORE creating, restructuring or adding a section to one.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
AGENTS.md is loaded into every session in the repository, whatever the task. Each line is paid for in every session and competes with every other line for attention. A line earns its place when most sessions need it, or when missing it causes a failure nobody would see.
Write each line with writing-rules. This skill decides which lines exist and
where they live.
writing-pull-requests before
gh pr create. A session whose task never matches a skill's description still
loads it from here.Use the section headings the skills' READMEs give, such as ## Checks and
## Silent failures. The skills read the file by heading.
| Content | Its home |
|---|---|
| A rule for one area of the code | A rule file in .claude/rules/ with paths |
| A method: how to split pull requests, cut a release, write a commit | The skill that does that job |
| A rule copied unchanged into several repositories | A skill |
| A product decision | The spec that argues for it |
| Something learned by building | A note in docs/notes/ |
| The current state: which release, what exists so far | Issues and milestones |
| A rule a check can enforce | The check, with a one-line pointer here |
| How to edit this file | This skill |
| The argument for a rule | The pull request that added it |
Leave out what the agent finds by looking: the directory tree, what a file holds, how a tool or a header format works, what the code already shows. An overview of the codebase does not help an agent find files faster.
AGENTS.md holds the content and CLAUDE.md holds the single
line @AGENTS.md, so Claude Code and every other agent read the same rules..claude/rules/
itself. Other agents need the command that lists them.Write it by hand from what the project needs, not from /init or another
generator. Generated files describe the repository, which the agent can read
for itself. Start with the checks and the skills, and add a line each time an
agent gets something wrong that a line would have prevented.
For each section, ask which sessions need it. If the answer is "only the ones touching one area" or "only the ones doing one job", move it to that area's rule file or that job's skill, and leave a pointer only if nothing else would load it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jacygao/skills --plugin skills12 skills in this plugin
/cutting-releasesFor a project that has shipped and tracks releases in GitHub milestones. How a release's GitHub milestone becomes a version bump, a tag and a GitHub Release. Load BEFORE cutting a release./executing-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a planned milestone's issue tree yields the issues ready to work, which working-issues then dispatches. Load BEFORE executing a milestone./planning-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a named milestone there becomes an epic issue and one sub-issue per subtask. Load BEFORE planning a milestone or filing its issues./triaging-issuesFor a project that has shipped and tracks releases in GitHub milestones. How open GitHub issues get a priority and a release milestone, and how a release's issues are made small enough for one pull request each. Load BEFORE triaging issues or planning a release./working-issuesHow GitHub issues become worktrees, subagent briefs, and verified pull requests — one issue, or every ready issue in a milestone. Load BEFORE dispatching implementation work to subagents./writing-issuesHow a GitHub issue is written. Load BEFORE running gh issue create.