agentleFS
PaulRBergPaulRBerg/agent-skills/skills/frontend-design/SKILL.md

frontend-design

Skill96 starsChanged 2 months agoMITView on GitHub

Create a working frontend with a clear, subject-specific point of view, then prove it in the rendered UI. - For a critique, review, or design plan, inspect the relevant product and report the direction without editing files. - For a build or redesign, make the requested in-scope changes and run local, non-destructive validation. - Treat explicit user direction, supplied references, repository instructions, existing product behavior, and the local design system as authoritative. Fidelity requests override this skill's defaults. - Preserve…

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use file-reading, arrange and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SeifBenayedSkill

    file-reading

    Use this skill when a file has been uploaded but its content is NOT in your context — only its path at /mnt/user-data/uploads/ is listed in an uploaded_files block. This skill is a router: it tells you which tool to use for each file type (pdf, docx, xlsx, csv, json, images, archives, ebooks) so you read the right amount the right way instead of blindly running cat on a binary. Triggers: any mention of /mnt/user-data/uploads/, an uploaded_files section, a file_path tag, or a user asking about an uploaded file you have not yet read. Do NOT use this skill if the file content is already visible in your context inside a documents block — you already have it.

    Also in 7 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 6 projects that use this

  • SeifBenayedSkill

    pdf-reading

    Use this skill when you need to read, inspect, or extract content from PDF files — especially when file content is NOT in your context and you need to read it from disk. Covers content inventory, text extraction, page rasterization for visual inspection, embedded image/attachment/table/form-field extraction, and choosing the right reading strategy for different document types (text-heavy, scanned, slide-decks, forms, data-heavy). Do NOT use this skill for PDF creation, form filling, merging, splitting, watermarking, or encryption — use the pdf skill instead.

    Also in 6 projects that use this

  • JokerRunSkill

    compound-engineering

    Compound Engineering workflow for AI-assisted development. Use when planning features, executing work, reviewing code, or codifying learnings. Follows the Plan → Work → Review → Compound loop where each unit of engineering makes subsequent work easier. Triggers on: plan this feature, implement this, review this code, compound learnings, create implementation plan, systematic development.

    Also in 5 projects that use this

  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 10 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a working frontend with a clear, subject-specific point of view, then prove it in the rendered UI.

    line 16
  2. Distinctive:

    Treat explicit user direction, supplied references, repository instructions, existing product behavior, and the local design system as …

    line 22
  3. Distinctive:

    Use real product content and supplied assets wherever possible.

    line 41
  4. Distinctive:

    Before coding, define a compact direction:

    line 46
  5. Distinctive:

    Motion and copy: when motion helps, how the interface speaks, and where restraint matters.

    line 53
  6. Distinctive:

    Follow local components, tokens, styling architecture, and dependency versions before introducing new primitives.

    line 74
  7. Distinctive:

    Use structural devices only when they encode real relationships.

    line 79
  8. Distinctive:

    Write interface copy from the user's side: specific nouns, active verbs, consistent action names, sentence case, and useful empty and error …

    line 83
  9. Distinctive:

    Use familiar controls and the project's icon library.

    line 85
  10. Distinctive:

    Keep motion purposeful and concentrated.

    line 87
  11. Distinctive:

    Keep selector specificity and component ownership predictable.

    line 93
  12. Distinctive:

    Run repository-required checks and the narrowest additional checks that prove the changed behavior.

    line 98
  13. Distinctive:

    Check the rendered result for content hierarchy, subject specificity, asset loading, overflow, overlap, truncation, contrast, focus, hover, …

    line 110
  14. Distinctive:

    Do not claim visual verification from source inspection alone when rendering is available.

    line 114

“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “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

Create a working frontend with a clear, subject-specific point of view, then prove it in the rendered UI.

Contract

  • For a critique, review, or design plan, inspect the relevant product and report the direction without editing files.
  • For a build or redesign, make the requested in-scope changes and run local, non-destructive validation.
  • Treat explicit user direction, supplied references, repository instructions, existing product behavior, and the local design system as authoritative. Fidelity requests override this skill's defaults.
  • Preserve the stack and working behavior. Do not replace the framework or design system, add dependencies, invent features, or fetch or generate media unless the request requires it.
  • Make the smallest defensible assumption when the subject, audience, or page job is missing. State it before building; ask only when the answer would materially change scope or identity.

Workflow

1. Read the product before drawing the page

Inspect the affected route or component, neighboring UI, tokens, typography, assets, dependencies, and repository validation commands. Identify:

  • the concrete subject and audience;
  • the screen's single primary job and content hierarchy;
  • the existing visual language and interaction conventions;
  • the required viewports, themes, states, and accessibility constraints.

