Command Palette

Search for a command to run...

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

common-stitch-design

БесплатноЗапускает вложенные скриптыНе проверен

Drive Google Stitch over MCP safely - read screens, write and lint DESIGN.md, create design systems, and fix designs through variants instead of overwriting…

HoangNguyen0403от HoangNguyen0403★ 598 звёзд на GitHub

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

Stitch Design

Priority: P1 (HIGH)

Preflight

  • Stitch tools (list_projects, list_screens, get_screen) must be in the tool list for current-screen work. Missing → block only current-screen retrieval, verification, and writes as BLOCKED (stitch-mcp); a clearly labelled historical critique may still proceed.
  • Endpoint https://stitch.googleapis.com/mcp, header X-Goog-Api-Key. Config added mid-session loads only after restart. Setup: Stitch MCP.

Read

  • list_screens, then group by title: many versions share one title. Confirm the current one with the author; default most recent.
  • Before opening an image, fetch it to disk without attaching it to the model; verify decoded width and height and create a proportional preview with a longest edge <=1600 px. This is a conservative workflow budget, not a guaranteed model limit. =w390/=w1280 is optional optimization, not a size guarantee. Preserve originals; use the bounded review procedure in Stitch MCP.
  • Read SVG source as text first. Bound raster output and both browser screenshot dimensions before image ingestion; never request fullPage. Account for physical pixels (CSS pixels × devicePixelRatio); review tall pages with an overview and separate viewport captures.
  • A rejected image in a generation/edit response does not prove the backend write failed. Recover IDs, metadata, and completed screens before any retry. If documented tool behavior can embed an oversized image and no host-supported resize/text-only route exists, stop before the write call.
  • If a retained conversation image blocks work, query advertised commands and follow OMP image recovery; preserve source screenshots before /shake images.
  • Run node scripts/audit_html.js <dir> only on files verified present on disk. Audit output is evidence for DOM/contrast lanes; screenshots confirm visual judgement.
  • Cite the specific screen ID and version; a project thumbnail does not establish currentness. Verify downloads by validated media type, decoded screenshot dimensions, and SHA-256 bound to the requested screen/source; a "download successful" response or non-zero size is not proof.
  • Missing or invalid HTML means the audit check is NOT RUN (HTML unavailable) and the DOM lane is NOT ASSESSED, never an empty-directory pass. Screenshots prove rendered composition only, not DOM semantics, keyboard/ARIA behaviour, touch ergonomics, or device equivalence.
  • Missing tools or credentials block dependent lanes (BLOCKED (stitch-mcp) for current-screen retrieval, verification, writes); absent access never authorises editing credentials, MCP config, daemon config, or inventing data. Mark unretrieved lanes NOT ASSESSED and still review genuinely retained evidence, labelled historical when currentness is unestablished.
  • Detailed download, currentness, and partial-review rules: Review Evidence.

Human Direction

  • Anchor generation, review, and edits in human direction: audience, task, concrete character, and keep / change / avoid boundaries. See Human Direction.
  • Existing designs default to polish (preserves IA, major composition, navigation, content, behavior; permits local spacing, wrapping, sizing). restyle is visual-only (tokens, styling) preserving structure/behavior without freezing pixel positions. rethink alters layout/flows only on explicit human choice.
  • New designs require human direction (not an absent baseline); references guide borrow vs avoid (optional when unneeded).
  • Human approval is mandatory before material creative changes. Branch to justified no-change BEFORE creating design systems or variants when the original satisfies direction. Human taste may prefer original or variant without objective proof; record as preference, not measured quality.
  • Critique follows observation -> impact -> smallest change -> preservation. Classify findings as defects, context concerns, or taste. Review checks regressions and preservation via observed proof, never automatic score winning.
  • Stitch is the sole generator; respect documented tool capabilities without invented settings (mode != creativeRange).

Write Safely

  • Never overwrite originals. Fix through generate_variants (default creativeRange: REFINE, variantCount: 1; use EXPLORE only for approved rethink or device adaptation per Prompting) or a new design system.
  • Explicit approval before delete_project, update_design_system on an existing asset, or apply_design_system to original screens.
  • New design system: create_design_system with theme.designMd, then update_design_system on that new asset.
  • apply_design_system takes screen instance ids from get_project, not screen ids.
  • Generation takes minutes. On timeout do not retry; p
Полный SKILL.md на GitHub

Установить common-stitch-design в Claude Code и Claude Desktop

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

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

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

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

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

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

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

LICENSEreferences/design-md.mdreferences/prompting.mdreferences/review-evidence.mdreferences/stitch-mcp.mdscripts/audit_html.jsscripts/audit_html.test.js

FAQ

Что делает скилл common-stitch-design?

Drive Google Stitch over MCP safely - read screens, write and lint DESIGN.md, create design systems, and fix designs through variants instead of overwriting. Use when reviewing, editing, or generating Stitch screens or DESIGN.md files.

Как установить скилл common-stitch-design?

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

Скилл common-stitch-design запускает скрипты?

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

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

Сравнить common-stitch-design с