hyva-exec-shell-cmd by hyva-themes/hyva-ai-tools
npx skills add https://github.com/hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd此实用技能用于检测 Magento 开发环境,并提供相应的命令包装器来执行 shell 命令。
其他技能在需要在 Magento 环境中执行命令时,应引用此技能。检测到的包装器确保命令在正确的上下文(容器或本地)中运行。
重要提示: 请从 Magento 项目根目录执行此脚本,或将路径作为参数提供。
在任何需要执行 shell 命令的技能开始时,运行一次此检测:
<skill_path>/scripts/detect_env.sh [magento_root_path]
其中 <skill_path> 是包含此 SKILL.md 文件的目录(例如,.claude/skills/hyva-exec-shell-cmd)。
可选的 magento_root_path 参数指定 Magento 安装目录。如果省略,脚本将使用当前工作目录。
输出:warden、docker-magento、ddev 或
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
local根据检测到的环境,按如下方式包装命令:
| 环境 | 命令包装器 | 描述 |
|---|---|---|
| Warden | warden env exec -T php-fpm bash -c "<command>" | 由 Warden 管理的 Docker 环境 |
| docker-magento | bin/clinotty bash -c "<command>" | Mark Shust 的 docker-magento 设置 |
| DDEV | ddev exec <command> | DDEV 容器化环境 |
| Local | 直接运行 <command> | 无容器的原生环境 |
# Warden
warden env exec -T php-fpm bash -c "bin/magento cache:clean"
# docker-magento
bin/clinotty bash -c "bin/magento cache:clean"
# DDEV
ddev exec bin/magento cache:clean
# Local
bin/magento cache:clean
# Warden
warden env exec -T php-fpm bash -c "cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# docker-magento
bin/clinotty bash -c "cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# DDEV
ddev exec bash -c "vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# Local
cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build
某些命令在宿主机系统上运行,不应进行包装:
composer 命令(在宿主机上运行,不在容器内)git 命令ls、find、cp)warden CLI 命令ddev CLI 命令需要执行命令的技能应:
hyva-exec-shell-cmd 技能来确定命令包装器"每周安装数
163
代码仓库
GitHub 星标数
59
首次出现
2026年1月27日
安全审计
安装于
github-copilot158
codex154
opencode154
gemini-cli150
amp149
kimi-cli149
This utility skill detects the Magento development environment and provides the appropriate command wrapper for executing shell commands.
Other skills should reference this skill when they need to execute commands in the Magento environment. The detected wrapper ensures commands run in the correct context (container or local).
Important: Execute this script from the Magento project root directory, or provide the path as an argument.
Run this detection once at the start of any skill that needs to execute shell commands:
<skill_path>/scripts/detect_env.sh [magento_root_path]
Where <skill_path> is the directory containing this SKILL.md file (e.g., .claude/skills/hyva-exec-shell-cmd).
The optional magento_root_path argument specifies the Magento installation directory. If omitted, the script uses the current working directory.
Output: warden, docker-magento, ddev, or local
Based on detected environment, wrap commands as follows:
| Environment | Command Wrapper | Description |
|---|---|---|
| Warden | warden env exec -T php-fpm bash -c "<command>" | Docker environment managed by Warden |
| docker-magento | bin/clinotty bash -c "<command>" | Mark Shust's docker-magento setup |
| DDEV | ddev exec <command> | DDEV containerized environment |
| Local | Run <command> directly | Native environment without containers |
# Warden
warden env exec -T php-fpm bash -c "bin/magento cache:clean"
# docker-magento
bin/clinotty bash -c "bin/magento cache:clean"
# DDEV
ddev exec bin/magento cache:clean
# Local
bin/magento cache:clean
# Warden
warden env exec -T php-fpm bash -c "cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# docker-magento
bin/clinotty bash -c "cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# DDEV
ddev exec bash -c "vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build"
# Local
cd vendor/hyva-themes/magento2-default-theme/web/tailwind && npm run build
Some commands run on the host system and should NOT be wrapped:
composer commands (runs on host, not in container)git commandsls, find, cp for files accessible from host)warden CLI commandsddev CLI commandsSkills that need to execute commands should:
hyva-exec-shell-cmd skill to determine the command wrapper"Weekly Installs
163
Repository
GitHub Stars
59
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot158
codex154
opencode154
gemini-cli150
amp149
kimi-cli149
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
125,100 周安装
Keap自动化集成指南:通过Rube MCP和Composio实现Keap操作自动化
1 周安装
insighto-ai-automation:AI自动化技能,集成Claude与GitHub工作流
1 周安装
Identitycheck自动化:通过Rube MCP和Composio实现身份验证流程自动化
1 周安装
Humanloop自动化指南:通过Rube MCP和Composio工具包实现AI工作流自动化
1 周安装
Hotspotsystem自动化指南:通过Rube MCP实现WiFi热点系统自动化管理
1 周安装
Hookdeck自动化工具:通过Rube MCP和Composio实现Webhook自动化管理
1 周安装