Hyva Theme List

hyva-themes/hyva-ai-tools/skills/hyva-theme-list

作者 hyva-themesa28a3333bcfae05dcba07e88f38a5ff9579903c7无许可证收录于 2026年10月9日更新于 2026年10月9日

List all Hyvä theme paths in a Magento 2 project. This skill should be used when the user wants to find Hyvä themes, list available themes, discover theme paths, or when other skills need to locate Hyvä themes. Trigger phrases include "list hyva themes", "find themes", "show themes", "available themes", "theme paths".

AI 生成的概览

通过扫描 Tailwind 包文件和 theme.xml,列出 Magento 2 项目中的所有 Hyvä 主题路径。

功能
运行一个 shell 脚本,在 app/design/frontend/ 和 vendor/ 中搜索同时包含 web/tailwind/package.json 和 theme.xml 的目录,将其识别为 Hyvä 主题。它按相对于项目根目录的路径每行输出一个主题路径,若未找到主题则无输出。其他技能可调用它来发现可用主题。
适用场景
当需要在 Magento 2 项目中查找或列出 Hyvä 主题、发现主题路径,或当其他技能需要定位 Hyvä 主题以供选择或处理时使用。
运行要求
需要一个包含 Hyvä 主题的 Magento 2 项目、bash shell,并从项目根目录执行。附带一个可执行脚本(scripts/list_hyva_themes.sh)。

Hyvä Theme Listing

Lists all Hyvä theme paths in a Magento 2 project. Themes are identified by the presence of web/tailwind/package.json.

Usage

Important: Execute this script from the Magento project root directory.

Run the discovery script to list all Hyvä themes:

bash
bash <skill_path>/scripts/list_hyva_themes.sh

Where <skill_path> is the directory containing this SKILL.md file (e.g., .claude/skills/hyva-theme-list).

Output format: One theme path per line (relative to project root), or empty output if no themes found.

app/design/frontend/Example/customThemevendor/hyva-themes/magento2-default-theme-csp

Search Locations

The script searches two locations:

LocationDescription
app/design/frontend/Custom themes developed for the project
vendor/Installed themes from any vendor (not limited to hyva-themes)

Theme Identification

A directory is identified as a Hyvä theme when it contains both:

  1. web/tailwind/package.json (Hyvä/Tailwind structure)
  2. theme.xml (valid Magento theme)

Integration with Other Skills

Other skills that need to locate Hyvä themes should invoke this skill by name:

markdown
Invoke the `hyva-theme-list` skill to discover available themes.

The output can be processed line-by-line or stored in a variable for selection prompts.

<!-- Copyright © Hyvä Themes https://hyva.io. All rights reserved. Licensed under OSL 3.0 -->

来源与署名

来源:hyva-themes/hyva-ai-tools位于skills/hyva-theme-list提交a28a333

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架