Skip to content

UI & Design

Interface Craft

Free

Design a screen around one job, one primary action, and the empty, loading, and error states before any decoration.

Difficulty foundational

Purpose

Stop agents from producing generic pages that look finished but cannot be used.

Procedure

--- name: interface-craft description: Design a screen around one job, one primary action, and the empty, loading, and error states before any decoration. ---

Interface Craft

Purpose

Stop agents from producing generic pages that look finished but cannot be used.

Procedure

Before writing interface code, write a six-line brief in the working notes, not as a comment dump in the component:

  1. Who is on this screen, and what job are they finishing?
  2. Which decisions must they make, in order?
  3. What is the single primary action? Name every other action as secondary or destructive.
  4. What does empty, loading, error, and success look like?
  5. What density is appropriate: comfortable for infrequent setup, compact for repeated scanning?
  6. Which existing components, type sizes, and spacing steps will be reused?

Then build only that. Do not introduce a new accent color, a new radius, or a second button style.

Layout rules:

  • Narrow screens are one column. Content must not require horizontal scrolling.
  • The title and the primary action share the first row on wide screens and stack on narrow ones.
  • Labels sit with their controls. Helper text is optional and never the only instruction.
  • Touch targets are at least 44px. Focus order follows visual order.

Finish by checking the brief against the result. If a control does not serve the job, remove it. Return a three-line summary of the decisions. Do not add a hero, testimonial, or gradient to an application screen.

Example requests

1. Rebuild a settings screen

Request: Use Interface Craft on the account settings page. Keep the existing data. Do not add a marketing hero. Expected: A short decision list, then a settings layout with one primary save action and explicit error state.

Dependencies

None. Work in the repository that is already open. Do not add packages unless the procedure names one.

Compatibility

This document follows the Agent Skills layout (a folder named interface-craft containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it. Last verified 2026-11-15.

Example prompts

Rebuild a settings screen

Use Interface Craft on the account settings page. Keep the existing data. Do not add a marketing hero.

Expected: A short decision list, then a settings layout with one primary save action and explicit error state.

Install for GitHub Copilot

  1. 1Copy Interface Craft with “Copy for Copilot”. That file is the instruction Copilot reads.
  2. 2In this repository, save it at .github/instructions/interface-craft.instructions.md.
  3. 3The applyTo line should match the files this procedure is for. Use a narrow path when you know it.
  4. 4Repository-wide notes stay in .github/copilot-instructions.md and should stay short. This procedure does not go there.
  5. 5Open Copilot in this repository and ask it to follow Interface Craft.

Related

  • SaaS Dashboard

    Structure an operational dashboard: status first, then the queue of work, then detail. No vanity metrics.

  • Form States

    Build forms with labels, inline errors, pending submits, and no silent failure.

  • Responsive Shell

    Build an application shell that works at 390px and on a laptop: navigation, scroll, and safe targets.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.