AGENTS.md Hierarchy Generator
Generates token-efficient, hierarchical AGENTS.md documentation structures to provide context-aware guidance for AI coding assistants.
This skill automates the creation of a tiered documentation system specifically designed for AI agents operating within complex codebases. By analyzing repository structures, tech stacks, and internal patterns, it generates a lightweight root AGENTS.md for universal rules and detailed sub-folder AGENTS.md files for localized context. This 'nearest-wins' hierarchy ensures that AI assistants receive precise, actionable guidance while minimizing token consumption, leading to more accurate code generation and better adherence to project-specific conventions without bloating the context window.
Key Features
01JIT indexing via pre-configured ripgrep and find commands
02Token-optimized formatting for minimal AI overhead
0312 GitHub stars
04Automated repository mapping and tech stack analysis
05Hierarchical 'nearest-wins' documentation architecture
06Specialized templates for UI components, Databases, and API services
Use Cases
01Onboarding AI agents to a legacy or complex monorepo
02Standardizing coding conventions and patterns for AI-assisted PRs
03Reducing AI hallucinations by providing clear 'DO' and 'DON'T' examples