hyva-exec-shell-cmd

hyva-themes/hyva-ai-tools · updated Apr 8, 2026

$npx skills add https://github.com/hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd
0 commentsdiscussion
summary

This utility skill detects the Magento development environment and provides the appropriate command wrapper for executing shell commands.

skill.md

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:

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

Examples

Single 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

Command with directory change

# 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

Commands That Do NOT Require Wrapping

Some commands run on the host system and should NOT be wrapped:

  • composer commands (runs on host, not in container)
  • git commands
  • File operations on the host filesystem (ls, find, cp for files accessible from host)
  • warden CLI commands
  • ddev CLI commands

Integration Pattern

Skills that need to execute commands should:

  1. Reference this skill: "Use the hyva-exec-shell-cmd skill to determine the command wrapper"
  2. Detect environment once using Step 1
  3. Store the wrapper pattern for use throughout the skill
  4. Apply the wrapper to all container commands per Step 2

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.659 reviews
  • Amelia White· Dec 28, 2024

    We added hyva-exec-shell-cmd from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Amina Martinez· Dec 28, 2024

    hyva-exec-shell-cmd fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Dhruvi Jain· Dec 16, 2024

    We added hyva-exec-shell-cmd from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Layla Rao· Dec 12, 2024

    Useful defaults in hyva-exec-shell-cmd — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Chen Reddy· Dec 4, 2024

    Solid pick for teams standardizing on skills: hyva-exec-shell-cmd is focused, and the summary matches what you get after install.

  • Chen Ghosh· Nov 27, 2024

    Registry listing for hyva-exec-shell-cmd matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Chen Diallo· Nov 23, 2024

    hyva-exec-shell-cmd has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Amina Robinson· Nov 19, 2024

    hyva-exec-shell-cmd reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Isabella Taylor· Nov 19, 2024

    I recommend hyva-exec-shell-cmd for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Oshnikdeep· Nov 7, 2024

    hyva-exec-shell-cmd reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 59

1 / 6