Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

proto-spec-ui

БесплатноБез исполняемых скриптовНе проверен

Prototype the screens of a spec in the proto gallery (@protohq/cli) to Pedro's quality bar, from reference research through gallery structure, visual QA…

pedronauckот pedronauck★ 661 звезда на GitHub

Об этом скилле

Prototype a spec's UI

The prototype is where Pedro decides what the product looks like, and the implementation must match it: "igual OU melhor, nunca pior". The usual failure is a first round of basic screens that Pedro rejects, followed by him repeating the same corrections over and over:

  • "alguns stats em cima e tabela em tudo, básico e clichê"
  • the layout is cramped
  • components are hand-made when the app already has them
  • the gallery is a mess

This skill stops those repeats. Mechanics (proto check, meta, drafts, flows, guards, comments CLI) live in the proto skill. Load it alongside this one. The project's docs/design/prototyping.md and AGENTS.md override anything here for that project.

Procedure

Order matters at steps 2→3→4 and 5→6. The rest adapts to the request.

  1. Read the spec and map the screens. Use _spec.md, _uiux.md, roles and the data each screen shows. List the real navigable screens (routes and settings sections) in the order a user meets them. Spec gaps found while drawing go to Pedro as Q1 - a) questions: a short "why" first, no jargon, recommended option first and marked. Don't decide for him or turn the doubt into a gallery state.

  2. Research before drawing anything. For each screen, produce a visualization map:

    • the question the screen answers;
    • the shape of each piece of information and the component that encodes it;
    • the product components it reuses, with their paths;
    • the reference it learns from, from captures of the app's most mature sibling modules, the design-system catalog and external references.

    Run this research in parallel subagents per area. The output is decisions per screen, not a list of links. See references/visual-bar.md §Information shapes and references/orchestration.md §Research.

  3. Build one reference first. Build the shell, the home or cockpit, and the main list screen. Compare them side by side with the sibling module's real screens. Fan out only after they hold that level.

  4. Fan out by surface. Use one strong agent (Opus High unless Pedro names another model and effort) per group of screens, with disjoint files and a brief carrying Pedro's literal directions and this skill. Workers run only proto check --json and proto flow coverage --json. See references/orchestration.md §Lanes.

  5. Run conductor QA before Pedro sees anything. Render every state, open the images and click every interaction. Return defects to the lanes and repeat until clean. See §Visual QA below.

  6. Show it live. Keep the gallery server running and send direct links for each screen and state. Never ask Pedro to start a command. Before pointing him there, check that the server is still up. Commit screen by screen, most visible first. Never leave placeholder screens in a gallery he is watching.

  7. Apply comment rounds. Use proto-apply-comments. Every comment is a pattern: fix its whole class on every screen that shares it, then name those screens in the reply. Answer each thread with what changed and a screenshot at the viewport he commented from. Resolve threads but never approve them. When a comment changes product behaviour, update the spec, _uiux.md and the ADRs or Q list too.

  8. Commit and hand off. Commit after Pedro approves. The approved prototype becomes the frontend contract (§Parity).

Done when Pedro approves in chat or in the gallery. Before that, proto check and flow coverage are clean, there are no console errors in any state, and the conductor has looked at every state in both themes.

Gallery structure

  • One entry per real screen. A screen is something the user navigates to.
    • Dialogs, drawers, popovers, pickers, ⌘K, shortcut panels and confirmations are states of the screen where they open, rendered over the full screen.
    • Atoms, fixtures, data and shared kits live in a folder with no index.proto.tsx.
    • Never put a whole module into one prototype as states (one campanhas prototype had 114 states).
  • Name screens by order of use. Slugs follow <spec>-NN-<screen> in that order. The title is only the screen name, since the gallery already groups by spec. route is the real route. Declare roles.
  • 6–14 states per screen. The first is the normal, populated screen. Labels describe what the reviewer sees, in the product's language. Cover empty, loading, error, permission/role, long content and volume. Data scenarios can live in a scenario control instead of multiplying states.
  • No proposta-* alternatives unless Pedro asks or hesitates. When he does, put labelled variations (A/B/C) side by side with stress data.
  • Real chrome. Every state renders inside the module's real chrome (rail, sidebar, header, dock), not as a loose component.
  • Flows connect the screens, and every state belongs to some journey.

Visual bar

references/visual-bar.md is the full rulebook. Read it before the first d

Полный SKILL.md на GitHub

Установить proto-spec-ui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/orchestration.mdreferences/projects.mdreferences/visual-bar.md

FAQ

Что делает скилл proto-spec-ui?

Prototype the screens of a spec in the proto gallery (@protohq/cli) to Pedro's quality bar, from reference research through gallery structure, visual QA, comment rounds and implementation parity. Use when asked to make the /proto of a spec, to redo or review such a prototype, to apply a round of gallery comments across a spec, or to implement a spec from its approved prototypes. CLI, meta and guard mechanics belong to the proto skill; a single comment thread belongs to proto-apply-comments.

Как установить скилл proto-spec-ui?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл proto-spec-ui запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить proto-spec-ui с