# Keep AGENTS.md & Project Docs in Sync with Code

> Your AI agent updates AGENTS.md, CLAUDE.md, README and other docs right after it changes code, so they never go stale.

Keep AGENTS.md & Project Docs in Sync with Code is a free AI agent skill on Agensi by Vivek Dahiya, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vivek Dahiya](https://www.agensi.io/creators/vivek-dahiya)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/keep-agents-md-project-docs-in-sync-with-code
- Tags: coding, documentation

## About this skill

Agent docs like `AGENTS.md` are only useful if they're true. The next agent (or person) trusts them instead of reading the code, so a doc that still names a deleted file or an old command sends them the wrong way.

This skill makes your AI agent check and fix the docs as the last step of every coding task, while it still knows exactly what changed:

1. **Finds the docs**: `AGENTS.md`, `CLAUDE.md`, `README.md`, `CONTRIBUTING.md`, `docs/`, `.cursorrules`, `.github/copilot-instructions.md`, and nested ones in subfolders. It follows any update rules a doc sets for itself.
2. **Reads the real diff** with git, including untracked files, or a commit range you give it (e.g. `HEAD~3..HEAD`).
3. **Finds every claim the change touches**: old names, paths and commands, folder trees, tables, and negative claims like "there is no test script".
4. **Makes the smallest edit** in the doc's own style, and deletes statements that are no longer true.
5. **Checks its work**: no old names left, no broken relative links.
6. **Reports** in one line which docs and sections changed, or why nothing needed to.

It never creates docs nobody asked for, and asks before touching a very large change (50+ files).

## Requires

- Git

## Known limitations

Only updates docs that already exist; it never creates new docs. Needs a git repository to see what changed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Keep AGENTS.md & Project Docs in Sync with Code skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Keep AGENTS.md & Project Docs in Sync with Code do?

Your AI agent updates AGENTS.md, CLAUDE.md, README and other docs right after it changes code, so they never go stale.

### Which AI agents support Keep AGENTS.md & Project Docs in Sync with Code?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Keep AGENTS.md & Project Docs in Sync with Code?

Connect your AI agent to Agensi through MCP, then ask it to use Keep AGENTS.md & Project Docs in Sync with Code on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
