agent-md-advisor

Reviews, diagnoses, and creates AGENTS.md and CLAUDE.md agent instruction files.

733|99|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/chujianyun/skills --skill agent-md-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-md-advisor
Source: https://github.com/chujianyun/skills/tree/main/skills/review/agent-md-advisor
Command: npx skills add https://github.com/chujianyun/skills --skill agent-md-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI coding agents often receive bloated, vague, or misconfigured instruction files like AGENTS.md and CLAUDE.md, which reduces their reliability. This Skill answers best-practice questions, diagnoses existing files against a structured rubric, and rewrites or creates concise, project-specific instruction files.

Core Features & Use Cases

  • Best-Practice Advisory: Answers questions about format, structure, layering (global/project/local), and what belongs in AGENTS.md versus CLAUDE.md.
  • Structured Diagnosis: Scores existing files with a 0-27 rubric across scope, signal, commands, safety, and maintenance, assigning an L0-L6 maturity level with prioritized fixes.
  • Rewrite and Creation: Optimizes bloated files or generates new ones from minimal and full templates, including monorepo nested-file patterns.
  • Use Case: A team has a 400-line CLAUDE.md full of generic advice. The Skill diagnoses it as needing restructuring, trims it to under 120 lines with verified commands, and moves long content into referenced docs.

Quick Start

Ask the agent to review your AGENTS.md and CLAUDE.md against best practices and suggest focused improvements.

Frequently Asked Questions about agent-md-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a good CLAUDE.md file for Claude Code?

A good CLAUDE.md is a short technical brief of 80-120 lines covering project context, exact commands, architecture map, critical rules, and safety boundaries. Avoid persona prompts, generic advice, and pasted documentation; every line should prevent a concrete agent mistake.

What is the difference between AGENTS.md and CLAUDE.md?

AGENTS.md is a tool-neutral standard for cross-tool AI coding instructions, while CLAUDE.md is Claude Code project memory. For multiple tools, use AGENTS.md as the source of truth and add CLAUDE.md or a symlink only when tooling requires it.

How long should an AGENTS.md file be?

AGENTS.md should stay under 150 lines, and CLAUDE.md ideally 80-120 lines with 200 as a soft ceiling. Files over 300 lines should be split into referenced docs, nested files, or rules using progressive disclosure.

Should I put personal preferences in a shared CLAUDE.md?

No. Keep personal habits and machine-specific settings in CLAUDE.local.md or user-level memory. Shared CLAUDE.md files should contain only stable project facts like commands, architecture, and team-wide constraints.

Why does my AI agent ignore rules in CLAUDE.md?

Long files with generic or low-signal content reduce instruction-following reliability. Trim obvious rules, reserve MUST/MUST NOT for under 15 critical constraints, and verify that commands match real project scripts.