Create and maintain AGENTS.md documentation for simple projects and complex monorepos with deterministic discovery, scoped instruction files, and low-token navigation patterns; use when generating AGENTS.md, updating agent docs, or standardizing AI-facing project guidance.
Does it follow best practices?
Evaluation — 92%
↑ 1.05xAgent success when using this tile
Validation for skill structure
Use this template when documenting design system or UI component packages.
MANDATORY: Before using this template, analyze the current project to identify:
find . -name "components" -type d | head -5grep -r "react\|vue\|angular\|svelte" package.json | head -3find . -name "*.css" -o -name "*.scss" -o -name "*.styled.*" | head -5ls -la *storybook* vite.config.* webpack.config.* rollup.config.* 2>/dev/nullfind . -name "*token*" -o -name "*theme*" | grep -v node_modules | head -5## Design System
- Components: `[DETECTED_COMPONENTS_PATH]/**`
- Design tokens: `[DETECTED_TOKENS_PATH]` OR "No design tokens found"
- [COMPONENT_GALLERY_COMMAND] OR "No component gallery setup found"
- Examples:
- [EXAMPLE_COMPONENT_1]: `[ACTUAL_PATH_FROM_PROJECT]`
- [EXAMPLE_COMPONENT_2]: `[ACTUAL_PATH_FROM_PROJECT]`Before documenting, run discovery commands to identify:
src/components/).json, .js, .ts, CSS variables)Analyze package.json scripts to identify:
grep -r "storybook" package.jsongrep -r "build.*ui\|build.*components" package.jsongrep -r "test.*components\|test.*ui" package.jsonReact Projects: Look for .tsx, styled-components, emotion
Vue Projects: Look for .vue, scoped styles
Angular Projects: Look for .component.ts, Angular Material
Web Components: Look for custom element definitions
// Example based on what you find in existing files
import { [ComponentName] } from '[ACTUAL_IMPORT_PATH]';