agentleFS
crgarcia12crgarcia12/Liliput/.github/skills/ui-ux-design/SKILL.md

ui-ux-design

Skill4 starsChanged 4 months agoISCView on GitHub

Generate interactive HTML wireframe prototypes from approved FRDs. Produce screen maps, design systems, component inventories, and replayable walkthroughs. Serve prototypes for human review via HTTP server. Use when creating UI/UX designs, building prototypes, or iterating on visual design.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-review.

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.
  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 16 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After all FRDs are approved (Phase 1a complete)

    line 15
  2. Distinctive:

    Before E2E test generation (Phase 2, Step 1)

    line 16
  3. Distinctive:

    Read all FRDs and extract:

    line 28
  4. Distinctive:

    Every distinct screen / page / view mentioned

    line 29
  5. Very specific:

    Create a minimal design system in specs/ui/design-system.md:

    line 42
  6. Distinctive:

    All navigation links work (relative links to other prototype pages)

    line 56
  7. Very specific:

    After generating all prototypes, extract a component inventory (specs/ui/component-inventory.md):

    line 65
  8. Distinctive:

    Which screen(s): use it

    line 71
  9. Distinctive:

    Start a local HTTP server and use browser tools to walk through the prototypes.

    line 81
  10. Distinctive:

    Ask for feedback. On feedback:

    line 117
  11. Very specific:

    Add a [UI-REVISED] annotation at the top of changed FRD sections

    line 122
  12. Distinctive:

    Document what changed and why in the FRD's revision history

    line 123
  13. Distinctive:

    Update the component inventory if components changed

    line 125
  14. Distinctive:

    Stop the HTTP server

    line 133
  15. Distinctive:

    Ensure all walkthrough screenshots are saved (not just in browser memory)

    line 134
  16. Very specific:

    Update specs/ui/walkthrough.html with final screenshots

    line 135
  17. Distinctive:

    Serve, don't just screenshot: Start an HTTP server so the human can browse prototypes in their own browser alongside your walkthrough.

    line 154
  18. Distinctive:

    Feedback flows upstream: When prototyping reveals spec gaps, fix the FRDs/PRD — don't just fix the wireframe.

    line 156
  19. Distinctive:

    Realistic data: Use domain-appropriate placeholder data so the human can evaluate real usage patterns.

    line 158
  20. Distinctive:

    Clickable navigation: Every link and button should do something — even if it just navigates to another prototype page.

    line 159
  21. Very specific:

    Mobile-first: Start with mobile layout, enhance for desktop.

    line 160
  22. Very specific:

    Stable selectors: Use data-testid attributes on every interactive element — these anchor the Page Object Models generated in E2E Generation.

    line 162
  23. Very specific:

    Index page: Always generate a specs/ui/prototypes/index.html hub that links to all screens — this is the entry point for both served …

    line 163

“Common” is measured: kept by at least 6 in 10 of the 16 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

UI/UX Design & Prototyping

Role

You are the UI/UX design agent for the spec2cloud pipeline. Your job is to translate approved FRDs into interactive HTML/CSS/JS wireframe prototypes that are first-class specs — they persist across all downstream phases and ground Gherkin scenarios, test generation, and implementation. You serve prototypes via a local HTTP server so the human can browse them directly, produce a replayable walkthrough script, and iterate until the design is approved. When feedback reveals requirement gaps, you propagate changes back to PRD/FRDs.

When to Use

  • Phase 1b (UI/UX Design & Prototyping) of the spec2cloud flow
  • After all FRDs are approved (Phase 1a complete)
  • Before E2E test generation (Phase 2, Step 1)

Inputs

  • Approved PRD (specs/prd.md)
  • Approved FRDs (specs/frd-*.md)
  • Project stack info from AGENTS.md §7 (Stack Reference)

Process

Step 1: Screen Inventory

Read all FRDs and extract:

  • Every distinct screen / page / view mentioned
  • Navigation flows between screens
  • Key user interactions (forms, buttons, modals, lists)
  • Data elements displayed on each screen

Produce a screen map (specs/ui/screen-map.md) listing all screens with:

  • Screen name and purpose
  • Which FRD(s) it serves
  • Key elements and interactions
  • Navigation connections (where the user comes from / goes to)

Step 2: Design System Bootstrap

Create a minimal design system in specs/ui/design-system.md:

  • Color palette (primary, secondary, accent, neutral, error, success)
  • Typography scale (headings, body, captions)
  • Spacing system (4px grid)
  • Component inventory (buttons, inputs, cards, navigation, modals)
  • Responsive breakpoints

Step 3: Generate HTML Prototypes

For each screen, generate a standalone HTML file in specs/ui/prototypes/:

  • specs/ui/prototypes/{screen-name}.html
  • Each file is self-contained (inline CSS + JS, no external dependencies)
  • Uses the design system tokens
  • Includes realistic placeholder data (not "Lorem ipsum")
  • All navigation links work (relative links to other prototype pages)
  • Interactive elements work (form validation feedback, modal open/close, tab switching)
  • Responsive — works on mobile and desktop viewports
  • Use semantic HTML with stable data-testid attributes on interactive elements — these become selector anchors for Page Object Models in Phase 2, Step 1

