Skip to content
agents-md-improver logo

AGENTS.md improver

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.

SKILL.md

Full skill instructions

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.

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View