review-agents-md
БесплатноБез исполняемых скриптовНе проверенCreates minimal, effective AGENTS.md files using progressive disclosure. Triggers on "create agents.md", "refactor agents.md", "review my agents.md"…
от richtabor★ 74 звезды на GitHubОб этом скилле
AGENTS.md Skill
Overview
Creates and refactors AGENTS.md files following progressive disclosure principles. Keeps files minimal and focused—avoiding the "ball of mud" that hurts agent performance.
When to Use
- Proactively when a project has no
AGENTS.mdat the root — check for this when starting work in a new project - Creating a new AGENTS.md from scratch
- Refactoring a bloated AGENTS.md
- Reviewing an existing file for best practices
- Setting up AGENTS.md for a monorepo
- When
AGENTS.mdexists butCLAUDE.mdis missing (should be symlinked)
Core Principles
- Minimal by default: Only include what's relevant to every single task
- Progressive disclosure: Point to separate files, external docs, or agent skills for domain-specific rules
- Never document file structure: It goes stale fast and poisons agent context
- Describe capabilities, not locations: "Auth uses JWT" not "Auth is in src/auth/"
The Instruction Budget
Frontier LLMs can follow ~150-200 instructions with reasonable consistency. Every token in AGENTS.md loads on every request, regardless of relevance. The ideal file should be as small as possible.
Why Files Get Bloated
Agent does something wrong → you add a rule → repeat hundreds of times → "ball of mud." Different developers add conflicting opinions. Nobody does a full style pass. Auto-generated files make this worse by prioritizing comprehensiveness over restraint.
Stale Docs Poison Context
Humans can be skeptical of outdated docs. Agents can't — they trust what they read on every request. File paths are especially dangerous since they change constantly. Describe capabilities and domain concepts instead.
Process
Phase 0: Detect Missing Files
Check the project root for AGENTS.md and CLAUDE.md:
- If neither exists, offer to create
AGENTS.mdand symlinkCLAUDE.mdto it - If
AGENTS.mdexists butCLAUDE.mddoes not, create the symlink:ln -s AGENTS.md CLAUDE.md - If
CLAUDE.mdexists butAGENTS.mddoes not, rename it toAGENTS.mdand create a symlink:mv CLAUDE.md AGENTS.md && ln -s AGENTS.md CLAUDE.md - If both exist but
CLAUDE.mdis not a symlink toAGENTS.md, merge any unique content intoAGENTS.md, remove the standaloneCLAUDE.md, and create the symlink
Phase 1: Assess Current State
For new projects:
- Ask about the project's purpose (one sentence)
- Ask about package manager (if not npm)
- Ask about non-standard build commands
For existing files:
- Read the current AGENTS.md
- Count lines and estimate token cost
- Identify content that belongs elsewhere
Phase 2: Apply the Essential Test
Only these belong in root AGENTS.md:
| Include | Why |
|---|---|
| One-sentence project description | Anchors every agent decision |
| Package manager (if not npm) | Prevents wrong commands |
| Non-standard build/test commands | Saves trial and error |
| Links to domain-specific docs | Progressive disclosure |
Everything else goes in separate files or gets deleted.
Phase 3: Identify Anti-Patterns
Flag these for removal or relocation:
- File tree structures: Always go stale, waste tokens
- Obvious instructions: "Write clean code", "Use meaningful names"
- Contradictory rules: Often from multiple contributors
- Language-specific conventions: Move to
docs/TYPESCRIPT.mdetc. - Workflow instructions: Move to
docs/GIT.mdordocs/TESTING.md
Phase 4: Create Progressive Disclosure Structure
For content that shouldn't be deleted:
docs/
├── TYPESCRIPT.md # TS conventions
├── TESTING.md # Test patterns
├── API.md # API design rules
└── GIT.md # Commit/PR conventions
Reference these from AGENTS.md with light-touch pointers. Keep the tone conversational — no "ALWAYS," no all-caps forcing:
For TypeScript conventions, see docs/TYPESCRIPT.md
Each file can reference the next — agents walk the tree on demand, only loading what's relevant.
Link to external docs when they're the authoritative source rather than restating them:
For database migrations, follow the Prisma migration guide.
Agent skills are another layer of progressive disclosure. Instead of embedding procedures in AGENTS.md, package them as skills the agent pulls in when needed. The root file stays focused on what and where; skills handle how.
Phase 5: Handle Monorepos
For monorepos, use nested AGENTS.md files:
Root AGENTS.md:
Monorepo for [purpose]. Uses [pnpm/yarn] workspaces.
See each package's AGENTS.md for specifics.
Package AGENTS.md (e.g., packages/api/AGENTS.md):
GraphQL API using Prisma. See docs/API_CONVENTIONS.md for patterns.
Phase 6: Output
Provide:
- The new/refactored AGENTS.md content
- Any new files created for progressive disclosure
- List of removed content with reasoning
Output Format
When creating a new AGENTS.md:
Установить review-agents-md в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл review-agents-md?
Creates minimal, effective AGENTS.md files using progressive disclosure. Triggers on "create agents.md", "refactor agents.md", "review my agents.md", "claude.md", or questions about agent configuration files. Also triggers proactively when a project is missing AGENTS.md.
Как установить скилл review-agents-md?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-agents-md запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic