hyva-exec-shell-cmd — Claude Code skill: what it does, how to install
Identifies the Magento dev setup and selects the right command wrapper for containers or local execution.
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a claude-codeWhat hyva-exec-shell-cmd does
The helper detects which Magento stack is running in the project. It launches scripts/detect_env.sh against the project root and returns warden, docker-magento, ddev, or local. Then it prefixes Magento CLI calls with the correct container execution flags.
Host operations remain separate. Tools like git, composer, and direct filesystem utilities run on the host without wrappers. When a skill includes a companion PHP script, it streams the script code into the container via stdin instead of copying files into synced directories. This avoids volume sync surprises across setups.
If you run on a bare host without a container, a missing PHP binary will stop execution immediately. In that case, you must switch to a containerized setup or install the interpreter locally.
What it helps with
- wrap CLI calls for Warden, DDEV, and docker-magento
- identify the active Magento runtime environment
- pipe helper PHP code into containers through stdin
- bypass wrappers for host utilities like git and composer
Example prompts for the agent
- Use hyva-exec-shell-cmd to detect the Magento environment and flush the cache
- Inspect the project environment with hyva-exec-shell-cmd scripts/detect_env.sh before compiling Tailwind
How to install hyva-exec-shell-cmd
1Skills CLI (Vercel)
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a claude-code2Manually: put the files in place
~/.claude/skills/hyva-exec-shell-cmd/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/hyva-exec-shell-cmd/
1Skills CLI (Vercel)
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a codex2Manually: put the files in place
.agents/skills/hyva-exec-shell-cmd/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a cursor2Manually: put the files in place
.cursor/skills/hyva-exec-shell-cmd/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install hyva-themes/hyva-ai-tools hyva-exec-shell-cmd2Manually: put the files in place
.github/skills/hyva-exec-shell-cmd/SKILL.md1Skills CLI (Vercel)
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a gemini-cli2Platform CLI
gemini skills install https://github.com/hyva-themes/hyva-ai-tools --path skills/hyva-exec-shell-cmdManually: put the files in place
.devin/skills/hyva-exec-shell-cmd/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about hyva-exec-shell-cmd
How do I install hyva-exec-shell-cmd in Claude Code?
Run npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a claude-code.
What does hyva-exec-shell-cmd do?
It inspects whether a Magento workspace runs under Warden, docker-magento, DDEV, or a native host. Other tools use that result to apply matching container wrappers to shell commands.
Why are helper scripts piped through stdin?
Different setups synchronize host directories unevenly. Pipelining script code directly into php /dev/stdin avoids file copying, temporary file management, and volume sync failures.