agentleFS
liuqi1024liuqi1024/matrix-boot/skills/frontend-design-guide/SKILL.md

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.

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
  1. Very specific:

    Use this skill before frontend implementation.

    line 12
  2. Distinctive:

    Do not copy brand-specific identity, logos, slogans, or distinctive visual assets from external references.

    line 16
  3. Distinctive:

    Use external design references only as inspiration for layout, density, hierarchy, component behavior, and interaction principles.

    line 17
  4. Distinctive:

    Prefer a business-fit design style over a fashionable style.

    line 18
  5. Very specific:

    If an existing DESIGN.md exists, adapt it to the current project instead of replacing it blindly.

    line 21
  6. Very specific:

    Ask whether brand assets, color constraints, component library, or existing DESIGN.md exists.

    line 31
  7. Distinctive:

    Use these neutral templates as defaults:

    line 38
  8. Very specific:

    Read the matching file under references/templates/ before generating DESIGN.md.

    line 46
  9. Distinctive:

    When asking the user to choose, use this fallback format:

    line 48
  10. Very specific:

    When the user provides an external DESIGN.md or mentions awesome-design-md:

    line 63
  11. Distinctive:

    Read the user-provided design file if available.

    line 65
  12. Distinctive:

    Remove brand names, brand colors, proprietary imagery, and unique copywriting.

    line 67
  13. Very specific:

    Keep a short "Reference Adaptation Notes" section in docs/03-frontend-design/frontend-ux-design.md.

    line 69
  14. Very specific:

    After producing DESIGN.md, stop and request explicit user review.

    line 78
  15. Very specific:

    After producing docs/03-frontend-design/frontend-ux-design.md, stop and request explicit user review.

    line 80

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md before creating pages or components.
  • If an existing DESIGN.md exists, 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。 -->
  1. Identify product type: admin system, data dashboard, government/professional system, SaaS product, mobile/H5, public portal, or custom.
  2. Identify users: high-frequency operators, managers, analysts, external visitors, mobile users, or mixed roles.
  3. Identify workflow density: dense operations, dashboard scanning, step-by-step process, content reading, or marketing conversion.
  4. Ask whether brand assets, color constraints, component library, or existing DESIGN.md exists.
  5. Choose one built-in template or adapt the user's external reference.
  6. Generate DESIGN.md and docs/03-frontend-design/frontend-ux-design.md.
  7. Record design constraints in .project-guide/state.yaml when project state is used.

Built-in Templates

Use these neutral templates as defaults:

  1. enterprise-admin: internal admin systems, CRM, WMS, ticketing, workflow systems.
  2. data-dashboard: BI, monitoring, command center, operational metrics.
  3. gov-professional: government, public security, compliance, regulated professional systems.
  4. modern-saas: team tools, productivity SaaS, collaboration products.
  5. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.