hyva-cms-components-dump by hyva-themes/hyva-ai-tools
npx skills add https://github.com/hyva-themes/hyva-ai-tools --skill hyva-cms-components-dump定位 Hyvä CMS 模块中的所有 components.json 文件,并输出一个合并的 JSON 对象,其中包含来自活动模块的所有组件定义。
重要: 请在 Magento 项目根目录下执行此脚本。
运行导出脚本:
php <skill_path>/scripts/dump_cms_components.php
其中 <skill_path> 是包含此 SKILL.md 文件的目录(例如,.claude/skills/hyva-cms-components-dump)。
输出格式: 一个包含所有合并的 CMS 组件定义的单一 JSON 对象。
app/etc/config.php 获取有序的模块列表1 的模块(已禁用的模块会被跳过)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
app/code/{Vendor}/{Module}/etc/hyva_cms/components.jsonvendor/{vendor-name}/{package-name}/*/etc/hyva_cms/components.jsonetc/module.xmlconfig.php 中声明的模块加载顺序进行合并组件按照模块在 app/etc/config.php 中出现的确切顺序进行合并。后续模块可以通过使用相同的组件键来覆盖先前模块的组件。
{
"text_block": {
"label": "Text Block",
"category": "Content",
"template": "Hyva_CmsBase::elements/text-block.phtml",
...
},
"feature_card": {
"label": "Feature Card",
"category": "Elements",
"template": "Custom_Module::elements/feature-card.phtml",
...
}
}
此技能可用于:
每周安装数
156
代码仓库
GitHub 星标数
59
首次出现
2026年1月27日
安全审计
安装于
github-copilot154
opencode150
codex150
gemini-cli146
amp145
kimi-cli145
Locates all components.json files from Hyvä CMS modules and outputs a merged JSON object containing all component definitions from active modules.
Important: Execute this script from the Magento project root directory.
Run the dump script:
php <skill_path>/scripts/dump_cms_components.php
Where <skill_path> is the directory containing this SKILL.md file (e.g., .claude/skills/hyva-cms-components-dump).
Output format: A single JSON object containing all merged CMS component definitions.
app/etc/config.php to get the ordered list of modules1 are included (disabled modules are skipped)app/code/{Vendor}/{Module}/etc/hyva_cms/components.jsonvendor/{vendor-name}/{package-name}/*/etc/hyva_cms/components.jsonetc/module.xmlconfig.phpComponents are merged in the exact order modules appear in app/etc/config.php. Later modules can override components from earlier modules by using the same component key.
{
"text_block": {
"label": "Text Block",
"category": "Content",
"template": "Hyva_CmsBase::elements/text-block.phtml",
...
},
"feature_card": {
"label": "Feature Card",
"category": "Elements",
"template": "Custom_Module::elements/feature-card.phtml",
...
}
}
This skill can be used to:
Weekly Installs
156
Repository
GitHub Stars
59
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
github-copilot154
opencode150
codex150
gemini-cli146
amp145
kimi-cli145
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装