wordpress-block-style-generator
БесплатноБез исполняемых скриптовНе проверенcreate wordpress block styles, block style registrations, style variation definitions and supporting css or theme.json guidance for individual blocks. use…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
WordPress Block Style Generator
Purpose
Generate reusable WordPress block styles for individual blocks using the lightest practical implementation approach.
This skill creates:
- named block style definitions
- block style registration guidance
- supporting CSS for block styles
theme.jsonstyle guidance when native configuration fits the request
It prefers native WordPress styling mechanisms first and uses custom classes only where they materially help.
Trigger Conditions
Use this skill when the request is about:
- creating a named style for a specific block
- defining a block style variation
- generating CSS for a reusable block-level design treatment
- deciding how a block style should be represented in a block theme workflow
Do not use this skill for:
- broad section or layout styling across multiple page areas
- template generation
- pattern generation
- full theme validation reviews
Those belong to the relevant specialist skills.
Inputs
Accept any mix of:
- block name or type
- desired style name
- visual description
- theme conventions
- CSS requirements
theme.jsonconstraints- Figma handoff notes
- repository examples
If naming or implementation direction is unclear, use wordpress-asset-parameter-generator behavior first and state assumptions.
Fast Decision Flow
- Identify the target block and style purpose.
- Decide the lightest fitting implementation:
- native block style variation
- CSS class-based style registration
theme.jsonguidance for block-level styling
- Normalize the style name and any class naming.
- Generate the registration and styling output.
- Mark anything that should be reviewed by
wordpress-block-asset-validator.
Workflow
- Inspect the request and capture confirmed facts.
- Identify the target block and intended editor-facing style label.
- Normalize:
- style slug
- label
- related class name when needed
- Prefer native block-style handling before custom complexity.
- Generate:
- registration guidance
- CSS or
theme.jsonguidance - usage notes
- Return assumptions and validation notes.
Block Style Rules
- Start with native WordPress block-style patterns where possible.
- Keep styles scoped to a specific block or block family.
- Use clear, reusable names.
- Use custom CSS classes only when they materially improve the outcome.
- When custom classes are needed, keep them stable and readable.
- Use BEM-style naming only where custom classes are genuinely necessary.
- Avoid folding broader section-level design systems into a single block style.
Output Format
By default, return:
- the target block
- the block style name and slug
- registration guidance
- CSS or
theme.jsonguidance - assumptions
- validation notes
Example output shape:
## Target block
`core/button`
## Style definition
- Name: Outline Accent
- Slug: outline-accent
## Registration guidance
```php
register_block_style(
'core/button',
array(
'name' => 'outline-accent',
'label' => 'Outline Accent',
)
);
```
## CSS guidance
```css
.is-style-outline-accent .wp-block-button__link {
border: 2px solid var(--wp--preset--color--accent);
background: transparent;
color: var(--wp--preset--color--accent);
}
```
## Assumptions
- Accent color is already available as a theme preset.
## Validation notes
- Confirm the chosen block target and preset names.
- Run validator review before commit.
Safe Defaults
- keep style labels editor-readable
- keep style slugs lowercase hyphen-case
- prefer preset-driven styling before hardcoded values
- keep CSS scoped to the block style selector
Failure Modes And Escalation
Escalate briefly when:
- the request is really for a section-wide design language rather than a block style
- the requested style spans too many unrelated blocks
- the visual request depends on unavailable design tokens or theme presets
- the prompt lacks enough detail to choose between a native variation and custom CSS
In those cases, ask at most one focused question or return a safe scaffold with explicit assumptions.
Test Prompts
Test prompt: button style
Prompt:
Create a reusable Accent Outline style for
core/buttonin a block theme. Prefer presets over hardcoded colors.
Expected behaviour:
- identify the block correctly
- generate a clean style slug and label
- provide registration guidance
- provide scoped CSS guidance
- avoid overcomplicating the implementation
Test prompt: quote variation
Prompt:
Build a Quiet Pull Quote style for
core/quotewith softer borders and lighter text treatment.
Expected behaviour:
- keep the output focused on
core/quote - produce a reusable style definition
- avoid turning it into section-level styling
Test prompt: boundary case
Prompt:
Define the styling system for full-width hero sections across the whole site.
Expected behaviour:
- do not treat this as a single block-style request
- route to the sectio
Установить wordpress-block-style-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wordpress-block-style-generator?
create wordpress block styles, block style registrations, style variation definitions and supporting css or theme.json guidance for individual blocks. use when the user asks to define a reusable style for a specific block, register a named block style, or generate block-level styling rules that fit block theme workflows.
Как установить скилл wordpress-block-style-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wordpress-block-style-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic