Command Palette

Search for a command to run...

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

greenshift-blocks

БесплатноБез исполняемых скриптовНе проверен

Generate WordPress Gutenberg blocks using Greenshift/GreenLight plugin. Use when user asks to create WordPress sections, blocks, layouts, hero sections…

vcode-shот vcode-sh★ 19 звёзд на GitHub20 установок в других каталогах

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

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

  1. Block IDs: Unique id starting with gsbp- + 7 alphanumeric chars (e.g., gsbp-b3c761b). localId must be identical to id.

  2. Content Types (type parameter):

    • "text": Text-only blocks - requires textContent with duplicated text
    • "inner": Container blocks - wrap plain text in <span> element blocks
    • "no": Empty/spacer elements
    • "chart": ApexCharts
  3. 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 styleAttributes exists, add localId to HTML class attribute
  4. HTML Tags: Default is div. Prefer tag: "a" over tag: "button" for buttons (except forms).

  5. Images: Always loading="lazy". Use https://placehold.co/WIDTHxHEIGHT. When using originalWidth and originalHeight in JSON, you MUST also add matching width and height HTML attributes to the <img> tag.

  6. Links: linkNewWindow: true = target="_blank" + auto rel="noopener"

  7. 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. See docs/03-layouts.md for 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 weights
  • color - theme handles text colors (unless on dark background)
  • lineHeight - theme handles heading line-heights

Headings - OKAY TO SET:

  • marginTop, marginBottom - for spacing control
  • textAlign - for layout/centering

WRONG - Over-styled heading:

{
  "tag": "h2",
  "styleAttributes": {
    "fontSize": ["3rem", "2.7rem"],
    "fontWeight": ["700"],
    "lineHeight": ["1.2"]
  }
}
Полный SKILL.md на GitHub

Установить greenshift-blocks в Claude Code и Claude Desktop

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

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

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

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

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

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

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

docs/00-index.mddocs/01-core-structure.mddocs/02-attributes.mddocs/03-layouts.mddocs/04-styling-advanced.mddocs/05-animations.mddocs/06-slider.mddocs/07-dynamic-content.mddocs/08-variations.mddocs/09-css-variables.mddocs/10-scripts.mddocs/11-charts.mddocs/12-migration-rules.mdreference.mdtemplates/card-grid.htmltemplates/cta-banner.htmltemplates/faq-section.htmltemplates/features-grid.htmltemplates/footer.htmltemplates/hero-section.htmltemplates/pricing-table.htmltemplates/product-cards-grid.htmltemplates/section-wrapper.htmltemplates/stats-counters.htmltemplates/testimonials-slider.htmltemplates/two-columns.html

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), без исполняемых скриптов.

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

Сравнить greenshift-blocks с