Communitygithub.com

catalog

Bootstrap or extend the design-system catalog — a page outside the app that renders every component from design/components.json × each story × theme, text size, width, locale and platform, plus catalog/index.json for agents — for the project's stack (web, SwiftUI, Skip, Compose, Flutter), and wire drift checks into CI. Also seeds components.json from an existing in-app gallery or component folder. Use for "catalog", "component gallery", "storybook", "design system site", or when design work needs renderings an agent can open.

O que é catalog?

catalog is a Claude Code agent skill that bootstrap or extend the design-system catalog — a page outside the app that renders every component from design/components.json × each story × theme, text size, width, locale and platform, plus catalog/index.json for agents — for the project's stack (web, SwiftUI, Skip, Compose, Flutter), and wire drift checks into CI. Also seeds components.json from an existing in-app gallery or component folder. Use for "catalog", "component gallery", "storybook", "design system site", or when design work needs renderings an agent can open.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/slntopp/vibecoding/tree/HEAD/plugins/vibe-design/skills/catalog

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

O que catalog faz?

The contract lives in the project's design/catalog/README.md (template: ${CLAUDE_PLUGIN_ROOT}/modules/design-system/files/design/catalog/README.md). Read it first; this skill implements it.

0. Seed the registry if it is empty

Most projects already have components and often an in-app developer gallery. Inventory them:

  • the design-system folder (DesignSystem/, components/ui/…): one entry per public component,
  • the in-app gallery's sections: each becomes stories,
  • usage counts (grep -r) to find what is actually reused.

Write entries to design/components.json with purpose, use_when, not_when, variants, states, tokens used, code path and stories. Mark unclear ones "status": "experimental" and list them for the owner. Show the draft before writing it.

1. Pick the renderer for the stack

StackRendererNotes
WebA catalog route or static page mounting real components with story props; Playwright for the PNGs.Reuse the app's build; no second framework unless the project already has one.
SwiftUIA test target that renders each story with ImageRenderer per axis (colour scheme, dynamic type size, width).Keep views shallow; render one story per test.
SkipiOS as SwiftUI. Android: JVM rendering (Robolectric + Compose) or a headless emulator (-gpu host), one heavy job at a time.Render one story at a time; deep trees can crash Android where iOS is fine.
ComposePaparazzi or Roborazzi.
FlutterGolden tests exported to PNG.

Stories come from components.json, not from code: the renderer reads the registry and fails on a story it cannot render.

2. Build the page

A small script (in the project's main language) reads components.json and the PNGs and writes a static site: an index by category; a page per component with status, purpose, use/not-use, the story × axis grid, tokens, accessibility notes and code paths; a token page (swatches, type scale, spacing). Plus catalog/index.json mapping <component>/<story>/<axes> to image paths.

3. Wire it in

  • A make/npm target: catalog builds everything locally.
  • CI on PRs touching the design system or the registry: build the catalog, run drift checks (every component in code has an entry and vice versa; no raw colours or sizes outside generated tokens), upload the site as an artifact or preview deploy.
  • Link the catalog from design/README.md and AGENTS.md.

4. Verify

Open several rendered images and describe them. Confirm one story per axis actually differs (dark is dark, the largest text is larger). Report what renders on which platform and what does not yet.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Habilidades Relacionadas