magento-hyva

Create Hyvä templates with Alpine.js, Tailwind CSS, and PHP View Models.

32|3|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-hyva
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-hyva
Source: https://github.com/furan917/magento-ai-toolkit/tree/main/skills/magento-hyva
Command: npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-hyva

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Magento storefronts often require Hyvä-compliant frontends that leverage Alpine.js, Tailwind CSS, and lightweight View Models. This skill provides a guided pattern to build Hyvä templates and interactive components without relying on legacy KnockoutJS or RequireJS.

Core Features & Use Cases

  • Build Hyvä .phtml templates using Alpine.js attributes and Tailwind CSS classes, paired with PHP View Models for data.
  • Create interactive frontend components (galleries, tabs, product lists) that are easily reusable across pages.
  • Use GraphQL or PHP View Models to fetch data and wire components to Magento data sources. For example, render a product grid with live prices and add-to-cart actions.

Quick Start

Paste this skill as a system prompt and describe the Hyvä frontend component you want to build.

Frequently Asked Questions about magento-hyva

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Hyvä Magento frontend templates with Alpine.js and Tailwind CSS?

To build Hyvä Magento frontend templates, you create .phtml files using Alpine.js attributes for interactivity and Tailwind CSS classes for styling, paired with PHP View Models to supply data. This approach avoids legacy KnockoutJS and RequireJS dependencies.

What is the best way to fetch data in Hyvä Magento components without using RequireJS?

The best way to fetch data in Hyvä Magento components without RequireJS is using PHP View Models or GraphQL. You wire these data sources directly into your Alpine.js components to render dynamic content like live product prices and add-to-cart actions.

Can I use standard Magento KnockoutJS UI components with Hyvä themes?

No, Hyvä themes avoid legacy KnockoutJS UI components and RequireJS. Instead, you build interactive Magento storefront features using Alpine.js for frontend reactivity and Tailwind CSS for styling within .phtml templates.

How do I ensure secure output escaping in Hyvä Magento .phtml templates?

To ensure secure output escaping in Hyvä Magento .phtml templates, you use the built-in $escaper object. Following Hyvä best practices requires escaping all dynamically generated HTML output to prevent XSS vulnerabilities.

How do I create an interactive product gallery using Hyvä and Alpine.js?

You create an interactive product gallery by building a Hyvä .phtml template with Alpine.js components handling user interactions and Tailwind CSS for layout. Data is supplied via PHP View Models or GraphQL to display product images and variations.

When should I use GraphQL instead of PHP View Models in Hyvä Magento development?

Use GraphQL instead of PHP View Models in Hyvä Magento development when you need to fetch data asynchronously from the client-side via Alpine.js, whereas PHP View Models are ideal for preparing server-side data before rendering the .phtml template.