frontend-design-guide
Skill1 starsChanged 5 months agoMITView on GitHub
Guide frontend user experience and visual design before code generation. Use when choosing UI style, generating DESIGN.md, adapting external design references such as awesome-design-md, selecting layout density, component behavior, design tokens, frontend page standards, or preventing generic AI-looking web pages.
In this repository7 other files it gives its agents.
- api-db-designSkill
- architecture-designSkill
- implementation-verificationSkill
- integration-test-guideSkill
- project-guideSkill
- requirements-designSkill
- tech-stack-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill before frontend implementation.
- Distinctive: line 16
Do not copy brand-specific identity, logos, slogans, or distinctive visual assets from external references.
- Distinctive: line 17
Use external design references only as inspiration for layout, density, hierarchy, component behavior, and interaction principles.
- Distinctive: line 18
Prefer a business-fit design style over a fashionable style.
- Very specific: line 21
If an existing DESIGN.md exists, adapt it to the current project instead of replacing it blindly.
- Very specific: line 31
Ask whether brand assets, color constraints, component library, or existing DESIGN.md exists.
- Distinctive: line 38
Use these neutral templates as defaults:
- Very specific: line 46
Read the matching file under references/templates/ before generating DESIGN.md.
- Distinctive: line 48
When asking the user to choose, use this fallback format:
- Very specific: line 63
When the user provides an external DESIGN.md or mentions awesome-design-md:
- Distinctive: line 65
Read the user-provided design file if available.
- Distinctive: line 67
Remove brand names, brand colors, proprietary imagery, and unique copywriting.
- Very specific: line 69
Keep a short "Reference Adaptation Notes" section in docs/03-frontend-design/frontend-ux-design.md.
- Very specific: line 78
After producing DESIGN.md, stop and request explicit user review.
- Very specific: line 80
After producing docs/03-frontend-design/frontend-ux-design.md, stop and request explicit user review.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Frontend Design Guide
<!-- 中文说明: 这个 skill 用于在生成前端代码之前确定设计规范,避免 AI 默认生成千篇一律的页面。 -->Purpose
Use this skill before frontend implementation. Generate or adapt a project-level DESIGN.md and a concise UX artifact so later frontend code must follow explicit design rules instead of generic AI defaults.
Operating Rules
- Do not copy brand-specific identity, logos, slogans, or distinctive visual assets from external references.
- Use external design references only as inspiration for layout, density, hierarchy, component behavior, and interaction principles.
- Prefer a business-fit design style over a fashionable style.
- For operational systems, prioritize clarity, scan speed, predictable navigation, form efficiency, table usability, and error recovery.
- Frontend code generation must read
DESIGN.mdbefore creating pages or components. - If an existing
DESIGN.mdexists, adapt it to the current project instead of replacing it blindly. - Native choice widgets are client-dependent. If no choice widget is available, show the built-in templates as a numbered list and ask the user to reply with the number or template name.
Style Selection Workflow
<!-- 中文说明: 先根据业务场景选择模板,再结合项目约束生成 DESIGN.md。 -->- Identify product type: admin system, data dashboard, government/professional system, SaaS product, mobile/H5, public portal, or custom.
- Identify users: high-frequency operators, managers, analysts, external visitors, mobile users, or mixed roles.
- Identify workflow density: dense operations, dashboard scanning, step-by-step process, content reading, or marketing conversion.
- Ask whether brand assets, color constraints, component library, or existing
DESIGN.mdexists. - Choose one built-in template or adapt the user's external reference.
- Generate
DESIGN.mdanddocs/03-frontend-design/frontend-ux-design.md. - Record design constraints in
.project-guide/state.yamlwhen project state is used.
Built-in Templates
Use these neutral templates as defaults:
enterprise-admin: internal admin systems, CRM, WMS, ticketing, workflow systems.data-dashboard: BI, monitoring, command center, operational metrics.gov-professional: government, public security, compliance, regulated professional systems.modern-saas: team tools, productivity SaaS, collaboration products.mobile-h5: mobile web, WeChat/H5 flows, lightweight client-side workflows.
Read the matching file under references/templates/ before generating DESIGN.md.
When asking the user to choose, use this fallback format:
Choose a frontend design template:
1. enterprise-admin - internal admin, CRM, WMS, workflow, ticketing
2. data-dashboard - BI, monitoring, metrics, command center
3. gov-professional - government, public security, compliance, audit-heavy systems
4. modern-saas - SaaS, collaboration, productivity tools
5. mobile-h5 - mobile web, WeChat/H5, lightweight client workflows
Reply with a number or template name.External Reference Policy
When the user provides an external DESIGN.md or mentions awesome-design-md:
- Read the user-provided design file if available.
- Extract transferable principles: spacing, density, typography, component behavior, interaction tone.
- Remove brand names, brand colors, proprietary imagery, and unique copywriting.
- Adapt the style to the project's business type and component library.
- Keep a short "Reference Adaptation Notes" section in
docs/03-frontend-design/frontend-ux-design.md.
Output Requirements
Generate:
DESIGN.md: project-level rules that frontend generation must follow.docs/03-frontend-design/frontend-ux-design.md: short explanation of selected style, target users, page patterns, and tradeoffs.
After producing DESIGN.md, stop and request explicit user review. Do not proceed to frontend UX notes or implementation until the user approves the design guidelines.
After producing docs/03-frontend-design/frontend-ux-design.md, stop and request explicit user review. Do not proceed to frontend implementation until the user approves the UX artifact.
DESIGN.md should include:
- Product type and design intent.
- Visual tone.
- Color system.
- Typography.
- Layout and spacing.
- Navigation.
- Components.
- Tables/forms/modals.
- State design: loading, empty, error, success, disabled.
- Responsive behavior.
- Accessibility.
- Prohibited patterns.
- Frontend implementation notes.
Anti-Generic Rules
Avoid:
- Decorative gradient backgrounds for operational tools.
- Oversized hero sections in admin/productivity systems.
- Card-inside-card layouts.
- Random bokeh/orb decorations.
- Excessive rounded corners.
- Fake charts with no data semantics.
- Low-density dashboards where users need scanning efficiency.
- Placeholder-heavy pages that look polished but do not support real workflows.
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.

