Skip to content
hyva-themes avatar

Hyva Exec Shell Cmd

Utility skill that detects the Magento dev environment and returns the matching command wrapper for other skills.

CCM score
67 of 100
skills.sh installs
1.4K
GitHub stars
86
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers environment detection for Warden, docker-magento, DDEV, and plain local setups via scripts/detect_env.sh
  • Maps each detected environment to its exec wrapper, with examples for single commands and directory changes
  • Lists host-side commands that skip wrapping, including composer, git, and the warden and ddev CLIs
  • Streams bundled PHP helper scripts into the container over stdin, so no copy into the project tree is needed

Install

$ npx -y skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

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:

Details

Repository
github.com/hyva-themes/hyva-ai-tools
Categories
PHP & Laravel, DevOps & Cloud
First seen
Jun 3, 2026

More from hyva-themes/hyva-ai-tools

All 12

Similar to Hyva Exec Shell Cmd

More PHP & Laravel