agents-md-generator

Generate hierarchical AGENTS.md root and per-package templates for monorepos.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill agents-md-generator-h4v1d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-md-generator
Source: https://github.com/h4v1d/extension-collection-geminicli/tree/main/agents-md-generator
Command: npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill agents-md-generator-h4v1d

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams structure AI-friendly project documentation by creating a lightweight root AGENTS.md plus detailed per-package templates, enabling fast onboarding of AI agents and scalable documentation patterns.

Core Features & Use Cases

  • Root + Sub-Package Templates: Generates a concise root AGENTS.md with links to per-package AGENTS.md files.
  • Nearest-Wins Hierarchy: Encourages placement of AGENTS.md near the edited files to reduce context drift.
  • JIT Indexing & Examples: Produces path-globs and command hints without embedding full content, plus concrete file paths for quick reference.
  • Use Case: Ideal when documenting large monorepos or multi-package projects to guide AI agents and humans.

Quick Start

To generate the AGENTS.md structure for your repository, tell the assistant: "generate AGENTS.md for this project" and specify the repository root.

Frequently Asked Questions about agents-md-generator

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

FAQPage Schema
What is AGENTS.md and how does it help with AI-assisted codebase documentation?

AGENTS.md provides hierarchical documentation for AI agents, creating a lightweight root file plus per-package templates. It structures path-globs and command hints to reduce context drift, enabling fast onboarding of AI agents in monorepos.

How do I generate AGENTS.md files for a multi-package monorepo?

To generate AGENTS.md structures for a codebase, instruct the assistant to generate AGENTS.md for the project and specify the repository root. The Skill creates root and per-package templates with concrete file paths and JIT hints.

Can I use nearest-wins hierarchy to manage context drift in AI-assisted codebases?

Yes, the nearest-wins hierarchy encourages placing AGENTS.md files near edited files to reduce context drift. This ensures AI agents read the most relevant documentation for the specific package they are modifying.

Does this approach work for large monorepos needing per-package documentation templates?

Yes, it is ideal for documenting large monorepos or multi-package projects. It generates a concise root AGENTS.md linking to detailed per-package files, providing scalable documentation patterns for both AI agents and humans.

What's the best way to structure AI-friendly project documentation without embedding full content?

The best way is using JIT indexing and examples. This method produces path-globs and command hints without embedding full content, utilizing concrete file paths for quick reference to keep documentation lightweight and context accurate.