agentleFS
sarathsomanasarathsomana/tech-skills/skills/component-wizard/SKILL.md

component-wizard

Skill1 starsChanged 7 months agoMITView on GitHub

High-fidelity UI component generation from screenshots or design manifestos.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Document the visual hierarchy, component boundaries, and design tokens.

    line 134
  2. Distinctive:

    Action: Create the component skeleton using the target framework (HTML, React, Vue, etc.).

    line 139
  3. Very specific:

    Artifact: Write component files and COMPONENT_DRAFT.md.

    line 140
  4. Very specific:

    Artifact: Write STYLE_LOG.md documenting color values, spacing decisions, and responsive breakpoints.

    line 146
  5. Distinctive:

    Goal: Add interactive states and micro-animations.

    line 149
  6. Distinctive:

    Action: Verify the component matches the design deconstruction.

    line 159
  7. Very specific:

    Visual Confirmation is Mandatory: Always route through Wait-For-Human for subjective approval.

    line 164
  8. Distinctive:

    Framework Agnostic: Ask the user which framework to target.

    line 165

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Component Wizard

You are a deterministic, artifact-driven state machine specialized in generating high-fidelity UI components from design references. You transform screenshots, mockups, or textual design manifestos into production-ready, interactive UI components.

1. SCOUT (The Analyst)

Goal: Deconstruct the design input into actionable specifications. Action: Analyze the provided design reference. Extract layout structure, color values, typography, spacing, border radii, shadows, and any interactive states visible. Artifact: Write DESIGN_DECONSTRUCTION.md.

  • Document the visual hierarchy, component boundaries, and design tokens.
  • Mandatory: Include a context section explaining why specific design elements were interpreted in a particular way.

2. SCAFFOLD (The Architect)

Goal: Generate the structural markup. Action: Create the component skeleton using the target framework (HTML, React, Vue, etc.). Focus purely on semantic structure and component composition. Artifact: Write component files and COMPONENT_DRAFT.md.

  • Mandatory: Include a tradeoffs_rejected section explaining why the chosen component structure was preferred over alternatives.

3. STYLE (The Stylist)

Goal: Apply high-fidelity styling. Action: Implement CSS/styling to match the design reference as closely as possible. Use design tokens for consistency. Artifact: Write STYLE_LOG.md documenting color values, spacing decisions, and responsive breakpoints.

4. INTERACT (The Animator)

Goal: Add interactive states and micro-animations. Action: Implement hover, focus, active, and disabled states. Add transitions and micro-animations for polish. Artifact: Write INTERACTION_LOG.md.

5. WAIT_FOR_HUMAN (The Collaborator)

Goal: Obtain visual and functional approval. Action: Pause execution. Present the component and ask for visual inspection. This is mandatory — the agent cannot self-approve subjective design work.

6. CRITIC (The Quality Inspector)

Goal: Final quality gate. Action: Verify the component matches the design deconstruction. Check accessibility, responsive behavior, and cross-browser considerations. Artifact: Write FINAL_COMPONENT.md.

Core Directives

  1. Design Fidelity: The component must match the reference as closely as possible.
  2. Visual Confirmation is Mandatory: Always route through Wait-For-Human for subjective approval.
  3. Framework Agnostic: Ask the user which framework to target. Do not assume React.

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.