hyva-themes avatar

Hyva Cms Component

Automates the entire process of creating custom CMS components for Hyvä themes in Magento 2. Walks you through module selection (new or existing), component naming, field configuration with presets for common patterns like cards and CTAs, and optional template variants. It handles the schema validation gotchas that trip people up, like remembering that `children` is a root property not a field type, and that validation attributes go in an `attributes` object. Auto-selects appropriate Lucide icons by checking what's already in use. Generates the components.json and PHTML templates in the right directory structure, then runs setup:upgrade. Saves you from memorizing the Hyvä CMS schema and manually wiring up all the files.

skills.sh installs
770
GitHub stars
85
last updated
Aug 21, 2026

Install

$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-cms-component --agent claude-code

Installs into .claude/skills of the current project.

Files

Hyvä CMS Component Creator

Overview

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.

Workflow

Step 1: Module Selection

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):

  1. Vendor name (e.g., Acme) - Required, no default. Do not suggest a Vendor name, prompt for user input.
  2. Module name - Suggest CmsComponents as default so user can press Enter to accept

Then use the hyva-create-module skill with:

  • dependencies: ["Hyva_CmsBase"]
  • composer_require: {"hyva-themes/commerce-module-cms": "^1.0"}

Sponsors

Details

Repository
github.com/hyva-themes/hyva-ai-tools
Categories
Frontend Development, DevOps & CI/CD, AI & Agent Building
First seen
Jun 3, 2026

More from hyva-themes/hyva-ai-tools

All 12
1auth0 avatarauth0-angularauth0/agent-skillsUse when adding Auth0 login, logout, route guards, or HTTP interceptors to an Angular application. Integrates @auth0/auth0-angular for SPAs — use even if the us762skills.sh installs
2dylantarre avatarcss-nativedylantarre/animation-principlesUse when implementing Disney's 12 animation principles with pure CSS animations and transitions760skills.sh installs
3jezweb avatarreact-native-expojezweb/claude-skillsBuild React Native 0.76+ apps with Expo SDK 52-54. Covers mandatory New Architecture (0.82+/SDK 55+), React 19 changes, SDK 54 breaking changes (expo-av, expo-f738skills.sh installs
4mindrally avatarremixmindrally/skillsExpert guidance for Remix development with TypeScript, loaders/actions, nested routes, and full-stack web application best practices711skills.sh installs
5mindrally avatarreact-native-cursor-rulesmindrally/skillsReact Native development best practices for TypeScript, functional components, performance optimization, and styling guidelines.696skills.sh installs
6astronomer avatartroubleshooting-astro-deploymentsastronomer/agentsTroubleshoot Astronomer production deployments with Astro CLI. Use when investigating deployment issues, viewing production logs, analyzing failures, or managin655skills.sh installs