agents-md
БесплатноБез исполняемых скриптовНе проверенAudits and edits agent instruction files, verifies repository commands, and migrates repositories to AGENTS.md as the single shared source. Use when asked to…
от mblode★ 230 звёзд на GitHubОб этом скилле
AGENTS.md Setup and Audit
- IS: wiring a repo so every agent tool in use reads the same rules, then auditing, scoring, refactoring, and writing the AGENTS.md / CLAUDE.md / CLAUDE.local.md files agents load at session start.
- IS NOT: authoring SKILL.md files (use
agent-skills-creator), project docs or READMEs (useghostwriter), or mining session history (use the externalcadence-adviseskill where installed; this skill audits the file as-is).
AGENTS.md files are execution contracts, not knowledge bases. Two tests catch the two ways a line fails.
- Dead weight: "Would removing this cause the agent to make a mistake?" If no, cut it; bloat makes agents ignore the rules that matter.
- Harmful precision: "Is this wrong on any plausible task in this repo?" A prohibition that is wrong one task in ten is still obeyed on that task, and the agent cannot tell that this is the exception. State the outcome you want and let the surrounding code pick the path.
NEVER write commentsbecomesmatch the comment density of the file you are editing: shorter, no exception list to maintain, and correct in a densely commented file without being told.
Absolutes still earn their place for safety, data loss, format contracts, and rules this repo's agents have actually been observed to break.
AGENTS.md is the tool-agnostic source of truth. Claude Code's built-in agents-md mod supports it directly. Use AGENTS.md at the root and in scoped subdirectories, without CLAUDE.md wrappers or symlinks. The default claude-md-or-agents-md mode yields when project Claude instruction files exist on the root-to-working-directory path; see references/project-setup.md for migration, settings, and loader limits. Preserve unique instructions before removing old files. User-level and managed Claude files are separate from repository migration.
Choose a Mode
- Repo has no agent instructions, or targets a tool it is not wired for -> Setup:
references/project-setup.mddecides which files exist and which tool reads each one, then Writing From Scratch below fills the root file, then Audit scores it. - A file exists and the question is quality -> Audit, below.
- A file exists and is over the Size Budget below, stale, or scored badly -> Refactor,
references/refactor-workflow.md.
Size Budget
Instruction files load into every session, so each line is paid on every task, and they grow by accretion: every change adds a line and none removes one. This section owns the numbers; other files point here.
| What | Budget | Ceiling |
|---|---|---|
Root AGENTS.md |
150 lines (60-150 for an active app repo) | 200 lines, Claude Code's stated limit |
| Project instruction files on the path from root to a launch directory, together | 16 KiB | 32 KiB, where Codex stops adding files (project_doc_max_bytes) |
Codex reads root first, so half its ceiling leaves room for the nested files between root and the launch directory, which a full root crowds out silently. Measure in every mode, before and after editing:
# Lines per instruction file
find . \( -name AGENTS.md -o -name AGENTS.override.md \) -not -path '*/node_modules/*' -exec wc -l {} +
# Bytes on one launch path: run once per directory agents start in (root, and each package)
d=<launch-dir relative to root>; while :; do f=$d/AGENTS.override.md; [ -f "$f" ] || f=$d/AGENTS.md; [ -f "$f" ] && echo "$f"; [ "$d" = . ] || [ "$d" = / ] && break; d=$(dirname "$d"); done | xargs wc -c
# Project skill descriptions, per tool (Claude Code reads .claude/skills, Codex reads .agents/skills)
for d in .claude/skills .agents/skills; do [ -d "$d" ] || continue; printf '%s: ' "$d"; awk 'FNR==1{f=0;d=0} /^---$/{f++;next} f!=1{next} /^[A-Za-z_-]+:/{d=/^description:/} d' "$d"/*/SKILL.md | wc -c; done
The last command is the other always-loaded cost: every project skill's description sits in every session of the tool that reads that folder. Report it per tool beside the file sizes, and treat a set of project skills that duplicates root, or whose descriptions would claim most prompts, as bloat on the same footing as a long root file.
Holding the budget:
- At or over budget, adding a line means removing or moving one. The commit or PR that adds it names the line it replaced, or where that line moved.
- When a rule changes, rewrite it where it stands. A dated change note, an "Update:" paragraph, or a "previously" note leaves both versions in the file, and agents follow whichever they read first. History lives in git. A date or version that limits when a rule applies ("on Node 22 and later") stays.
- Over a ceiling, Refactor is the top finding: apply it when the request allows edits, otherwise propose it as the first diff.
Reference Files
| File | Read when |
|---|---|
references/project-setup.md |
Setting a repo up for Claude Code, Codex, and Cursor; deciding which files exist and what each tool actually loads |
| `references/quick-checklist |
Установить agents-md в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agents-md?
Audits and edits agent instruction files, verifies repository commands, and migrates repositories to AGENTS.md as the single shared source. Use when asked to "improve my AGENTS.md", "migrate CLAUDE.md to AGENTS.md", or make instructions work across agents.
Как установить скилл agents-md?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agents-md запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic