/generate-agents-md:generate-agents-md [path/to/repo] [--output PATH] [--update] [--force] [--rules] [--dry-run]from generate-agents-md
Generates a lean, high-signal CLAUDE.md for a repository from codebase analysis, following Anthropic best practices. Bundles a validator that enforces critical checks.
Ships in generate-agents-md. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Build a project-specific CLAUDE.md that earns every line: exact commands, an
architecture map, real gotchas, and enforced boundaries — and nothing Claude
already knows. The goal is the inverse of naive /init output: short, specific,
and free of README duplication, directory trees, and generic filler.
This skill is the generator counterpart to the review-agents-md plugin. It
targets the same rubric the reviewer audits against. The bundled validator
(Phase 7) deterministically gates the mechanical checks — commands present,
length, no README duplication, no generic advice, no directory tree, bullets —
which are all of the reviewer's Critical checks, so a passing file cannot earn a
review FAIL verdict. The remaining quality (architecture as relationships, domain
mapping, real gotchas, style deltas) is your job during synthesis. Read
references/principles.md in full before synthesizing —
it is the source of truth for every rule below.
Not for auditing an existing CLAUDE.md against a checklist (that is
review-agents-md) or for generic markdown authoring.
Before taking any action, read references/workflow.md completely. It is the authoritative procedure and preserves every platform fallback, decision rule, template, command, validation step, and output contract. Follow its sections in order and load the deeper references it names only at their stated gates.
Paths in the workflow are relative to this skill directory. When a named tool, agent, or interaction primitive is unavailable, use the workflow's compatibility fallback; never silently skip the behavior.
Invocation arguments: $ARGUMENTS
These are the repo root and flags the user gave on invocation. The workflow reads them from here, not from its own text. If the line above is empty or still shows the literal placeholder, the client passed none: take the same values from the user's request.
agents/openai.yaml (opens in a new tab)references/example.md (opens in a new tab)references/modularization.md (opens in a new tab)references/principles.md (opens in a new tab)references/scan-spec.md (opens in a new tab)references/section-guide.md (opens in a new tab)references/workflow.md (opens in a new tab)scripts/validate-claude-md.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundOther plugins' skills for the same job
npx claudepluginhub smykla-skalski/sai --plugin generate-agents-md