Command Palette

Search for a command to run...

Назад к скиллам
скилл № 57259

wireframer

Preview trusted project-owned UI board functions in Hyper and edit a precise design target from contextual feedback.

БесплатноЗапускает вложенные скрипты
hyper-code-harnessот hyper-code-harness★ 22 звезды на GitHub

Установить wireframer в Claude Code и Claude Desktop

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

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

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

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

Wireframer: working agreement

Vocabulary. Hyper Canvas is the host panel. A Wireframer tab (canvas kind wireframer.design) shows one design folder. A numbered board is one screen; a widget belongs to a board. A design is a prototype, not a connected business service: changing a row edits its appearance, not a real contact or deal.

Source of truth. One project-relative folder = one design. It is a plain folder, not a plugin: nothing is mounted, registered or added to ctx.fns.

designs/mini-crm/
  studio.json        { "version": 2, "title": "Mini CRM", "lang": "ru", "boards": ["overview", "deals", …] }
  boards/<name>.ts   one board per file; the list in studio.json gives the order
  parts/<name>.ts    what the boards of this design share (an app header, tabs) — optional
  design.css         the design's own styles — optional

Optional keys of studio.json: lang, columns (boards per row, default 3), boardWidth (px, default 740). A board name is a lower-camel identifier and is also the board id.

Another project's widgets (a kit). To draw screens of another project with its own widget library, name the library in studio.json:

{ "version": 2, "title": "Vitals", "boards": ["vitals"],
  "kits":   { "procs.ui": "~/hw-uswr-prompts/procs/src/procs/ui" },
  "styles": ["~/hw-uswr-prompts/build/app.css"] }

kits maps a namespace to a folder: every <fn>.ts of the folder that default-exports (ctx, session, opts) => string is callable from a board as ctx.fns.<namespace>.<fn>(opts), with sample data as literals. styles lists what is put on the page before design.css (up to 8 entries): a finished .css file (2 MB at most), or a command that builds one — see below. Paths are absolute, start with ~/, or are relative to the design folder; these are the only files of a design that may live outside it, and they are trusted code like the boards — opening the design runs them. The tab follows the kit folder: an edited kit widget or stylesheet redraws it.

What to know before using one:

  • The namespace is the kit's own. ctx.fns.procs.ui.badge is the kit's badge.ts or an error naming the missing file — never a function Hyper has under the same name. A kit cannot be named w, markdown, wireframer, diagramer, diagrams or svg.

  • A kit function gets what a board gets: other kit functions and the library, an empty ctx.state, no database. One that needs more fails its board with a message naming the call.

  • A stylesheet file must be already built: nothing is compiled here, so a class the sheet does not contain is not styled. When the boards use utility classes (Tailwind), let the other project build the sheet instead:

    "styles": [{ "build": ["bun", "procs/script/css.ts"], "cwd": "~/hw-uswr-prompts", "watch": ["procs/src/procs/styles"] }]
    

    build is a command as an argv array (no shell); it is run in cwd (default: the design folder) with --source <absolute design folder> appended, and must print the finished CSS to stdout and nothing else. Scanning the boards and parts under --source for classes is the command's job. watch names the folders of its style sources, relative to cwd. The command runs only when a drawing is made and its inputs changed — a board or part, a kit file, a file in a watch folder — and when a person presses Refresh; otherwise the sheet built last is reused. It gets 60 s and 4 MB, and a short environment (PATH, HOME — none of the server's settings). When it fails (non-zero exit, nothing printed, too long) the design is still drawn with the sheet built last and the failure is in the problems, with the first lines of what the command wrote to stderr.

  • Isolation. A kit's stylesheet carries its own reset and utilities, which would restyle Hyper's page and be restyled by it. "isolate": true in studio.json keeps the content of every board in a shadow root: the design's CSS (styles, design.css) is given to those roots and not to the page, and the widget library's styles do not reach in. A board says otherwise with d.board({ …, isolate: false }); one board of an ordinary design can be isolated with isolate: true. A board is one or the other: on an isolated board w.* widgets come out unstyled, and in an isolated design a board that opted out gets none of the design's CSS. The frame and caption of a board, selection, Parent, the Code view and wireframer.snapshot work the same. For the sheet to work inside a root its :root rules must also name :host (:root,:host{…}) — the kit's build does that; @property and @font-face rules are copied to the page by Wireframer.

  • An element is selectable only if the kit gives it data-widget-id, and the ids must be unique in the design like any others. Ids a kit makes up for inner parts (pulse, step-up) repeat as soon as two boards use the same widget: wireframer.check reports them.

  • The line of a kit widget is found by its id as text, n

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

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

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

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

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

  • package.json
  • src/wireframer/$canvas_design.ts
  • src/wireframer/$stop.ts
  • src/wireframer/Design.ts
  • src/wireframer/Scope.ts
  • src/wireframer/Target.ts
  • src/wireframer/ask.ts
  • src/wireframer/askPopup.ts
  • src/wireframer/board.css
  • src/wireframer/board.ts
  • src/wireframer/buildStyle.ts
  • src/wireframer/cards.ts
  • src/wireframer/check.ts
  • src/wireframer/create.ts
  • src/wireframer/document.ts
  • src/wireframer/focus.ts
  • src/wireframer/library.ts
  • src/wireframer/open.ts
  • src/wireframer/page.css
  • src/wireframer/page.js
  • src/wireframer/problems.ts
  • src/wireframer/refresh.ts
  • src/wireframer/render.entry.ts
  • src/wireframer/resolve.ts
  • src/wireframer/roots.js
  • src/wireframer/snapshot.ts
  • src/wireframer/tab.ts
  • src/wireframer/unwatch.ts
  • src/wireframer/watch.ts
  • src/wireframer/wireframer.browser.it.test.ts
  • src/wireframer/wireframer.isolate.it.test.ts
  • src/wireframer/wireframer.snapshot.it.test.ts
  • src/wireframer/wireframer.styles.it.test.ts
  • src/wireframer/wireframer.test.ts
  • src/wireframer/wireframer.watch.it.test.ts
  • src/wireframer/workspace.ts

FAQ

Что делает скилл wireframer?

Preview trusted project-owned UI board functions in Hyper and edit a precise design target from contextual feedback.

Как установить скилл wireframer?

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

Скилл wireframer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить wireframer с