AI-Friendly Architecture Guide
Optimizes project structures and documentation to maximize AI collaboration efficiency and reduce token consumption.
This skill implements the Universal Dev Standards (UDS) for AI-friendly architecture, helping developers create codebases that are easily navigable and understandable by AI agents like Claude. By utilizing tiered documentation (Quick-Ref, Detailed, and Examples), semantic boundaries, and machine-readable context files like .ai-context.yaml, it ensures that AI assistants can quickly locate relevant code, understand complex dependencies, and provide highly accurate implementation suggestions while significantly minimizing token usage.
Key Features
01Multi-layered documentation strategy (L1-L3) for efficient context loading
0269 GitHub stars
03Automated detection and setup of .ai-context.yaml project maps
04Standardized module headers for clear dependency and purpose mapping
05Token-optimized YAML formats for architectural and development standards
06Anti-pattern detection for magic strings, global state, and circular dependencies
Use Cases
01Onboarding an AI agent to a complex legacy codebase to improve code analysis accuracy
02Reducing LLM API costs by optimizing the context window through tiered documentation
03Structuring a new project from scratch to ensure seamless long-term AI-human collaboration