Keeps your AGENTS.md files lean and up to date across monorepos and nested modules. It reads your package manifests, Makefiles, and CI configs to infer real commands instead of inventing them, then generates or repairs both root and module-level agent instructions while staying under 60 and 40 lines respectively. The progressive disclosure approach pushes detail into docs and skills rather than bloating the instructions. Handles the annoying bits like detecting module boundaries, preserving security warnings from existing files, and adapting skill references based on whether you have a local skill directory or rely on external ones. Useful when your agent context is missing, contradictory, or sprawling across a growing codebase.
npx -y skills add madteacher/mad-agents-skills --skill agents-md-generator --agent claude-codeInstalls into .claude/skills of the current project.
Maintain small, high-signal AGENTS.md files:
Use progressive disclosure: keep AGENTS.md concise; push details to docs or skills.
.agents/ or any fixed directory exists.Use templates as skeletons, not literal output:
references/AGENTS_TEMPLATE_ROOT.md only when creating or updating the
root AGENTS.md.references/AGENTS_TEMPLATE_MODULE.md only after a directory is
confirmed as a nested module that needs its own AGENTS.md.AGENTS.md files must not contain
unresolved <...> template markers.Run this skill when:
package.json, pnpm-workspace.yamlgo.mod, go.workpyproject.tomlCargo.tomlpubspec.yamlpom.xml, build.gradledocs/, README.md, existing AGENTS.md.Create nested AGENTS.md if directory:
apps/, services/, packages/)Do not create a nested AGENTS.md that only repeats the root instructions.
Constraints:
AGENTS.md.Constraints:
AGENTS.md.Create or update only:
<repo_root>/AGENTS.md<module_dir>/AGENTS.mdDo not create agent configuration folders.
When adding skill references inside AGENTS.md:
If local skill directory detected
See: <detected-skill-root>/<skill-name>/SKILL.md
If no local directory exists
Skill: agents-md-generator (external)
Never assume filesystem paths.
Before finishing, verify:
AGENTS.md files were created or updated.AGENTS.md files contain no unresolved <...> placeholders.Known commands: see <existing file>.AGENTS.md files are preserved.sickn33/antigravity-awesome-skills
rohitg00/pro-workflow
supercent-io/skills-template