Hyva AI Skills

July 24, 2026 · View on GitHub

AI-powered skills for Magento 2 development with Hyva Theme. These skills extend AI coding assistants with specialized knowledge for creating Hyva themes, modules, and CMS components.

Installation

Clone this repository, then use install-hyva-skill.sh to install individual skills by name. Dependencies are resolved automatically.

git clone https://github.com/hyva-themes/hyva-ai-tools.git

# Install a skill for a specific agent (from your project directory)
./hyva-ai-tools/install-hyva-skill.sh hyva-child-theme claude

# Or let the installer auto-detect the agent directory
./hyva-ai-tools/install-hyva-skill.sh hyva-cms-component

# List all available skills
./hyva-ai-tools/install-hyva-skill.sh --list

Skills are symlinked into the target agent's skills directory. To update all installed skills, simply run git pull inside the cloned repository. Every symlinked skill picks up the changes immediately.

Use --copy to copy skills instead of symlinking (e.g. when the repo is on the host but the agent runs in a container):

./hyva-ai-tools/install-hyva-skill.sh --copy hyva-child-theme claude

Copied skills won't update automatically with git pull. Re-run the install command to update them.

When no agent argument is given, the installer will:

  1. Use the HYVA_SKILLS_AGENT environment variable if set
  2. Auto-detect an existing agent directory (e.g. .claude/skills/) in the current working directory
  3. Prompt you to choose an agent and whether to install globally (~/) or locally (./)

Supported agents: claude, codex, copilot, cursor, gemini, junie, opencode

Install All Skills at Once (Legacy)

To install all skills in one go (copies instead of symlinks):

# Replace "claude" with your agent: codex, copilot, cursor, gemini, junie, opencode
curl -fsSL https://raw.githubusercontent.com/hyva-themes/hyva-ai-tools/refs/heads/main/install.sh | sh -s claude

Usage

Once installed, the AI agent will automatically use these skills when relevant. You can also invoke them directly:

  • "Create an Alpine component for a dropdown menu"
  • "Create a Hyva child theme"
  • "Add a CMS component for a hero banner"
  • "Compile Tailwind CSS"
  • "Apply the gallery component from Hyva UI"
  • /hyva-child-theme (explicit slash command invocation)

Available Skills

Theme & Module Development

SkillDescription
hyva-tailwind-include-excludeAdd a module path to the include or exclude list in hyva.config.json for Tailwind CSS
hyva-child-themeCreate a Hyva child theme with directory structure, Tailwind CSS, and theme inheritance
hyva-create-moduleScaffold new Magento 2 modules in app/code/
hyva-alpine-componentWrite CSP-compatible Alpine.js components for Hyvä themes following best practices
hyva-ui-componentInstall Hyva UI template-based components (headers, footers, galleries, etc.) to themes
hyva-render-media-imageGenerate responsive <picture> elements using the Hyva Media view model
hyva-playwright-testWrite Playwright tests for Hyvä themes with Alpine.js

CMS Components

SkillDescription
hyva-cms-componentCreate custom Hyva CMS components with field presets, variant support, and PHTML templates
hyva-cms-custom-fieldCreate custom field types and field handlers for Hyvä CMS components

Utility Skills

Utility skills are mainly intended to be invoked by other skills, but can also be used directly.

SkillDescription
hyva-compile-tailwind-cssCompile Tailwind CSS for Hyva themes
hyva-exec-shell-cmdDetect development env (docker, local) and execute commands with appropriate wrappers
hyva-theme-listList all Hyva theme paths in a Magento 2 project
hyva-cms-components-dumpDump combined JSON of all available Hyvä CMS components from active modules

License

Licensed under the OSL-3.0.


Copyright (c) Hyva Themes https://hyva.io. All rights reserved.