
Hyva Exec Shell Cmd
This is a foundational utility that detects your Magento development environment (Warden, docker-magento, DDEV, or local) and tells you how to wrap shell commands so they run in the right context. It's meant to be called by other skills rather than used directly. You run a detection script once, get back an environment type, then apply the appropriate wrapper pattern to every command that needs to execute inside a container. The benefit is straightforward: other skills can work across different Magento setups without hardcoding assumptions about your stack. If you're building skills that need to run bin/magento or npm commands, this handles the annoying environment detection logic once so you don't repeat it everywhere.
- skills.sh installs
- 1.3K
- GitHub stars
- 85
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd --agent claude-codeInstalls into .claude/skills of the current project.
Files
Execute Shell Commands in Magento Environment
This utility skill detects the Magento development environment and provides the appropriate command wrapper for executing shell commands.
Usage
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).
Step 1: Detect Environment
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
Step 2: Apply Command Wrapper
Based on detected environment, wrap commands as follows:
Sponsors
Details
- Repository
- github.com/hyva-themes/hyva-ai-tools
- Categories
- DevOps & CI/CD, AI & Agent Building, CLI & Terminal
- First seen
- Jun 3, 2026