Dev.to WebDev 🛠 Dev 👁 2 📖 6 min read

300 templates should not become 300 prompt attachments

How a composable UI skill turns a one-sentence brief into a multi-route, browser-tested site—without stuffing the whole reference corpus into context. Most AI website demos have the same shape. There is a large hero,

300 templates should not become 300 prompt attachments

How a composable UI skill turns a one-sentence brief into a multi-route, browser-tested site—without stuffing the whole reference corpus into context.

Six generated industry cases

Most AI website demos have the same shape. There is a large hero, a row of cards, a gradient, and a polite call to action. It looks acceptable in a screenshot because a screenshot asks only one question: does the first screen look designed?

A real website asks harder questions:

  • What is this page for?
  • What belongs on this route rather than another one?
  • What does the user need to compare, decide, book, buy, or understand?
  • What happens on the second visit?
  • What does the mobile version preserve?
  • What does “done” mean beyond “HTML was emitted”?

UI Skill started as an attempt to answer those questions inside a coding agent. It is a portable SKILL.md workflow for Codex, Claude Code, Cursor, Gemini CLI, and other compatible runtimes. The first version failed in a familiar way: it treated the reference corpus as a pile of templates and asked the model to imitate harder.

This is the story of why that failed, what replaced it, and what the workflow actually produces.

The corpus was valuable. The retrieval was wrong.

The source corpus contains more than 300 UI references. It is valuable because it contains many genuinely different spatial ideas: editorial stacks, control rooms, archive grids, product pedestals, museum hangs, split proofs, spatial corridors, and more.

But a template is not a prompt. It is a bundle of decisions: page job, information hierarchy, composition, typography, material, density, object treatment, interaction, and content model. When hundreds of those bundles compete for context, three things happen:

  1. Cost rises without a proportional increase in quality. The model spends attention on irrelevant documents.
  2. Surface signals dominate. A distinctive image or type treatment gets copied while the underlying information architecture is ignored.
  3. The output regresses toward an average. The model sees many possibilities and produces a safe blend of all of them.

The result was exactly the failure the corpus was supposed to prevent: different colors, same square page.

Separate “what the page must do” from “how it can feel”

The redesign starts with a distinction.

A structural pattern card describes the job of a page: scenario, audience, content objects, page roles, state model, navigation logic, and required sections. It answers: what must this page communicate, and in what order?

A visual fingerprint describes the design-bearing signals of a reference without copying its body. It records silhouette, anchor object, composition family, depth behavior, shape grammar, material treatment, typography behavior, visual motif, and anti-patterns. It answers: how could this composition feel different?

Those are different retrieval problems. A brief about a cold-chain operations desk needs an exception-first information architecture. A brief about a museum needs an object-led editorial pace. A coffee roastery needs product evidence and a purchase path. The visual direction should follow the page job, not replace it.

The skill retrieves a small set:

  • 3–5 structural patterns
  • 2–3 principles
  • 1 style capsule
  • 1 negative pattern
  • at most 3 fingerprints per direction

That budget is not arbitrary. It keeps the context focused enough for the model to make a deliberate composition instead of averaging a library.

The confidence gate

One of the most important behaviors is what the skill refuses to do.

If the brief is ambiguous, it does not invent a confident website. It returns 2–3 candidate directions, each with a rationale and a description of the tradeoff. The user can choose a direction, combine two, or supply the missing constraint.

This matters because “make me a beautiful site for my business” is not a design brief. It is a request for the model to guess. Guessing produces generic work even when the execution is technically competent.

A low-confidence response might look like:

  • Direction A: Evidence-first editorial site for a founder-led studio
  • Direction B: Product-led site for a repeatable service
  • Direction C: Marketplace-like comparison surface for multiple offers

Each direction implies a different information architecture. Showing that difference is more useful than pretending the ambiguity does not exist.

From brief to design contract

The workflow is staged:

one-sentence request
  -> structured brief + evidence
  -> confidence gate
  -> pattern / principle / style / fingerprint retrieval
  -> DesignSpec
  -> DESIGN.md + prompt.md
  -> 6-8 connected routes
  -> browser audit + interaction test + screenshot review

The DESIGN.md and prompt.md files are not decoration. They make the design decision inspectable. If the output is wrong, you can see whether the problem came from the brief, the selected direction, the information architecture, the visual system, or the implementation.

The standard site target is deliberately larger than a landing page: 6–8 real routes, with at least four substantive sections per route. A compact 4–5 route mode exists only when the user explicitly asks for a smaller scope.

That constraint changes the model’s behavior. It cannot solve every page with a hero and three cards, because it has to explain what the other routes are for and how they connect.

Six industries, six spatial arguments

The launch showcase includes six generated cases. They are not meant to prove that the system is perfect. They are meant to make the design question visible.

Industry Information architecture Visual direction
Community healthcare Team and clinician choice, availability, visit preparation, booking Poster Stack × Pastel Soft Tech
Cold-chain logistics Exceptions, lane board, load dossier, method Product Pedestal × Control Room
City museum Rooms, objects, stories, route planning Salon Hanging × Museum Editorial
Architecture studio Project ledger, case files, studio method, inquiry Archive Grid × Quiet Luxury
Personal finance Monthly position, activity ledger, plan, method Chapter Route × Neo Swiss
Specialty coffee Lots, product dossier, subscription, brew guide, journal Product Pedestal × Warm Editorial

The healthcare case is quiet and paper-like. The logistics case is dark, dense, and exception-first. The museum case slows the reader down. The architecture case behaves like a drawing archive. The finance case is built around a number and a ledger. The coffee case treats the bag as an object with provenance.

Those differences are structural. A color swap cannot produce them.

UI Skill workflow demo

Verification is part of the workflow

A design skill that stops at “here is some HTML” is not finished. The workflow includes browser evidence:

  • Every route is loaded.
  • Responsive layouts are checked at desktop and mobile widths.
  • Keyboard access and interactive states are exercised.
  • Screenshots are reviewed rather than assumed.
  • The result is reported as routes and interactions tested, not just files created.

The public showcase contains 27 demo routes. During launch preparation, all 28 showcase pages (including the hub) were checked at 1440px and 390px widths, with no console errors, broken local links, or horizontal overflow. The underlying skill test suite reports 97 passed.

That does not guarantee production readiness. It does guarantee that the demo is not a collection of screenshots pretending to be a product.

What the license does and does not allow

UI Skill is distributed under CC BY-NC 4.0. It is free for non-commercial use. Commercial use requires separate permission from the relevant rights holders.

The repository does not redistribute the original template bodies, brands, images, fonts, icons, or code. The 303 public entries are distilled fingerprints and a catalog. That boundary is intentional: it respects the source corpus and keeps the skill focused on design reasoning rather than asset copying.

What is still hard

The system is early, and there are honest limitations.

  • Output quality still depends on the host model.
  • A fingerprint can preserve a spatial idea without guaranteeing that the generated content is strong.
  • Dense operational interfaces and editorial sites stress different parts of the workflow.
  • The confidence gate is useful, but it adds a turn to the conversation.
  • The skill cannot prove that a design is commercially good. It can only make the reasoning and the implementation more inspectable.

The next improvements should come from real failures: a route that gets thin, a direction that collapses into generic SaaS, an installation path that confuses a new user. Those are more valuable than adding more templates.

Try it

Live showcase: https://urlhearts.github.io/ui-skill/

Source and installation: https://github.com/urlhearts/ui-skill

npx skills add urlhearts/ui-skill --skill ui-skill -g -y

Start with a concrete product idea, not “make it beautiful.” The skill is most useful when the brief has a real job to do.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.