greenlight-vibe
БесплатноБез исполняемых скриптовНе проверенGenerate or edit design for WordPress Gutenberg blocks using Greenshift/GreenLight plugin. Convert any data to wordpress blocks or convert greenshift blocks…
от wpgaurav★ 24 звезды на GitHubОб этом скилле
From GreenLight Vibe by Wpsoul, as shipped under GPL-2.0-or-later in the Greenshift plugin. Changed on 2026-10-24: added license frontmatter and this notice. See NOTICE.md.
Greenshift/Greenlight Block Generator and Data Convertor to WordPress blocks
Purpose
Create 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 or send code via mcp, rest api to site.
Workflow to build design and convert it to blocks
Step 1: Create Clean HTML, CSS, JS first
Always build html first and use there best standards. But keep important rules
- Make vanilla HTML + JS + CSS
- Do not use React or Typescript.
- Put everything in a single HTML.
- Do not use Tailwind or any other CSS frameworks.
- Use unique class and id names with prefix, minimum 4 letter for prefix
- Do not use :root variables, if you need variables, put them in class of parent block.
- Do not add styles to body tag, add general styles to class of parent block
- Do not add styles to *{…}
- Do not generate initial content for design via scripts, it must be added in DOM
- If you use headings tags or paragraphs, it's required to add margin top and bottom. If you use lists, it's required to disable left margin and spacing
- Do not use js inline parameters like "onclick"
- Important!!! All styles add in section
<style data-wp-block-html="css">...</style>. All scripts add in section<script data-wp-block-html="js">...</script>. But if you have<link>tags, keep them as they are.
Important When you have centered content inside full width section, use next code for such sections. They must be most parent blocks on page
<section class="wp-section alignfull" data-type="section-component">
<div class="wp-content-wrap" data-type="content-area-component">
Your Centered Content
</div>
</section>
Use next styles for sections
.wp-section{display:flex;justify-content:center;flex-direction:column;align-items:center;padding-right:var(--wp--spacing--side, min(3vw, 20px));padding-left:var(--wp--spacing--side, min(3vw, 20px));padding-top:var(--wp--spacing--top, 0px);padding-bottom:var(--wp--spacing--bottom, 0px);margin-top:0px;margin-bottom:0px;position:relative;}
.wp-content-wrap{max-width:100%;width:var(--wp--style--global--wide-size, 1200px);}
You can add background and other styles to each section, you can change padding top and bottom, but always keep alignfull class, --wp--style--global--wide-size variable and --wp--spacing--side variables.
When user asks to add dynamic content, read and follow instructions/dynamic-placeholders.md.
When user asks to build query loops, dynamic loops, archives, or other query-driven layouts, read and follow both:
instructions/dynamic-loops.mdinstructions/dynamic-placeholders.md
Important!!! Add dynamic placeholders ONLY if user asked to make dynamic content or query loops
Step 2: Convert HTML to Blocks
Save the HTML from Step 1 to a temporary .html file, then run the converter script located alongside this skill:
node "${CLAUDE_PLUGIN_ROOT}/skills/greenlight-vibe/scripts/convert.js" /path/to/input.html -o /path/to/output.txt
If CLAUDE_PLUGIN_ROOT is not set (standalone/local install), use the path relative to the skill directory:
node scripts/convert.js /path/to/input.html -o /path/to/output.txt
The script is zero-dependency (pure JS, no npm install). It accepts a full HTML page or snippet and outputs ready-to-paste Greenshift block code.
What the script does:
- Parses all
<style>tags and converts CSS into a Style Manager block withdynamicGClasses(local classes),styleAttributes, hover/focus states, selectors, media queries, and keyframes - Parses all
<script>tags and adds them ascustomJswithcustomJsEnabled: true - Converts every HTML element into
greenshift-blocks/elementblocks with correcttype(inner,text,no), proper nesting, and mapped attributes (href,src,alt,formAttributes,dynamicAttributes,icon,isVariation, etc.)
Usage options:
node scripts/convert.js input.html # output to stdout
node scripts/convert.js input.html -o output.txt # output to file
cat input.html | node scripts/convert.js # pipe from stdin
Step 3: Fit to inner variable system
Check if we have some values in styles that matches or close to one of our existed variables. If yes, replace value with variable and fallback
See instructions/variables.md for complete list of variables.
Step 4: Validate frontend styles and scripts
If you add code as content and save it in wordpress site, read and follow `instructions/valid
Установить greenlight-vibe в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл greenlight-vibe?
Generate or edit design for WordPress Gutenberg blocks using Greenshift/GreenLight plugin. Convert any data to wordpress blocks or convert greenshift blocks back to html + css + js. Use when user asks to create design with Greenshift or Greenlight blocks for wordpress site, convert anything to wordpress blocks or build charts in content. Triggers on keywords: wordpress, gutenberg, greenshift, greenlight, convert to wordpress, convert greenshift blocks to vanilla html, build chart.
Как установить скилл greenlight-vibe?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл greenlight-vibe запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic