design-governance
Skill5 starsChanged 5 months agoMITView on GitHub
Use when creating or maintaining docs/DESIGN.md as the implementation-facing source of truth for UI, layout, component, accessibility, and interaction rules.
In this repository14 other files it gives its agents.
- assets-governanceSkill
- brand-governanceSkill
- change-archive-governanceSkill
- clarification-gateSkill
- implementation-workflowSkill
- openarcSkill
- open-source-maintenanceSkill
- planning-engineSkill
- product-governanceSkill
- release-workflowSkill
- repository-governanceSkill
- spec-workflowSkill
- version-governanceSkill
- workspace-migrationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
7
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 8
Use this skill when a repository needs design-system guidance for implementation.
- Distinctive: line 14
Use this skill only when the repository or request includes UI, frontend, desktop, mobile, component, visual asset, or design-system work.
- Distinctive: line 16
Use Clarification Gate output when available.
- Distinctive: line 20
If the user has not clearly specified design direction, follow this flow before writing:
- Distinctive: line 24
Ask focused questions for material gaps such as audience, density, layout, typography, accessibility, and platform constraints.
- Very specific: line 28
Create or patch docs/DESIGN.md.
- Distinctive: line 49
When UI work introduces or changes a component, enforce this flow:
- Very specific: line 51
Check docs/DESIGN.md and the existing component directory before creating a new component.
- Distinctive: line 53
Create a new component only when reuse would make the existing component unclear, brittle, or over-generalized.
- Very specific: line 54
If the new component is reusable across screens, update the Component Patterns section in docs/DESIGN.md during the same change.
- Very specific: line 55
If the new component is intentionally one-off, record why in the related spec or plan instead of adding it to docs/DESIGN.md.
- Distinctive: line 60
Do not use when
- Very specific: line 65
Do not add every component to docs/DESIGN.md.
- Very specific: line 69
Do not merge docs/DESIGN.md with docs/BRAND.md.
- Distinctive: line 81
Prefer concrete implementation rules over abstract taste statements.
- Distinctive: line 84
Do not invent a visual system when repository evidence and user intent are insufficient.
- Distinctive: line 85
Before adding UI components, search for reusable local components and documented patterns.
- Very specific: line 86
Keep docs/DESIGN.md aligned when a reusable component pattern becomes part of the system.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Design Governance
Use this skill when a repository needs design-system guidance for implementation.
Goal
Maintain docs/DESIGN.md as the source of truth for how UI should be built.
Use this skill only when the repository or request includes UI, frontend, desktop, mobile, component, visual asset, or design-system work. For script, CLI, automation, library, or docs-only repositories, do not create docs/DESIGN.md unless the user request or repository evidence introduces UI or visual design.
Use Clarification Gate output when available. If the audience, platform, density, layout, accessibility, or visual direction is still unclear, clarify those material gaps before writing.
Fixed Clarification Flow
If the user has not clearly specified design direction, follow this flow before writing:
- Discover existing signals: app screens, CSS/theme files, component libraries, screenshots, assets, design docs, and product copy.
- Extract confirmed patterns, gaps, contradictions, and risky assumptions.
- Ask focused questions for material gaps such as audience, density, layout, typography, accessibility, and platform constraints.
- Draft concrete implementation rules, not abstract taste statements.
- Cross-check with
docs/PRD.md,docs/BRAND.md, anddocs/assets/*. - Confirm unresolved design decisions with the user.
- Create or patch
docs/DESIGN.md.
DESIGN.md Owns
- Project/profile and platform-specific rules
- Evidence and source notes
- Spacing
- Typography
- Tokens
- Layouts
- Interaction rules
- Responsive behavior
- Animation rules
- Accessibility
- Component standards
- Component reuse rules
- Component pattern registry
- Prohibited implementation patterns
Component Pattern Governance
When UI work introduces or changes a component, enforce this flow:
- Check
docs/DESIGN.mdand the existing component directory before creating a new component. - Reuse or extend an existing component when it covers roughly 70-80% of the needed behavior.
- Create a new component only when reuse would make the existing component unclear, brittle, or over-generalized.
- If the new component is reusable across screens, update the
Component Patternssection indocs/DESIGN.mdduring the same change. - If the new component is intentionally one-off, record why in the related spec or plan instead of adding it to
docs/DESIGN.md.
Component Patterns entries should be concrete enough for future agents to reuse without reading the component implementation first:
- Use when
- Do not use when
- Reuse path
- Variants
- Accessibility or interaction notes
Do not add every component to docs/DESIGN.md. Only document stable reusable patterns or important prohibitions.
Boundary
Do not merge docs/DESIGN.md with docs/BRAND.md.
DESIGN.md governs UI implementation, engineering constraints, component systems, layout rules, and interaction behavior.
BRAND.md governs identity, storytelling, naming, tone, and communication style.
Cross-reference them when useful, but keep the source-of-truth boundary clear.
Rules
- Detect an existing design system before writing defaults.
- Patch existing design docs instead of replacing them.
- Prefer concrete implementation rules over abstract taste statements.
- Tailor the design guide to the detected platform; do not put web-specific design-system rules into iOS, desktop, CLI, library, or docs-only projects.
- Reference
docs/assets/when visuals, screenshots, or brand assets are needed. - Do not invent a visual system when repository evidence and user intent are insufficient.
- Before adding UI components, search for reusable local components and documented patterns.
- Keep
docs/DESIGN.mdaligned when a reusable component pattern becomes part of the system.
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.

