This skill guides the interactive creation of custom Hyvä CMS components for Magento 2. It supports creating components in new or existing modules, with field presets for common patterns and automatic setup:upgrade execution.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionhyva-cms-componentExecute the skills CLI command in your project's root directory to begin installation:
Fetches hyva-cms-component from hyva-themes/hyva-ai-tools and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate hyva-cms-component. Access via /hyva-cms-component in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
3
total installs
3
this week
60
GitHub stars
0
upvotes
Run in your terminal
3
installs
3
this week
60
stars
This skill guides the interactive creation of custom Hyvä CMS components for Magento 2. It supports creating components in new or existing modules, with field presets for common patterns and automatic setup:upgrade execution.
Command execution: For commands that need to run inside the development environment (e.g., bin/magento), use the hyva-exec-shell-cmd skill to detect the environment and determine the appropriate command wrapper.
If not already specified in the prompt, ask the user where to create the component:
Option A: New Module
Ask for both values (do not assume defaults without asking):
Acme) - Required, no default. Do not suggest a Vendor name, prompt for user input.CmsComponents as default so user can press Enter to acceptThen use the hyva-create-module skill with:
dependencies: ["Hyva_CmsBase"]composer_require: {"hyva-themes/commerce-module-cms": "^1.0"}Option B: Existing Module
app/code/, vendor/, or custom location)Hyva_CmsBase as a dependency in etc/module.xml. If not present, add it.hyva-themes/commerce-module-cms as a dependency in composer.json. If not present, add it.Gather component information:
Component name (snake_case, e.g., feature_card)
Label (display name in editor, e.g., "Feature Card")
Category (Layout, Elements, Media, Content, or Other)
Icon - Automatically select an appropriate icon:
Step 4a: Identify icons already in use
Use the hyva-cms-components-dump skill to dump all current CMS components. Extract all icon values from the output to build a list of icons already in use by existing components.
Step 4b: Find available lucide icons
List the SVG files in vendor/hyva-themes/magento2-theme-module/src/view/base/web/svg/lucide/ to get the full set of available icons.
Step 4c: Select the best fitting icon From the available lucide icons that are NOT already in use by another component:
shopping-cart.svg for cart-related, image.svg for image-related, layout-grid.svg for grid layouts)Hyva_Theme::svg/lucide/[icon-name].svgIf no suitable unused icon can be found, or if the lucide directory doesn't exist, leave the icon property unset.
Offer field presets or custom field creation. See references/field-types.md "Field Presets" section for available presets (Basic Card, Image Card, CTA Block, Text Block, Feature Item, Testimonial, Accordion Item) or allow custom field definition.
For custom fields, iterate through each field asking:
references/field-types.md)attributes.required, NOT as a direct field propertyattributes object)Ask if the component needs template variants:
references/variant-support.md for configuration details.Create the required files:
The hyva-create-module skill creates the base module structure. Then add the CMS-specific directories:
app/code/[Vendor]/[Module]/
├── registration.php # Created by hyva-create-module
├── composer.json # Created by hyva-create-module
├── etc/
│ ├── module.xml # Created by hyva-create-module
│ └── hyva_cms/
│ └── components.json # Create this
└── view/
└── frontend/
└── templates/
└── elements/
└── [component-name].phtml (or [component-name]/ for variants)
Create or update:
etc/hyva_cms/components.json (merge with existing if present)view/frontend/templates/elements/[component-name].phtmlAfter creating files, run bin/magento setup:upgrade using the appropriate command wrapper detected by the hyva-exec-shell-cmd skill.
{
"[component_name]": {
"label": "[Label]",
"category": "[Category]",
"template": "[Vendor]_[Module]::elements/[component-name].phtml",
"content": {
// Generated fields
},
"design": {
"includes": [
"Hyva_CmsBase::etc/hyva_cms/default_design.json",
"Hyva_CmsBase::etc/hyva_cms/default_design_typography.json"
]
},
"advanced": {
"includes": [
"Hyva_CmsBase::etc/hyva_cms/default_advanced.json"
]
}
}
}
IMPORTANT: Only specific properties are allowed at the component level. See references/component-schema.md for the complete schema reference.
Key properties: label (required), category, template, icon, children, require_parent, content, design, advanced, disabled, custom_properties.
Invalid properties that will cause schema errors:
hidden - Does not exist. Use require_parent: true for child-only components, or disabled: trueIMPORTANT: children is a ROOT-LEVEL component property, NOT a field type within content, design, or advanced.
INCORRECT ❌:
{
"my_component": {
"content": {
"items": {
"type": "children",
"label": "Items"
}
}
}
}
CORRECT ✅:
{
"my_component": {
"label": "My Component",
"children": {
"config": {
"accepts": ["child_component"],
"max_children": 10
}
},
"content": {
"title": {
"type": "text",
"label": "Title"
}
}
}
}
In templates, access children via $block->getData('children'), NOT via a custom field name.
IMPORTANT: Field validation attributes like required must be placed in the attributes object, NOT as direct field properties.
INCORRECT ❌:
{
"title": {
"type": "text",
"label": "Title",
"required": true
}
}
CORRECT ✅:
{
"title": {
"type": "text",
"label": "Title",
"attributes": {
"required": true
}
}
}
Other validation attributes that go in attributes:
required (boolean)minlength / maxlength (string)min / max (for numbers)pattern (regex string)placeholder (string)comment (help text)For components that should only be used as children of other components (like list items), use require_parent: true:
{
"my_list_item": {
"label": "My List Item",
"category": "Elements",
"require_parent": true,
"template": false,
"content": {
"title": {"type": "text", "label": "Title"}
}
},
"my_list": {
"label": "My List",
"category": "Elements",
"template": "Vendor_Module::elements/my-list.phtml",
"children": {
"config": {
"accepts": ["my_list_item"]
}
}
}
}
When template: false, the parent component renders the child data directly (NOT using $block->createChildHtml()). See "Rendering Children with template: false" below.
Every template must start with this header:
<?php
declare(strict_types=1);
use Hyva\CmsLiveviewEditor\Block\Element;
use Hyva\Theme\Model\ViewModelRegistry;
use Magento\Framework\Escaper;
/** @var Element $block */
/** @var Escaper $escaper */
/** @var ViewModelRegistry $viewModels */
Additional requirements:
$block->getEditorAttrs() on root element$block->getEditorAttrs('field_name') on editable elements$escaper->escapeHtml() and $escaper->escapeHtmlAttr()Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
hyva-cms-component reduced setup friction for our internal harness; good balance of opinion and flexibility.
Registry listing for hyva-cms-component matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in hyva-cms-component — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend hyva-cms-component for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
I recommend hyva-cms-component for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in hyva-cms-component — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for hyva-cms-component matched our evaluation — installs cleanly and behaves as described in the markdown.
hyva-cms-component is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: hyva-cms-component is the kind of skill you can hand to a new teammate without a long onboarding doc.
hyva-cms-component is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 34