agentleFS
MaximepodgorskiMaximepodgorski/agent-skills/design-screen/SKILL.md

design-screen

Skill21 starsChanged 6 months agoMITView on GitHub

Compose UI screens from existing components. Proposes ASCII wireframe layouts with real component mapping and coverage %, then specs the chosen layout. 6 actions: init, spec, spec-review, craft, ship, review. Core guarantee: zero component reinvented. Auto-activates on: "design-screen", "design-screen spec", "design-screen init", "design-screen craft", "design-screen ship", "design-screen build", "design-screen review", "design-screen spec-review", "compose screen", "screen layout", "compose ui", "design screen".

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. plugin87/ux-ui-agent-skills★ 3.1ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Fallback rule: If Figma MCP is unavailable, the skill works from text input and codebase analysis.

    line 32
  2. Distinctive:

    Zero reinvention: If a component exists, reuse it.

    line 68
  3. Very specific:

    When a Figma URL is provided to spec, the skill extracts design context:

    line 101
  4. Distinctive:

    When a missing component is flagged during spec or ship:

    line 124
  5. Distinctive:

    Loading rule: Read the action file BEFORE executing.

    line 165
  6. Very specific:

    Auto-init: If any action detects missing ds/conventions.md, it auto-triggers init before proceeding.

    line 167
  7. Distinctive:

    If section is missing → first run, create it

    line 246
  8. Very specific:

    When user runs /design-screen with no action:

    line 253
  9. Distinctive:

    All behavior is configurable by editing the skill files directly.

    line 272

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

Design Screen

Compose UI screens from existing components. Zero reinvention.

Agent Capabilities

CapabilityUsed ForRequiredFallback
File read/writeConventions, specs, progress trackingYes—
Code search (grep/glob)Component scan, token detection, pattern discoveryYes—
Shell/command executionQuality gates (lint, typecheck) during shipRecommendedList commands for user to run
Task/todo trackingShip loop progressRecommendedTrack in spec Progress section
User interactionCompose option selection, stuck escalation, gap decisionsYes—
Figma MCPDesign context extraction (spec), component placement draft (craft)Optional (required for craft)Text-only compose mode (spec), skip craft (ship directly)

Fallback rule: If Figma MCP is unavailable, the skill works from text input and codebase analysis. Warn the user and proceed.

Actions

ActionInputOutputReference
init(none — scans project)ds/conventions.mdinit.md
spec "{name}" [figma-link]Screen name + optional Figma linkSpec in ds/screens/active/spec.md
spec-review(reads active spec)Multi-perspective review verdictspec-review.md
craft(reads active spec + Figma file)Figma component placement draftcraft.md
ship(reads active spec)Implemented screen (ship loop)ship.md
review(reads built files + spec)Compliance reportreview.md

Flow

Recommended (new screen):
  init → spec "{name}" → spec-review → craft → ship → review

Daily use (existing project):
  spec "{name}" → ship

With Figma validation:
  spec "{name}" → craft → ship

Quick (simple screen, high coverage):
  spec "{name}" → ship

Complex screen:
  spec "{name}" → spec-review → craft → ship → review

Each action is standalone — usable independently. Each action suggests the next in its output.

Philosophy

  • Zero reinvention: If a component exists, reuse it. Never create what's already there.
  • Compose, don't create: The skill assembles screens from existing pieces, not from scratch.
  • Coverage honesty: Report real component-to-zone mapping. Don't inflate numbers.
  • Human-in-the-loop: User picks the layout. User decides on gaps. Agent proposes, user disposes.
  • Conventions over opinions: Adapt to the project's patterns, never impose.
  • ASCII-first proposals: Visual wireframes in chat, mapped to real components.
  • Stack-agnostic: Works with React, Vue, Svelte, Angular, Web Components.

Conventions Boundary

ds/conventions.md contains ONLY stable project DNA:

  • Stack, naming, token structure, folder paths, import patterns, layout patterns

Never persisted: Component inventory, token values, route lists. These are always live-scanned.

3-Layer Knowledge Model

Layer 1: references/principles/     Generic knowledge (any project)
         layout-patterns.md         "A sidebar pattern = SideNav fixed + content scrollable"
         composition.md             "Shell → Layout → Content hierarchy"
         page-states.md             "5 states: loading, success, empty, error, partial"
         responsive.md              "Sidebar collapses: full → icon-only → drawer"

Layer 2: ds/conventions.md          Project DNA (generated by init, stable)
                                    "Components in libs/ui/, PascalCase, tokens in CSS vars"

Layer 3: Live scan                  Real-time state (at spec/ship runtime)
                                    "47 components: Button, Input, FormField, DataTable..."

Figma Integration

When a Figma URL is provided to spec, the skill extracts design context:

Figma link provided?
  │
  ├─ YES → Call get_design_context(fileKey, nodeId)
  │         → Extract layout structure, components, spacing
  │         → Map Figma components to project inventory
  │         → Compose options are more precise (design-driven)
  │
  └─ NO  → Text-only compose (description-driven)

Figma MCP unavailable?
  → Warn: "Figma MCP not available. Continuing with text description."
  → Proceed in text mode

URL parsing:

  • figma.com/design/:fileKey/:fileName?node-id=:nodeId → convert - to : in nodeId
  • figma.com/design/:fileKey/branch/:branchKey/:fileName → use branchKey as fileKey

Component Skill Handoff

When a missing component is flagged during spec or ship:

Component gap detected
  │
  ├─ Propose solutions to user:
  │   1. Create via /component spec {name} → new component
  │   2. Adapt existing component → extend props/slots
  │   3. Use alternative existing component
  │   4. Proceed with gap (document in spec)
  │
  └─ User decides → action taken → resume design-screen flow

The design-screen skill delegates component creation to the component skill. It never creates components itself.

Action Router

User input
  │
  ├─ "init", "setup", "onboard"        → Load references/actions/init.md
  │
  ├─ "spec", "compose", "design screen",
  │  "screen layout"                    → Load references/actions/spec.md
  │
  ├─ "spec-review", "review spec",
  │  "challenge spec"                   → Load references/actions/spec-review.md
  │
  ├─ "craft", "design in figma",
  │  "figma draft", "craft screen"      → Load references/actions/craft.md
  │
  ├─ "ship", "build", "implement",
  │  "ship screen"                      → Load references/actions/ship.md
  │
  ├─ "review", "check screen",
  │  "compliance check"                → Load references/actions/review.md
  │
  └─ (no action / "help" / "status")   → Status (below)

Loading rule: Read the action file BEFORE executing. The action file contains all logic, principles references, and templates needed.

Auto-init: If any action detects missing ds/conventions.md, it auto-triggers init before proceeding.

Input detection:

Input contains figma.com URL?
  YES → Extract fileKey + nodeId, pass to spec action
  NO  → Treat input as screen name/description

Principles

Standards that inform composition. Loaded by actions as specified in the loading table.

PrincipleFocusReference
Layout PatternsSaaS/Mobile pattern cataloglayout-patterns.md
CompositionScreen-level assembly rulescomposition.md
Page StatesLoading, empty, error, successpage-states.md
ResponsiveBreakpoint strategy, collapse patternsresponsive.md

Principles Loading Table

ActionLoads
initlayout-patterns (to detect existing patterns)
specall 4 principles
spec-reviewnone (agents receive spec + codebase context directly)
craftlayout-patterns + composition (to inform zone structure)
shipcomposition + page-states
reviewall 4 principles

Templates

File Templates (generated output files)

TemplateUsed byReference
Conventionsinitconventions.md
Screen specspecspec.md

Output Templates (chat messages)

TemplateUsed byReference
Init outputinitinit-output.md
Spec outputspecspec-output.md
Spec-review outputspec-reviewspec-review-output.md
Craft outputcraftcraft-output.md
Ship outputshipship-output.md
Review outputreviewreview-output.md

Project Structure (in user's project)

ds/
├── conventions.md                    ← Project DNA (from init)
└── screens/
    ├── active/                       ← Current screen specs
    │   └── 2026-03-24-settings.md
    ├── shipped/                      ← Completed screens
    └── dropped/                      ← Abandoned screens

Workflow State

Each action updates the spec's ## Workflow section to track cross-action state:

## Workflow
last_action: craft           # init | spec | spec-review | craft | ship | review
last_action_status: COMPLETE  # COMPLETE | PARTIAL | ERROR | IN_PROGRESS
coverage_at_spec: 85%         # from spec compose phase
coverage_at_craft: 70%        # from craft mapping (if craft ran)
craft_figma_page: "settings — craft"  # Figma page name (if craft ran)

Rules:

  • Each action READS this section on load to understand prior state
  • Each action WRITES this section on exit with its result
  • If section is missing → first run, create it
  • Status section (below) uses this to suggest next action

Status (Default — No Action Specified)

When user runs /design-screen with no action:

1. Check ds/conventions.md → exists? stale?
2. Check ds/screens/active/ → any active spec?
3. Check recent ship progress → any in-progress?

State → Suggestion:
  No conventions.md         → "First time? Run: /design-screen init"
  Conventions, no spec      → "Ready. Run: /design-screen spec \"{screen name}\""
  Active spec, not shipped  → "Spec ready. Run: /design-screen craft (Figma draft) or /design-screen ship"
  Active spec, craft done   → "Craft done. Run: /design-screen ship"
  Active spec, ship WIP     → "In progress. Run: /design-screen ship (resumes)"
  Active spec, ship done    → "Shipped. Run: /design-screen review"
  All complete              → "Done. Run: /workflow done"

Configuration

All behavior is configurable by editing the skill files directly.

What to changeEdit
Action logicreferences/actions/{action}.md
Screen principlesreferences/principles/{principle}.md
Output templatesreferences/templates/outputs/{action}-output.md
File templatesreferences/templates/{template}.md

References

Actions:

  • Init | Spec | Spec-Review | Craft | Ship | Review

Principles:

  • Layout Patterns | Composition | Page States | Responsive

Templates (files):

  • Conventions | Spec

Output (chat):

  • Init | Spec | Spec-Review | Craft | Ship | Review

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.