ai-design-rules
AGENTS.md3 starsChanged 37 days agoMITView on GitHub
AI Design Context is an AI-first knowledge base for teaching coding agents how to design modern consumer products. Do not treat this repository as a documentation dump. Treat it as a knowledge graph. Follow this order: Never skip upstream evidence. Never generate UI from taste alone. Read docs/KNOWLEDGE_ENGINE.md before changing repository structure, adding object types, or changing relationships. Use it as the source of truth for: Before planning or changing a user-facing product, UX, UI, accessibility, motion, or prompt task,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository21 other files it gives its agents.
- starter-kit/AGENTS.mdAGENTS.md
- accessibility-checkSkill
- accessibility-reviewerSkill
- agent-contextSkill
- design-evidence-researcherSkill
- design-reviewerSkill
- design-system-architectSkill
- design-understandSkill
- information-architectSkill
- interaction-designerSkill
- knowledge-graph-architectSkill
- mobile-ux-expertSkill
- motion-designerSkill
- performance-reviewerSkill
- product-designerSkill
- prompt-architectSkill
- reference-driven-designSkill
- responsive-checkSkill
- ux-reviewerSkill
- visual-designerSkill
- visual-qaSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
25 rules. About 0 are common, 20 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 5
Do not treat this repository as a documentation dump.
- Distinctive: line 15
Never skip upstream evidence.
- Very specific: line 19
Read docs/KNOWLEDGE_ENGINE.md before changing repository structure, adding object types, or changing relationships.
- Distinctive: line 21
Use it as the source of truth for:
- Distinctive: line 35
Prefer improving existing knowledge over creating parallel files.
- Distinctive: line 36
Keep every object connected to upstream sources and downstream usage.
- Distinctive: line 37
Use schema-compatible YAML front matter for new knowledge objects.
- Distinctive: line 39
Use typed relationships only.
- Distinctive: line 40
Treat manual indexes as transitional context pages.
- Distinctive: line 41
Use generated indexes as the preferred navigation layer for the migrated minimal chain.
- Distinctive: line 42
Do not add rules without research.
- Distinctive: line 43
Do not add patterns without required rules and related research.
- Distinctive: line 44
Do not add prompts that invent design advice outside rules and patterns.
- Distinctive: line 45
Do not treat reference projects as demos.
- Distinctive: line 49
Before planning or changing a user-facing product, UX, UI, accessibility, motion, or prompt task, resolve focused graph context:
- Very specific: line 55
Add --platform mobile when narrow-screen behavior matters.
- Very specific: line 61
Read the returned research and rules before making product decisions.
- Distinctive: line 79
Use them when the task matches their role:
- Very specific: line 104
Use the relationship types defined in docs/KNOWLEDGE_ENGINE.md:
- Distinctive: line 117
Every new object should be traceable.
- Very specific: line 123
When changing research/, rules/, patterns/, prompts/, examples/, registry/objects.json, or registry/relationships.json:
- Distinctive: line 125
Keep front matter and registry records aligned.
- Distinctive: line 126
Keep relationship targets typed and resolvable.
- Distinctive: line 130
Do not edit generated indexes manually.
- Distinctive: line 153
Every architectural decision should support:
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Design Context Agent Guide
AI Design Context is an AI-first knowledge base for teaching coding agents how to design modern consumer products.
Do not treat this repository as a documentation dump. Treat it as a knowledge graph.
Core Flow
Follow this order:
observation -> research -> knowledge -> rules -> patterns -> prompts -> reference projects -> reviewsNever skip upstream evidence. Never generate UI from taste alone.
Architecture Source
Read docs/KNOWLEDGE_ENGINE.md before changing repository structure, adding object types, or changing relationships.
Use it as the source of truth for:
- schema-first object metadata;
- global IDs, aliases, and slugs;
- object metadata;
- relationship types;
- registry records;
- navigation;
- DesignLint readiness;
- long-term scalability.
Working Rules
- Improve architecture before adding volume.
- Prefer improving existing knowledge over creating parallel files.
- Keep every object connected to upstream sources and downstream usage.
- Use schema-compatible YAML front matter for new knowledge objects.
- Preserve schema-compatible YAML front matter on every migrated research, rule, pattern, prompt, and reference project.
- Use typed relationships only.
- Treat manual indexes as transitional context pages.
- Use generated indexes as the preferred navigation layer for the migrated minimal chain.
- Do not add rules without research.
- Do not add patterns without required rules and related research.
- Do not add prompts that invent design advice outside rules and patterns.
- Do not treat reference projects as demos; use them to validate the graph.
Agent Context Retrieval
Before planning or changing a user-facing product, UX, UI, accessibility, motion, or prompt task, resolve focused graph context:
npm run context -- --task <task-slug-or-phrase> --intent implementAdd --platform mobile when narrow-screen behavior matters. Before reviewing an implementation, reference fixture, benchmark artifact, or prompt output, use:
npm run context -- --review <path-or-object-id> --intent qaRead the returned research and rules before making product decisions. Treat draft and seed objects as bounded guidance. If no context resolves, record an observation or research need rather than inventing a rule. Skip the command for backend-only, infrastructure-only, or unrelated maintenance tasks.
Knowledge Objects
- Observation
- Research
- Rule
- Pattern
- Prompt
- Skill
- Checklist
- Review
- Reference Project
Local Skill Specs
The current reusable agent skills live in skills/*/SKILL.md.
Use them when the task matches their role:
skills/product-designer/SKILL.mdfor product direction, primary action, object model, and pattern selection.skills/ux-reviewer/SKILL.mdfor journey clarity, usability, state coverage, and user friction.skills/information-architect/SKILL.mdfor object model, navigation, hierarchy, labels, and status language.skills/mobile-ux-expert/SKILL.mdfor touch-first mobile behavior, capture flows, primary actions, and context preservation.skills/interaction-designer/SKILL.mdfor flow mechanics, feedback, recovery, previews, and state transitions.skills/design-system-architect/SKILL.mdfor semantic tokens, reusable state behavior, and pattern/component boundaries.skills/visual-designer/SKILL.mdfor visual hierarchy, spacing, typography, color meaning, and polish.skills/motion-designer/SKILL.mdfor purposeful motion and reduced-motion behavior.skills/accessibility-reviewer/SKILL.mdfor labels, focus, target size, contrast, errors, and reduced motion.skills/performance-reviewer/SKILL.mdfor perceived performance, loading behavior, responsiveness, and layout stability.skills/design-reviewer/SKILL.mdfor design QA, traceability checks, and rule/pattern coverage review.skills/prompt-architect/SKILL.mdfor graph-backed prompt structure and output contracts.skills/knowledge-graph-architect/SKILL.mdfor schema, registry, generated indexes, relationships, and validation scope.skills/agent-context/SKILL.mdfor focused graph retrieval before implementation or review.skills/design-understand/SKILL.mdfor understanding an existing screen before UI changes.skills/visual-qa/SKILL.mdfor browser/screenshot evidence and scoped visual QA.skills/responsive-check/SKILL.mdfor executing viewport and responsive interaction checks.skills/accessibility-check/SKILL.mdfor executing semantic and keyboard/state checks.
These skill files are not registered knowledge objects yet. Do not add them to registry/objects.json until skill metadata migration is explicitly requested.
Relationship Discipline
Use the relationship types defined in docs/KNOWLEDGE_ENGINE.md:
derived_fromcitesinspired_byrequiresvalidatesimplementsrelated_tosupersedesdeprecated_byreplaced_by
Every new object should be traceable.
Validation Discipline
Research, rules, patterns, prompts, and reference projects are the first migrated chain.
When changing research/, rules/, patterns/, prompts/, examples/, registry/objects.json, or registry/relationships.json:
- Keep front matter and registry records aligned.
- Keep relationship targets typed and resolvable.
- Run
npm run generate:indexes. - Run
npm run validate.
Do not edit generated indexes manually.
The validator is intentionally limited. It does not replace future DesignLint and does not enforce unmigrated object types yet.
Quality Bar
Progress means:
- stronger relationships;
- fewer duplicates;
- better discoverability;
- clearer specifications;
- more reliable agent behavior.
Progress does not mean:
- more pages;
- more prompts;
- more rules without evidence;
- more disconnected examples.
Future Compatibility
Every architectural decision should support:
- 1000+ rules;
- 300+ patterns;
- 200+ prompts;
- multiple reference projects;
- future DesignLint integration;
- IDE and MCP integration.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

