agentleFS
jimtinjimtin/production-ai/skills/frontend-design-quality/SKILL.md

frontend-design-quality

Skill1 starsChanged 5 months agoMITView on GitHub

Ensure frontend design work follows established repo patterns, minimizes clicks, fills real viewports, stays responsive, avoids text overflow, reduces portal UI clutter, covers content-rich surfaces such as blogs/resources, and is verified with Playwright or equivalent visual screenshots. Use when building, changing, or reviewing frontend UI, pages, portals, dashboards, navigation, forms, content systems, responsive layouts, or user-facing flows in a repo.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill 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
  1. Distinctive:

    Treat frontend work as complete only when the implemented flow is usable, visually coherent, and verified across real viewport sizes.

    line 10
  2. Distinctive:

    Start by reading the repo's existing UI patterns before designing anything new.

    line 12
  3. Distinctive:

    Remove redundant confirmation screens, duplicate navigation, avoidable modals, and repeated data entry.

    line 18
  4. Distinctive:

    If a new pattern is required, make it small, explain why existing patterns do not fit, and keep it compatible with the current design …

    line 24
  5. Very specific:

    Use grid, flex, container constraints, minmax, min-height: 100dvh, sticky regions, and scroll regions intentionally.

    line 29
  6. Distinctive:

    Avoid viewport-scaled font sizing.

    line 30
  7. Distinctive:

    Keep every screen responsive.

    line 32
  8. Distinctive:

    Verify no horizontal document overflow.

    line 33
  9. Distinctive:

    Ensure long labels, names, emails, URLs, headings, and translated-length strings wrap or truncate intentionally.

    line 34
  10. Distinctive:

    Ensure buttons, tabs, filters, table cells, cards, and form labels cannot resize the layout into overlap.

    line 35
  11. Distinctive:

    Prefer dense but calm operational layouts over marketing-style sections.

    line 40
  12. Distinctive:

    Keep destructive, financial, permission, and publishing actions explicit and recoverable.

    line 41
  13. Distinctive:

    If the user points to an existing content-rich repo as the reference implementation, inspect it when available and use it only as a pattern …

    line 45
  14. Distinctive:

    Verify visually and behaviorally.

    line 47
  15. Very specific:

    Read references/design-verification.md for the verification checklist.

    line 48
  16. Very specific:

    Read references/playwright-design-patterns.md when adding or updating Playwright tests for frontend design coverage.

    line 49
  17. Distinctive:

    Add or update automated coverage for every user action introduced or changed.

    line 50
  18. Distinctive:

    Use Playwright or the repo's equivalent browser testing tool for screenshots, interaction tests, overflow checks, and route coverage.

    line 51
  19. Distinctive:

    Run the repo's local test commands, honoring AGENTS.md and container requirements.

    line 52
  20. Distinctive:

    Do not present frontend work as done until these are true:

    line 56
  21. Distinctive:

    Every changed route works at small phone, large phone, tablet portrait, tablet landscape, laptop, desktop, and wide desktop dimensions.

    line 60
  22. Distinctive:

    No visible text, buttons, cards, nav items, form controls, tables, or media overlap or overflow unintentionally.

    line 62
  23. Distinctive:

    All changed user actions have automated browser coverage.

    line 64
  24. Very specific:

    Use references/design-verification.md for concrete viewport sets, Playwright assertions, screenshot expectations, and review checks.

    line 69
  25. Very specific:

    Use references/playwright-design-patterns.md for reusable Playwright test templates covering viewport matrices, overflow detection, …

    line 71

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

Core Standard

Treat frontend work as complete only when the implemented flow is usable, visually coherent, and verified across real viewport sizes.

Start by reading the repo's existing UI patterns before designing anything new. Prefer established layout primitives, typography, spacing, navigation, form controls, loading states, empty states, error states, and test utilities over new visual systems.

Workflow

  1. Map the user path.
    • Identify the fewest practical clicks from entry point to successful outcome.
    • Remove redundant confirmation screens, duplicate navigation, avoidable modals, and repeated data entry.
    • Preserve necessary safety checks for destructive, billing, privacy, and admin actions.
  2. Inventory existing patterns.
    • Inspect similar pages and shared components before adding new layout or component styles.
    • Reuse project design tokens, shells, grids, buttons, form fields, cards, menus, tabs, toasts, and table/list patterns.
    • If a new pattern is required, make it small, explain why existing patterns do not fit, and keep it compatible with the current design language.
  3. Design by actual viewport, not breakpoint labels.
    • Reason about concrete widths and heights, including short laptop screens, tablet portrait/landscape, small phones, and wide desktop.
    • Fill the useful viewport for primary tasks without creating empty "lg-only" layouts.
    • Use grid, flex, container constraints, minmax, min-height: 100dvh, sticky regions, and scroll regions intentionally.
    • Avoid viewport-scaled font sizing; make text responsive through layout, wrapping, hierarchy, and container constraints.
  4. Keep every screen responsive.
    • Verify no horizontal document overflow.
    • Ensure long labels, names, emails, URLs, headings, and translated-length strings wrap or truncate intentionally.
    • Ensure buttons, tabs, filters, table cells, cards, and form labels cannot resize the layout into overlap.
    • Support keyboard navigation, focus visibility, touch targets, and accessible names.
  5. Simplify portal flows.
    • For user and admin portals, prioritize fast scanning, clear task status, obvious next actions, and low visual clutter.
    • Prefer dense but calm operational layouts over marketing-style sections.
    • Keep destructive, financial, permission, and publishing actions explicit and recoverable.
  6. Cover content-rich implementations.
    • For blogs, resources, articles, docs, manifests, newsletters, or CMS-backed pages, design the full content system: listing, detail page, rich text rendering, metadata, categories/tags, author/date, media, empty states, errors, draft/unpublished states where applicable, SEO/social metadata, and admin editing/preview flows when the repo supports them.
    • If the user points to an existing content-rich repo as the reference implementation, inspect it when available and use it only as a pattern reference, not as a dependency.
  7. Verify visually and behaviorally.
    • Read references/design-verification.md for the verification checklist.
    • Read references/playwright-design-patterns.md when adding or updating Playwright tests for frontend design coverage.
    • Add or update automated coverage for every user action introduced or changed.
    • Use Playwright or the repo's equivalent browser testing tool for screenshots, interaction tests, overflow checks, and route coverage.
    • Run the repo's local test commands, honoring AGENTS.md and container requirements.

Acceptance Bar

Do not present frontend work as done until these are true:

  • The design matches or deliberately extends established repo patterns.
  • The primary task can be completed with the minimum practical number of clicks.
  • Every changed route works at small phone, large phone, tablet portrait, tablet landscape, laptop, desktop, and wide desktop dimensions.
  • Screens fill the useful viewport without awkward dead zones or clipped primary content.
  • No visible text, buttons, cards, nav items, form controls, tables, or media overlap or overflow unintentionally.
  • Loading, empty, error, validation, disabled, success, and permission states are designed when they can occur.
  • All changed user actions have automated browser coverage.
  • Screenshots or visual assertions prove the final UI works, not just that tests passed.

Reference

Use references/design-verification.md for concrete viewport sets, Playwright assertions, screenshot expectations, and review checks.

Use references/playwright-design-patterns.md for reusable Playwright test templates covering viewport matrices, overflow detection, screenshots, user actions, portals, and content-rich pages.

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.