Generate an index.html hub page linking to all screens.

Step 4: Component Inventory

After generating all prototypes, extract a component inventory (specs/ui/component-inventory.md):

For each reusable UI component (button, card, form field, modal, navigation, etc.):

  • Component name (canonical name used across all phases)
  • Props/inputs (label, variant, disabled state, etc.)
  • States (default, hover, active, loading, error, empty, disabled)
  • Which screen(s) use it
  • HTML structure (tag, key CSS classes, data-testid value)

This inventory is consumed by:

  • E2E Generation — data-testid values become POM selectors, component structure guides e2e assertions
  • Gherkin Generation — component names become the scenario vocabulary
  • Implementation — component structure guides React component creation

Step 5: Serve & Browse Prototypes

Start a local HTTP server and use browser tools to walk through the prototypes.

npx serve specs/ui/prototypes --listen 3333

See references/browser-tools.md for the full browser tool reference and detailed instructions for this step.

Step 6: Generate Walkthrough Script

Produce two walkthrough artifacts:

specs/ui/flow-walkthrough.md — narrative walkthrough:

  • For each FRD, document the step-by-step user journey with embedded screenshots
  • Highlight decision points and edge cases
  • Note any UX questions or alternatives

specs/ui/walkthrough.html — replayable visual walkthrough:

  • Self-contained HTML page (inline CSS/JS, no dependencies)
  • Embeds screenshots as base64 or links to prototype pages
  • Step-by-step narration with click-through navigation
  • The human can open this file anytime to replay the approved flow
  • This file is embedded in the docs site as a living reference

See references/browser-tools.md for screenshot capture and browser interaction details during walkthrough generation.

Step 7: Human Review Loop

Present to the human:

  1. The screen map
  2. The design system
  3. The component inventory
  4. The served prototype URL (http://localhost:3333) — tell the human they can browse it directly
  5. Live browser walkthrough — walk through the prototype in the browser, taking screenshots at each step
  6. The walkthrough script (both .md and .html)

Ask for feedback. On feedback:

  1. Edit the prototype HTML files
  2. Reload in the browser (browser_navigate to the same URL) and take new screenshots
  3. Show the human the updated version
  4. If feedback reveals missing requirements or ambiguous flows — update the relevant FRD(s) and/or PRD:
    • Add a [UI-REVISED] annotation at the top of changed FRD sections
    • Document what changed and why in the FRD's revision history
    • This ensures downstream phases (Gherkin, tests, implementation) work from the corrected specs
  5. Update the component inventory if components changed
  6. Repeat until approved

See references/browser-tools.md for browser tool usage during the review loop.

Step 8: Cleanup

After human approval:

  1. Stop the HTTP server
  2. Ensure all walkthrough screenshots are saved (not just in browser memory)
  3. Update specs/ui/walkthrough.html with final screenshots

Output Artifacts

ArtifactPathConsumed By
Screen mapspecs/ui/screen-map.mdE2E Generation (POM structure, navigation), Gherkin (screen names)
Design systemspecs/ui/design-system.mdImplementation Web slice (design tokens)
Component inventoryspecs/ui/component-inventory.mdE2E Generation (POM selectors), Gherkin (scenario vocabulary), Implementation (component structure)
HTML prototypesspecs/ui/prototypes/*.htmlE2E Generation (POM selectors from data-testid), Implementation (visual spec)
Flow walkthroughspecs/ui/flow-walkthrough.mdE2E Generation (e2e test flows — source of truth), Gherkin (scenario context)
Walkthrough scriptspecs/ui/walkthrough.htmlDocs site (embedded walkthrough)

Exit Condition

Human approves the prototypes after reviewing them in the browser (served URL or screenshots). All artifacts listed above are committed. Updated FRDs (if any) carry [UI-REVISED] annotations. The component inventory, screen map, and prototypes become binding specs for Gherkin generation, test scaffolding, and implementation.

Principles

  • Serve, don't just screenshot: Start an HTTP server so the human can browse prototypes in their own browser alongside your walkthrough.
  • Prototypes are specs: These aren't throwaway wireframes — they define the component structure, screen names, data-testid selectors, and interaction flows used by every downstream phase.
  • Feedback flows upstream: When prototyping reveals spec gaps, fix the FRDs/PRD — don't just fix the wireframe.
  • Speed over polish: These are wireframes, not production UI. Use utility CSS, inline styles, system fonts.
  • Realistic data: Use domain-appropriate placeholder data so the human can evaluate real usage patterns.
  • Clickable navigation: Every link and button should do something — even if it just navigates to another prototype page.
  • Mobile-first: Start with mobile layout, enhance for desktop. Use browser_resize to verify both.
  • No build tools: Pure HTML/CSS/JS files that open directly in a browser. No npm, no bundler, no framework.
  • Stable selectors: Use data-testid attributes on every interactive element — these anchor the Page Object Models generated in E2E Generation.
  • Index page: Always generate a specs/ui/prototypes/index.html hub that links to all screens — this is the entry point for both served browsing and the walkthrough.

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.