agents-md-improver
Keeps repo-local agent instructions consistent by proposing updates to AGENTS.md when a user corrects the coding agent or asks to change AGENTS.md, CLAUDE.md, .claude/CLAUDE.md, or GEMINI.md.
Best use case
agents-md-improver is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Keeps repo-local agent instructions consistent by proposing updates to AGENTS.md when a user corrects the coding agent or asks to change AGENTS.md, CLAUDE.md, .claude/CLAUDE.md, or GEMINI.md.
Teams using agents-md-improver should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/agents-md-improver/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How agents-md-improver Compares
| Feature / Agent | agents-md-improver | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Keeps repo-local agent instructions consistent by proposing updates to AGENTS.md when a user corrects the coding agent or asks to change AGENTS.md, CLAUDE.md, .claude/CLAUDE.md, or GEMINI.md.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# AGENTS.md improver
This skill helps keep repository instructions accurate and consistent. When a user corrects the coding agent's behavior, treat it as a potential update to the repo's instruction files and propose a clean, integrated edit to `AGENTS.md`.
## Usage
Use this skill anytime the user:
- Corrects the agent ("don't do X", "do Y instead", "from now on...").
- Asks to update instruction files like `AGENTS.md`, `CLAUDE.md`, `.claude/CLAUDE.md`, or `GEMINI.md`.
- Notices contradictions between instructions.
## Requirements
- Repo-local file access to read and edit `AGENTS.md`.
- If present in the repo, read access to `CLAUDE.md` and/or `.claude/CLAUDE.md`.
## What It Does
- Proposes a patch to incorporate the user's correction into `AGENTS.md` seamlessly.
- Looks for contradictions and resolves them in the proposal (or asks for clarification when needed).
- If repo-local `CLAUDE.md` or `.claude/CLAUDE.md` exists, proposes consolidating instructions into `AGENTS.md`, then offers follow-up options to delete, symlink, or stub those files.
## How It Works
### Scope
This skill is repo-specific.
- Only consider repo-local instruction files:
- `AGENTS.md`
- `CLAUDE.md` (repo root)
- `.claude/CLAUDE.md`
- `GEMINI.md` (repo root and/or repo subdirectories if present)
- Ignore system-wide instructions and files under the user's home directory (for example `~/.claude/`, `~/.gemini/`, `~/.config/`, etc.).
### Propose-first workflow (do not auto-edit)
1. Read `AGENTS.md`.
2. Identify the user's correction and translate it into a durable, repo-specific instruction.
3. Decide where it belongs:
- Prefer editing the most relevant existing section.
- If it introduces a genuinely new topic, propose a new `##` section near related content.
4. Draft the exact text change(s) as a small patch/snippet.
5. Ask for confirmation before applying:
- "Apply these changes to `AGENTS.md`? (y/n)"
Only apply edits after the user confirms.
### Seamless integration rules
- Do not add dated changelog entries like "YYYY-MM-DD: correction".
- Update the existing prose/bullets/steps so the rule reads like it has always been part of the document.
- Keep formatting consistent with the surrounding `AGENTS.md` style.
### Contradiction checks
Before proposing a patch:
1. Scan `AGENTS.md` for conflicts with the new correction.
2. If a conflict exists, include conflict resolution in the proposed patch by rewriting/removing the conflicting lines.
3. If resolution is ambiguous, ask a single targeted question before proposing a patch.
Then scan repo-local guidance (if present):
- Compare `AGENTS.md` against `CLAUDE.md` and `.claude/CLAUDE.md`.
- Flag duplication and conflicts.
- Prefer consolidating into `AGENTS.md` as the canonical source of truth.
### Consolidation flow for CLAUDE.md files (if present)
If `CLAUDE.md` and/or `.claude/CLAUDE.md` exists in the repo:
1. Propose a consolidation patch to `AGENTS.md`.
2. After the user approves the `AGENTS.md` patch, propose what to do for each CLAUDE file:
- Delete the file.
- Replace the file with a symlink pointing to `AGENTS.md`.
- Replace the file contents with a small stub that points humans/tools to `AGENTS.md` (fallback when symlinks are undesirable).
3. Confirm destructive actions (deletes) in a separate prompt.
Symlink directions (when chosen):
- `CLAUDE.md` -> `AGENTS.md`
- `.claude/CLAUDE.md` -> `../AGENTS.md`
### Notes for multi-instruction environments
Some harnesses merge multiple instruction sources and may apply conflicting rules non-deterministically. Prefer a single canonical source (`AGENTS.md`) and reduce parallel instruction files via consolidation + delete/symlink/stub.Related Skills
manage-agents
Create, modify, and manage Claude Code subagents with specialized expertise. Use when you need to "work with agents", "create an agent", "modify an agent", "set up a specialist", "I need an agent for [task]", or "agent to handle [domain]". Covers agent file format, YAML frontmatter, system prompts, tool restrictions, MCP integration, model selection, and testing.
langchain-agents
Expert guidance for building LangChain agents with proper tool binding, memory, and configuration. Use when creating agents, configuring models, or setting up tool integrations in LangConfig.
kramme:agents-md
This skill should be used when the user asks to "update AGENTS.md", "add to AGENTS.md", "maintain agent docs", or needs to add guidelines to agent instructions. Guides discovery of local skills and enforces structured, keyword-based documentation style.
git-commit-for-ai-agents
Commit changes to a git repository. Use whenever a git commit is to be executed.
dispatching-parallel-agents
Use when facing 3+ independent failures that can be investigated without shared state or dependencies. Dispatches multiple Claude agents to investigate and fix independent problems concurrently.
custom-sub-agents
Guidance for creating and organizing custom sub-agents in local repos, including folder conventions, per-agent structure, and AGENTS.md indexing. Use when asked where to store sub-agents or how to document them.
custom-agents
GitHub Custom Agent File Format
creating-agents
Create and review agent definition files (agents.md) that give AI coding agents a clear persona, project knowledge, executable commands, code style examples, and explicit boundaries. Use when a user asks to create an agent, define an agent persona, write an agents.md file, set up a custom Copilot agent, review an existing agent definition, or improve agent quality. Covers the six core areas: commands, testing, project structure, code style, git workflow, and boundaries.
create-agents-md
Create or rewrite AGENTS.md files for Open Mercato packages and modules. Use this skill when adding a new package, creating a new module, or when an existing AGENTS.md needs to be created or refactored. Ensures prescriptive tone, MUST rules, checklists, and consistent structure across all agent guidelines.
building-agents
Expert at creating and modifying Claude Code agents (subagents). Auto-invokes when the user wants to create, update, modify, enhance, validate, or standardize agents, or when modifying agent YAML frontmatter fields (especially 'model', 'tools', 'description'), needs help designing agent architecture, or wants to understand agent capabilities. Also auto-invokes proactively when Claude is about to write agent files (*/agents/*.md), create modular agent architectures, or implement tasks that involve creating agent components.
audit-agents-md
Audit AGENTS.md files for token efficiency, completeness, scope hygiene, and actionability. Also considers skills and Cursor rules for redundancy. Use when the user wants to review, optimize, or restructure project agent instructions.
ai-coding-agents
Comprehensive guide for using Codex CLI (OpenAI) and Claude Code CLI (Anthropic) - AI-powered coding agents. Use when orchestrating CLI commands, automating tasks, configuring agents, or troubleshooting issues.