hyva-theme-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHyvä 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.jsonUsage
使用方法
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.shWhere is the directory containing this SKILL.md file (e.g., ).
<skill_path>.claude/skills/hyva-theme-listOutput 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.md文件的目录(例如:)。
<skill_path>.claude/skills/hyva-theme-list输出格式: 每行显示一个主题路径(相对于项目根目录),如果未找到主题则输出为空。
app/design/frontend/Example/customTheme
vendor/hyva-themes/magento2-default-theme-cspSearch Locations
搜索位置
The script searches two locations:
| Location | Description |
|---|---|
| Custom themes developed for the project |
| Installed themes from any vendor (not limited to hyva-themes) |
脚本会搜索以下两个位置:
| 位置 | 描述 |
|---|---|
| 为项目开发的自定义主题 |
| 从任意供应商安装的主题(不限于hyva-themes) |
Theme Identification
主题识别规则
A directory is identified as a Hyvä theme when it contains both:
- (Hyvä/Tailwind structure)
web/tailwind/package.json - (valid Magento theme)
theme.xml
当目录同时包含以下两个文件时,会被识别为Hyvä主题:
- (Hyvä/Tailwind结构)
web/tailwind/package.json - (有效的Magento主题文件)
theme.xml
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 -->