frontend-design-guardrails
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use when page, component, form, table, dashboard, responsive layout, or UI review work needs product-quality implementation guardrails. DO NOT USE FOR: backend-only changes or scripts with no user-visible surface.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Prefer the repository's existing component library, theme tokens, layout primitives, icon set, routing, and state patterns.
- Distinctive: line 22
If the repository uses Ant Design, Ant Design Pro, Pro Components, or compatible tokens, use their components and interaction patterns …
- Distinctive: line 24
Use semantic controls: buttons for commands, inputs for text, selects/menus for option sets, tabs for views, toggles for binary settings.
- Distinctive: line 26
Avoid magic pixel offsets, absolute-positioned main layouts, clipped text, overlapping controls, and layout shifts.
- Distinctive: line 27
Ensure controls have stable accessible labels or text so browser tests can locate them.
- Distinctive: line 29
Do not invent metrics, testimonials, brand claims, screenshots, or business data.
- Distinctive: line 30
Avoid generic AI-looking UI: ungrounded purple gradients, decorative blob backgrounds, arbitrary glass cards, over-rounded nested cards, …
- Distinctive: line 67
If the visual direction is underspecified, propose 2-3 concrete directions with tradeoffs before coding.
- Distinctive: line 71
Before delivery, self-review the UI across five dimensions:
- Very specific: line 81
Run or request a browser/visual check through web-experience-audit, or state why runtime verification is unavailable and provide static …
≈ “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
Frontend Design Guardrails
Goal
Build usable interfaces that match the target repository's existing UI system and can be verified reliably.
Reference Principles
- Ant Design baseline: optimize for natural interaction, certainty, meaningful task progress, and systems that can grow without visual drift.
- Design patterns beat freestyle UI: prefer established page patterns, reusable components, tokens, layout rules, copy conventions, feedback patterns, and data-entry/data-display patterns.
- Design-system packets beat vague style adjectives: record the minimum explicit tokens and component decisions needed to make the result repeatable.
- Preview culture matters: make the result inspectable through browser evidence, screenshots, or a clear static fallback.
Rules
- Prefer the repository's existing component library, theme tokens, layout primitives, icon set, routing, and state patterns.
- If the repository uses Ant Design, Ant Design Pro, Pro Components, or compatible tokens, use their components and interaction patterns first; only build custom controls when the library cannot express the workflow.
- For operational tools, favor dense, calm, scannable layouts over marketing-style hero sections.
- Use semantic controls: buttons for commands, inputs for text, selects/menus for option sets, tabs for views, toggles for binary settings.
- Provide loading, empty, error, disabled, success, and partial states when the workflow needs them.
- Avoid magic pixel offsets, absolute-positioned main layouts, clipped text, overlapping controls, and layout shifts.
- Ensure controls have stable accessible labels or text so browser tests can locate them.
- For mobile and desktop, verify that text fits and primary actions remain reachable.
- Do not invent metrics, testimonials, brand claims, screenshots, or business data. Use real data, labelled placeholders, or explicit empty states.
- Avoid generic AI-looking UI: ungrounded purple gradients, decorative blob backgrounds, arbitrary glass cards, over-rounded nested cards, lorem ipsum, and icon-only controls without accessible names.
Before Implementation
Freeze:
- target user and workflow
- existing UI library/patterns
- page structure
- critical states
- responsive breakpoints
- validation method
- brand source or visual direction
- data density and hierarchy
- accessibility-critical labels and keyboard path
Design System Packet
For non-trivial UI work, generate a small design-system packet before coding, inspired by UI UX Pro Max and Open Design's active-design-system workflow:
product_typesurfaceaudiencestyle_directionbrand_sourcecolor_tokenstypographyspacingcomponentsdata_densitystatesaccessibility_rulestest_plananti_patterns
Store this in the task plan or component notes only when useful; do not create a persistent design-system folder unless the user or spec asks for it.
If the visual direction is underspecified, propose 2-3 concrete directions with tradeoffs before coding. For implementation tasks with an existing product style, derive the packet from current code and screenshots rather than replacing the product identity.
Craft Review
Before delivery, self-review the UI across five dimensions:
- hierarchy: primary action, data priority, and scan path are clear
- consistency: spacing, typography, components, and feedback match the system
- function: core workflow works with realistic loading/error/empty data
- accessibility: labels, contrast, keyboard path, and focus states are adequate
- implementation: no layout shifts, clipped text, console errors, or endpoint leaks
Before Completion
Run or request a browser/visual check through web-experience-audit, or state why runtime verification is unavailable and provide static fallback evidence.
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.

