Command Palette

Search for a command to run...

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

site-to-block-theme

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

Build or fix a WordPress block theme's templates, template parts, patterns and cards so they match an existing live site, without a Figma layout step. Use…

lightspeedwpот lightspeedwp★ 20 звёзд на GitHub

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

Site to Block Theme

Overview

The direct route from a live site to block theme files. The live page is the source for layout, content and styles; the theme's theme.json is the source for tokens.

site-to-design-tokens (tokens) → site-to-block-theme: inventory → measure → map to tokens → build → check local → prove

Use the Figma route instead (site-to-figma-components, then figma-to-block-theme Pattern mode) when the design is changing and needs sign-off in Figma first. Use this skill when the rebuild matches the live site as it is.

It stops for approval after the inventory, and again before any new token.

Companion skills

This skill holds only the live-site workflow and LightSpeed conventions. WordPress mechanics come from the official WordPress skills (WordPress/agent-skills). Load them; don't work from memory:

Skill Load it for
wordpress-router, wp-project-triage Step 0: classify the repository and its tooling
wp-block-themes theme.json, templates, template parts, style variations, the style hierarchy and caches
wp-patterns Pattern registration, file headers, block markup, i18n and escaping
wp-block-development Only if no core block can do the job (the block then belongs in the project plugin)
wp-interactivity-api Any front-end behaviour: menus, sliders, accordions, filters
wp-performance Images, fonts and script loading on the built page
wp-wpcli-and-ops WP-CLI: caches, database template copies, options
wp-phpstan Themes that run PHPStan

LightSpeed skills:

  • site-to-design-tokens: if the theme has no tokens yet, run it first.
  • figma-to-block-theme: its theme profile is step 0 here, and its Complete mode fills missing theme.json block settings.
  • theme-color-token-enforcer and theme-orphaned-refs: run after the build in themes with semantic colour tokens.
  • wp-blockstyle-css-field: the limits of the css field in block and section styles.
  • wp-pattern-runtime-pitfalls: patterns that render nothing or stale data.
  • wp-db-override-reconciliation: when a Site Editor copy in the database hides the theme file.
  • theme-screenshot: the theme's screenshot.png.

If an official WordPress skill is not installed, say so and install it from WordPress/agent-skills before building.

Current WordPress, not memory

WordPress changes every release. Before you write code, read references/wordpress-standards.md and:

  1. Find the version the theme targets: the theme.json $schema and version, Requires at least and Tested up to in style.css, and wp core version on the local site.
  2. Look up anything version-sensitive in the current documentation (Context7, the Block Editor Handbook, the Theme Handbook, the theme.json reference for that version and the Core dev notes), not in recalled knowledge.
  3. Build to the WordPress Coding Standards with the theme's own lint, PHPCS and test commands, and leave them passing.

Step 0: Theme profile and project rules

  1. Read the theme's AGENTS.md, CLAUDE.md, .claude/rules/ and CONTRIBUTING.md. Project rules win over this skill.
  2. Build the theme profile from figma-to-block-theme's theme-profile.md: theme root, text domain, colour model (preset-direct or semantic), where tokens live, the pattern, part and style layouts, and the lint and test commands.
  3. Note the live URL, the local URL and how to run WP-CLI locally (for example studio wp in WordPress Studio).

Step 1: Inventory before building

  1. Read the issue: acceptance criteria and comments.
  2. Find every place the thing appears on live (a card may be on the homepage, an archive and a mega menu). List each variant and each state.
  3. Check the theme for something that already does the job: patterns/, parts/, templates/, block styles and section styles. Reuse or extend it; don't add a near-copy.
  4. Show the inventory and a short plan (files to add or change, blocks to use, open questions) and wait for approval. One message is enough for a small piece of work.

Step 2: Measure live

Computed styles, not the site's CSS files: live CSS is overrid

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

Установить site-to-block-theme в Claude Code и Claude Desktop

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

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

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

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

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

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

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

agents/openai.yamlreferences/measuring.mdreferences/wordpress-standards.mdscripts/diff-measurements.tsscripts/jest.config.cjsscripts/lib/colour.tsscripts/lib/css-length.tsscripts/lib/theme-tokens.tsscripts/lib/token-matcher.tsscripts/map-to-tokens.tsscripts/measure-page.tsscripts/tsconfig.json

FAQ

Что делает скилл site-to-block-theme?

Build or fix a WordPress block theme's templates, template parts, patterns and cards so they match an existing live site, without a Figma layout step. Use when a rebuild copies the live site directly, for example 'rebuild the homepage from live', 'match the footer to live', 'port this section from the old site into the new theme', 'why does this card look different from live' or 'compare local with live'. Measures live with computed styles at 390, 768 and 1440, maps every value to the theme's theme.json tokens, builds with the official WordPress skills to current WordPress coding standards, then proves the match with side-by-side screenshots, a style diff and an accessibility check.

Как установить скилл site-to-block-theme?

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

Скилл site-to-block-theme запускает скрипты?

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

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

Сравнить site-to-block-theme с