site-to-figma-components
БесплатноЗапускает вложенные скриптыНе проверенRebuild a live website's building blocks in Figma as a design system for a WordPress rebuild. Use after site-to-design-tokens has created the Figma variables…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
Site to Figma Components
Overview
The third step of a rebuild. Tokens come first, then this skill, then the theme.
site-to-design-tokens → crawl → inventory report → approval → Figma build → verify → manifest → figma-to-block-theme (Pattern mode)
It stops for approval between stages. Nothing is written to Figma before the reviewer approves the inventory.
Companion skills
figma-use: required before everyuse_figmacall, read-only ones included.figma-generate-library: component sets, variant properties and variable bindings (stage 3).figma-generate-design: composing parts, patterns and templates from instances (stage 3).audit-design-systemandfix-design-system-finding: the design system audit (stage 4).site-to-design-tokens: must have run first. Its variables export is this skill's--tokensinput.figma-to-block-theme: reads the manifest in Pattern mode.wp-block-themesandwp-patternscover the WordPress side.site-to-block-theme: the alternative when the rebuild copies the live site as it is. It builds the theme from live directly and skips Figma.
If a companion skill is missing, say so and stop rather than calling Figma tools directly.
Before you start
The scripts run from the .github repository checkout and need its dependencies and a browser:
- Run
npm ciin the.githubcheckout. Without ittsxand Puppeteer are missing. - If the crawler fails to launch the browser, run
npx puppeteer browsers install chrome. npm 11 blocks Puppeteer's install script, so the browser is not downloaded automatically.
Stage 1: Inventory
Agree the pages with the reviewer: one or two public pages per template, from the site's sitemap. See references/crawling.md.
Crawl (scratch folder outside the repository). Install the repository's dependencies first and set
SITE_TO_FIGMA_REPO_ROOTto the absolute path of its checkout. The--prefixoption selects its pinnedtsxwhile keeping output in the scratch folder:npx --prefix "$SITE_TO_FIGMA_REPO_ROOT" tsx ${CLAUDE_SKILL_DIR}/scripts/crawl-site-structure.ts --url https://www.example.com \ --pages '/,/tours/example/,/blog/,/?s=safari' --out site-structure.json --shots shotsGet the tokens. Use the
variables.jsonfromsite-to-design-tokens, or export the variables from the project's Figma file with the script infigma-to-block-theme'sreferences/figma-access.md.Propose, then take one example screenshot per item:
npx --prefix "$SITE_TO_FIGMA_REPO_ROOT" tsx ${CLAUDE_SKILL_DIR}/scripts/propose-inventory.ts site-structure.json --tokens variables.json \ --theme <theme-slug> --out inventory.json --report inventory.md --shots shots npx --prefix "$SITE_TO_FIGMA_REPO_ROOT" tsx ${CLAUDE_SKILL_DIR}/scripts/crawl-site-structure.ts --url https://www.example.com \ --shoot inventory.json --shots shots
Stage 2: Approval report
Present inventory.md: the decisions list first (with a proposal for every value that has no token), then each table. references/inventory-review.md explains the sections. The reviewer approves, renames, merges or cuts items. Record the answers in decisions.json, including the build scope ("build": the templates and items to import), re-run propose-inventory.ts with --decisions decisions.json, and repeat until the report says approved and lists the build scope. How items are found, named and mapped is in references/classification.md.
Stage 3: Figma build
Confirm the target file and pages, add the variables the reviewer approved, then follow references/figma-build.md. Build only the approved scope, in this order:
- Components: component sets with variant properties, Auto Layout, text styles and a variable on every fill, stroke, gap, padding, radius, font and effect. Each description names its WordPress block.
- Template parts and patterns: composed from component instances.
- Templates: composed from parts and patterns, at 1440px, and at 390px where the report says the layout changes.
Record each built node ID in figma-nodes.json as you go.
Stage 4: Verify
Compare each frame with the live page at both widths, list the differences, and run the design system audit until it is clean. See references/verification.md.
Stage 5: Hand-off
npx --prefix "$SITE_TO_FIGMA_REPO_ROOT" tsx ${CLAUDE_SKILL_DIR}/scripts/write-manifest.ts inventory.json --nodes figma-nodes.json \
--out manifest.json --markdown manifest.md
Add --partial while only some items are built. Hand manifest.json to figma-to-block-theme Pattern mode and post manifest.md on the project's Linear issue. See references/manifest.md.
Rules
- Approval first. No Figma writes befo
Установить site-to-figma-components в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл site-to-figma-components?
Rebuild a live website's building blocks in Figma as a design system for a WordPress rebuild. Use after site-to-design-tokens has created the Figma variables, when a project needs the site's components (buttons, cards, form fields, navigation, accordions, sliders), patterns (heroes, card grids, call-to-action bands), template parts (header, footer, sidebar) and templates (one frame per page type) built in Figma from those variables. Crawls chosen pages at 390px and 1440px, writes an inventory report for approval, then builds component sets, parts, patterns and templates bound to semantic tokens, verifies them against the live pages, and writes a manifest that maps each Figma node to its WordPress target for figma-to-block-theme Pattern mode.
Как установить скилл site-to-figma-components?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл site-to-figma-components запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic