hyva-theme-list

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Hyvä Theme Listing

Hyvä主题列表

Lists all Hyvä theme paths in a Magento 2 project. Themes are identified by the presence of
web/tailwind/package.json
.
列出Magento 2项目中所有Hyvä主题的路径。系统通过检测
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/customTheme
vendor/hyva-themes/magento2-default-theme-csp
重要提示: 请从Magento项目的根目录执行此脚本。
运行发现脚本以列出所有Hyvä主题:
bash
bash <skill_path>/scripts/list_hyva_themes.sh
其中
<skill_path>
是包含此SKILL.md文件的目录(例如:
.claude/skills/hyva-theme-list
)。
输出格式: 每行显示一个主题路径(相对于项目根目录),如果未找到主题则输出为空。
app/design/frontend/Example/customTheme
vendor/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)
脚本会搜索以下两个位置:
位置描述
app/design/frontend/
为项目开发的自定义主题
vendor/
从任意供应商安装的主题(不限于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)
当目录同时包含以下两个文件时,会被识别为Hyvä主题:
  1. web/tailwind/package.json
    (Hyvä/Tailwind结构)
  2. theme.xml
    (有效的Magento主题文件)

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 -->
需要定位Hyvä主题的其他技能,应通过名称调用此技能:
markdown
Invoke the `hyva-theme-list` skill to discover available themes.
输出结果可逐行处理,或存储在变量中用于选择提示。
<!-- Copyright © Hyvä Themes https://hyva.io. All rights reserved. Licensed under OSL 3.0 -->