Use real product content and supplied assets wherever possible. If copy is missing, write only what the user needs to understand the interface and act.

2. Set one art direction

Before coding, define a compact direction:

  • Thesis: one sentence connecting the visual idea to the subject and screen job.
  • System: role-based color tokens, explicit type roles and scale, spacing and density, and a layout principle.
  • Signature: one memorable element drawn from the domain's objects, workflows, data shapes, environments, or language.
  • Risk: one deliberate departure from the obvious solution, with a reason it serves this brief.
  • Motion and copy: when motion helps, how the interface speaks, and where restraint matters.

Adapt this direction to existing brand constraints instead of creating a parallel design language. Keep options and process narration internal unless the user asked to choose among directions.

3. Run the anti-default critique

Apply the subject-swap test: mentally replace the subject with an unrelated one. Any major choice that still works unchanged is probably a template default; revise it or justify why it is structurally correct.

Make every visual device earn its place. Cards, pills, gradients, numbering, dividers, oversized type, split heroes, illustrations, and animation must communicate hierarchy, function, sequence, or subject—not merely decorate. Concentrate expressive force in the signature and make the surrounding system support it.

Name concrete patterns to avoid; generic "avoid an AI look" advice only swaps one default for another. Without a brief that calls for them, avoid these known model defaults: cream or off-white backgrounds, italic accent words in headlines, numbered 01/02/03 section labels, monospace labels, and pill-shaped buttons. After the first render, name any other default the result fell back on and revise it.

4. Build the actual experience

  • Follow local components, tokens, styling architecture, and dependency versions before introducing new primitives.
  • Match composition to use: operational tools favor scannable information and efficient repeated actions; editorial or marketing surfaces may use a more expressive narrative.
  • Make the first viewport establish both identity and primary purpose. For an application or tool, show the real working experience rather than wrapping it in an unrequested landing page.
  • Use structural devices only when they encode real relationships. Use cards for genuinely grouped or repeated objects, not as the default wrapper for every section, and avoid nested cards.
  • Give typography deliberate display, body, and utility roles. Use available fonts first; do not add a font dependency solely to manufacture novelty.
  • Write interface copy from the user's side: specific nouns, active verbs, consistent action names, sentence case, and useful empty and error states. A control's label must describe its result.
  • Use familiar controls and the project's icon library. Give unfamiliar icon-only controls accessible names and visible tooltips where appropriate.
  • Keep motion purposeful and concentrated. Respect reduced-motion preferences and ensure the experience remains clear without animation.
  • Build responsive constraints from content rather than device labels. Prevent overlap, clipping, unreadable wrapping, and layout shift at narrow and wide widths.
  • Preserve semantic structure, keyboard operation, visible focus, adequate contrast, and target sizes. Match the project's accessibility standard when it is stricter.
  • Keep selector specificity and component ownership predictable; do not rely on competing selectors or fragile cascade order to establish spacing and state.

5. Render, inspect, and revise

Run repository-required checks and the narrowest additional checks that prove the changed behavior; select among formatting, lint, typecheck, tests, and build according to the affected surface. Reuse passing evidence until edits or unresolved concerns invalidate it. Then do rendered verification with the chromium-browser skill when it is available in this session; otherwise use the host's DevTools/browser tool. Do not fall back to Computer Use or ad-hoc Playwright scripts while a DevTools browser tool is available.

Scale the inspection matrix to the change. Repository instructions may reduce the viewport/state matrix, including waiving multi-viewport checks; follow them. Absent such instructions, a small edit to existing UI needs verification only of the changed states at one representative viewport, while a new or substantially redesigned surface needs representative narrow and wide viewports and every changed interaction and state. Behavior belongs in the repository's automated tests where they exist; use the browser for visual, layout, and theme questions.

Check the rendered result for content hierarchy, subject specificity, asset loading, overflow, overlap, truncation, contrast, focus, hover, motion, empty/error states, and theme variants in scope. Compare it with the brief and the art direction. Fix visible defects and remove any element that does not materially serve either.

Do not claim visual verification from source inspection alone when rendering is available. If the environment cannot render the UI, state that limitation and report exactly what was verified instead.

Completion

Completion requires the requested artifact or code, a subject-specific direction reflected in the implementation, passing relevant local checks, and rendered inspection evidence when tooling permits. Report the direction in one sentence, the checks and viewports exercised, and any remaining limitation.

Finish builds with ### ✨ Built: <surface>, 🎨 Direction — <one sentence>, and ### 🧪 Verification; use a compact viewport/state/result table when several states were inspected and link screenshots or artifacts when available. Add ### ⚠️ Remaining only when non-empty. Agent-report decoration does not authorize emoji or ASCII ornament in shipped interface copy, snapshots, or source unless the brief or design system calls for it.

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.