agents-md-generator
Create or update minimal AGENTS.md files in the repository root and nested module directories using progressive disclosure. Works across heterogeneous projects without assuming any fixed agent folder structure.
npx skills add majiayu000/claude-skill-registry --skill agents-md-generator-madteacher-mad-agents-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# AGENTS.md Generator (Root + Nested, Portable) ## Goal Maintain small, high-signal AGENTS.md files: - Root AGENTS.md — purpose of repository, navigation, universal toolchain, canonical commands, links to docs and skills. - Nested AGENTS.md — module/package purpose, local commands, module references. Use **progressive disclosure**: keep AGENTS.md concise; push details to docs or skills. --- ## Skill location (agent-specific) - **Do NOT assume `.agents/` or any fixed directory exists.** - Skills may live: - inside the repository (embedded), - or in an external/global skill library (external). - If referencing local skills, first detect an existing skill root already used by the project. - If no local skill directory exists — **reference skills by name only (external)**. - **Never create hidden agent directories** just to store skills. --- ## When to run Run this skill when: - AGENTS.md is missing, bloated, contradictory, or outdated. - A new package/service/module appears. - Repository structure changes (monorepo growth or split). - Teams want consistent agent context across diverse stacks. --- ## Workflow (Deterministic) ### 1. Discover repository shape - Identify repository root (
- Goal
- Skill location (agent-specific)
- When to run
- Workflow (Deterministic)
- 1. Discover repository shape
- 2. Detect module boundaries
- 3. Generate/Update Root AGENTS.md
- 4. Generate/Update Nested AGENTS.md
- 5. Progressive Disclosure Rules
- 6. Safety / Correctness Gates
- Output Contract
- Skill Referencing Strategy
What does the agents-md-generator skill do?
Create or update minimal AGENTS.md files in the repository root and nested module directories using progressive disclosure. Works across heterogeneous projects without assuming any fixed agent folder structure.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agents-md-generator-madteacher-mad-agents-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
