hyva-themes avatar

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-code

Installs 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

More from hyva-themes/hyva-ai-tools

All 12
1kostja94 avatarwebsite-structurekostja94/marketing-skillsWhen the user wants to plan website structure, decide which pages to build, or prioritize pages for a new or existing site. Also use when the user mentions "web1.3Kskills.sh installs
2bear2u avatarlanding-page-guide-v2bear2u/my-skillsCreate distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pa1.3Kskills.sh installs
3langchain-ai avatarskill-creatorlangchain-ai/deepagentsGuide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user ask1.3Kskills.sh installs
4alirezarezvani avatarsenior-securityalirezarezvani/claude-skillsUse when the user asks for STRIDE threat modeling, DREAD risk scoring, data-flow-diagram threat analysis, or a quick secret scan — or when a security request ne1.3Kskills.sh installs
5quodsoler avatarue-character-movementquodsoler/unreal-engine-skillsUse this skill when working with character movement, CharacterMovementComponent, CMC, movement modes, walking, falling, swimming, flying, custom movement, netwo1.3Kskills.sh installs
6nvidia avatarcuopt-server-commonnvidia/skillscuOpt REST server — what it does and how requests flow. Domain concepts; no deploy or client code.1.3Kskills.sh installs