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★ 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 missingtheme.jsonblock settings.theme-color-token-enforcerandtheme-orphaned-refs: run after the build in themes with semantic colour tokens.wp-blockstyle-css-field: the limits of thecssfield 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'sscreenshot.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:
- Find the version the theme targets: the
theme.json$schemaandversion,Requires at leastandTested up toinstyle.css, andwp core versionon the local site. - Look up anything version-sensitive in the current documentation (Context7, the Block Editor Handbook, the Theme Handbook, the
theme.jsonreference for that version and the Core dev notes), not in recalled knowledge. - 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
- Read the theme's
AGENTS.md,CLAUDE.md,.claude/rules/andCONTRIBUTING.md. Project rules win over this skill. - 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.
- Note the live URL, the local URL and how to run WP-CLI locally (for example
studio wpin WordPress Studio).
Step 1: Inventory before building
- Read the issue: acceptance criteria and comments.
- 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.
- 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. - 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
Установить site-to-block-theme в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic