Skip to content
Skill

Agents md

Proposes short, durable additions to AGENTS.md and CLAUDE.md files after a lesson is

Agents md is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
39
Last commit
License
MIT
Listing updated

Similar skills

About Agents md

This skill reviews the agent instruction files in a project, including AGENTS.md, CLAUDE.md and local variants, and suggests small additions that capture lessons a future agent would be unlikely to infer on its own. It is meant to be used right after a non-obvious discovery, so the lesson can be recorded for later sessions.

The workflow starts by reading the applicable instruction files. The agent then filters for guidance that is specific and reusable, and defaults to proposing a single line, with up to five lines only when a larger addition is really needed. The output names the target file and shows the proposed text. The skill does not edit files unless the user asks it to, and it reports when nothing qualifies.

The skill is a single SKILL.md with no scripts or reference files. It works from the repository's existing instruction files and needs no external tools or services.

When your agent uses it

Reviews AGENTS.md, CLAUDE.md, and local variants and proposes tiny, durable additions. Use after discovering a non-obvious lesson a future agent should know.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (491 bytes) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/agents-md to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agents-md &&
cp -R "$tmp/built/ai-agents/ampcode/skills/agents-md" ~/.claude/skills/agents-md &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/agents-md inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/agents-md to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agents-md &&
cp -R "$tmp/built/ai-agents/ampcode/skills/agents-md" ~/.agents/skills/agents-md &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/agents-md inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/agents-md to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agents-md &&
cp -R "$tmp/built/ai-agents/ampcode/skills/agents-md" ~/.cursor/skills/agents-md &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/agents-md inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/ampcode/skills/agents-md

Or copy the folder to ~/.gemini/skills/agents-md yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agents-md:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agents-md &&
cp -R "$tmp/built/ai-agents/ampcode/skills/agents-md" ~/.copilot/skills/agents-md &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/agents-md inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/richardgill/nix.git

Then copy nix/built/ai-agents/ampcode/skills/agents-md into your agent's skills folder as agents-md. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Instruction file review
Reads AGENTS.md, CLAUDE.md and local variants before suggesting any change.
Minimal additions
Favors one added line and allows up to five only when necessary.
Filtering for reusable lessons
Keeps only non-obvious guidance that a future agent could not infer.
Proposal without edits
Shows the target file and proposed text, and leaves files untouched unless asked.
No-change outcome
States clearly when no addition qualifies.

Good for

  • Record a non-obvious build or test quirk in AGENTS.md
  • Add a project convention that an agent got wrong during a session
  • Update CLAUDE.md with a lesson learned from a debugging session
  • Check whether existing agent instructions already cover a new finding

Agents md FAQ

Does Agents md edit my instruction files automatically?

No. It shows the target file and proposed text and only edits when you ask it to.

How much text does Agents md add?

It defaults to one line and uses up to five lines only when necessary.

Which files does Agents md look at?

AGENTS.md, CLAUDE.md and their local variants.

Does Agents md need any scripts or external tools?

No scripts or reference files are included; it is a single SKILL.md.

How do I install Agents md in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agents-md to use it in all your projects, or to .claude/skills/agents-md in one project.

Does Agents md run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Agents md?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Agents md?

The closest alternatives to Agents md are Agents md, Agents md improver, Writing agents, Wiki agents md and Agents md.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from richardgill/nix

  1. Updates NixOS flake.lock to newest input commits without changing the release

    • Open source
    • 39 GitHub stars
    • Developer tools
  2. Guides an agent through upgrading a NixOS flake to a new stable release

    • Open source
    • 39 GitHub stars
    • Developer tools
  3. Lets your agent drive a browser: open pages, read elements, fill forms and capture results

    • Open source
    • 39 GitHub stars
    • Browser automation
  4. Builds a JSON-driven guided code tour and opens it in your running Neovim

    • Open source
    • 39 GitHub stars
    • Developer tools
  5. Shows all uncommitted git changes, staged, unstaged and untracked, in one view

    • Open source
    • 39 GitHub stars
    • Developer tools
  6. Guides an agent through creating, editing, syncing and merging stacked GitHub pull

    • Open source
    • 39 GitHub stars
    • Developer tools