greenshift-blocks
БесплатноБез исполняемых скриптовНе проверенGenerate WordPress Gutenberg blocks using Greenshift/GreenLight plugin. Use when user asks to create WordPress sections, blocks, layouts, hero sections…
Об этом скилле
Greenshift Block Generator
Purpose
Generate production-ready WordPress Gutenberg blocks using Greenshift/GreenLight Element block system. All output is HTML with JSON parameters in block comments - ready to paste directly into WordPress Gutenberg code editor.
Documentation Structure
Detailed documentation is split into modular files in the docs/ directory:
| File | Topic |
|---|---|
docs/00-index.md |
Navigation index |
docs/01-core-structure.md |
Block format, JSON parameters, content types, styleAttributes |
docs/02-attributes.md |
HTML attributes, links, images, forms, icons |
docs/03-layouts.md |
Sections, columns, flexbox configurations |
docs/04-styling-advanced.md |
Local classes (dynamicGClasses), gradients, background images, parallax |
docs/05-animations.md |
AOS animations, CSS keyframes, scroll animations |
docs/06-slider.md |
Swiper slider block configuration |
docs/07-dynamic-content.md |
Dynamic text, query grids, placeholders |
docs/08-variations.md |
Accordion, tabs, counter, countdown, etc. |
docs/09-css-variables.md |
All CSS variables (fonts, spacing, shadows, etc.) |
docs/10-scripts.md |
Custom JavaScript and GSAP integration |
docs/11-charts.md |
ApexCharts integration |
docs/12-migration-rules.md |
CRITICAL - Typography stripping, semantic headings, minimal styling |
Read relevant docs files when you need detailed information on specific topics.
IMPORTANT: Always read docs/12-migration-rules.md when migrating or cloning blocks - it contains critical rules about what styles to REMOVE.
Quick Reference
Core Block Structure
Every Greenshift element follows this pattern:
<!-- wp:greenshift-blocks/element {JSON Parameters} -->
<html_tag class="optional classes" ...attributes>
<!-- Inner content -->
</html_tag>
<!-- /wp:greenshift-blocks/element -->
Critical Rules
Block IDs: Unique
idstarting withgsbp-+ 7 alphanumeric chars (e.g.,gsbp-b3c761b).localIdmust be identical toid.Content Types (
typeparameter):"text": Text-only blocks - requirestextContentwith duplicated text"inner": Container blocks - wrap plain text in<span>element blocks"no": Empty/spacer elements"chart": ApexCharts
Styling (
styleAttributes):- Never use inline
style="..."attributes - Properties use camelCase (e.g.,
backgroundColor,paddingTop) - Values are arrays for responsive:
["desktop", "tablet", "mobile_landscape", "mobile_portrait"] - Single value
["10px"]applies to all breakpoints - Pseudo-states:
backgroundColor_hover,color_focus - If
styleAttributesexists, addlocalIdto HTMLclassattribute
- Never use inline
HTML Tags: Default is
div. Prefertag: "a"overtag: "button"for buttons (except forms).Images: Always
loading="lazy". Usehttps://placehold.co/WIDTHxHEIGHT. When usingoriginalWidthandoriginalHeightin JSON, you MUST also add matchingwidthandheightHTML attributes to the<img>tag.Links:
linkNewWindow: true=target="_blank"+ autorel="noopener"Column Children with Padding: Always add
boxSizing: ["border-box"]to column children that have padding. Without this, padding adds to width and causes columns to wrap unexpectedly. Seedocs/03-layouts.mdfor details.
See docs/01-core-structure.md and docs/02-attributes.md for full details.
Minimal Intervention Philosophy
Core Principle: Less is More
When generating or migrating blocks, apply minimal styling intervention. Let the WordPress theme handle defaults.
See docs/12-migration-rules.md for comprehensive migration-specific rules.
What NOT to Do
| Avoid | Why |
|---|---|
Adding fontSize to headings (h1-h6) |
Theme typography handles heading sizes |
Adding color to headings/paragraphs |
Theme colors cascade from settings |
Adding fontWeight to headings |
Theme defines heading weights |
Adding fontWeight: ["400"] anywhere |
It's the default - remove it |
Adding lineHeight to headings |
Theme handles heading line-heights |
| Setting responsive fontSize on headings | Theme's heading styles are already responsive |
| Using generic background colors | Use theme palette variables (palette-color-6, etc.) |
Typography Rules (CRITICAL)
Headings (h1, h2, h3, h4, h5, h6) - NEVER SET:
fontSize- theme handles heading sizes (even responsive ones)fontWeight- theme handles heading weightscolor- theme handles text colors (unless on dark background)lineHeight- theme handles heading line-heights
Headings - OKAY TO SET:
marginTop,marginBottom- for spacing controltextAlign- for layout/centering
WRONG - Over-styled heading:
{
"tag": "h2",
"styleAttributes": {
"fontSize": ["3rem", "2.7rem"],
"fontWeight": ["700"],
"lineHeight": ["1.2"]
}
}
Установить greenshift-blocks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл greenshift-blocks?
Generate WordPress Gutenberg blocks using Greenshift/GreenLight plugin. Use when user asks to create WordPress sections, blocks, layouts, hero sections, galleries, or any Gutenberg element. Triggers on keywords: wordpress, gutenberg, greenshift, section, block, layout, hero, gallery, columns, element.
Как установить скилл greenshift-blocks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл greenshift-blocks запускает скрипты?
Нет, скилл состоит только из инструкций (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