# hyva-exec-shell-cmd

Identifies the Magento dev setup and selects the right command wrapper for containers or local execution.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1300 installs · ★ 85
- Author: hyva-themes
- License: OSL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hyva-themes/hyva-ai-tools/tree/HEAD/skills/hyva-exec-shell-cmd/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/hyva-exec-shell-cmd

## What it 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.

## Requirements
- Works with: Docker

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/hyva-exec-shell-cmd/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/hyva-exec-shell-cmd/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/hyva-exec-shell-cmd/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/hyva-exec-shell-cmd/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install hyva-themes/hyva-ai-tools hyva-exec-shell-cmd
```

2. **Manually: put the files in place**
- File: `.github/skills/hyva-exec-shell-cmd/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/hyva-themes/hyva-ai-tools --path skills/hyva-exec-shell-cmd
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/hyva-exec-shell-cmd/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add hyva-themes/hyva-ai-tools --skill hyva-exec-shell-cmd -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hyva-themes/hyva-ai-tools/tree/HEAD/skills/hyva-exec-shell-cmd/SKILL.md

## When to use it
- 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
- 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

## Similar
- [ddev-expert](https://affpapa.org/en/nevibecode/skills/ddev-expert.md) — skill · 314 installs
- [magento-hyva-specialist](https://affpapa.org/en/nevibecode/skills/magento-hyva-specialist.md) — skill · 857 installs
- [langgraph-cli](https://affpapa.org/en/nevibecode/skills/langgraph-cli.md) — skill · 9000 installs
- [shell](https://affpapa.org/en/nevibecode/skills/shell.md) — skill · 692 installs
- [docker-destructive-guardrails](https://affpapa.org/en/nevibecode/skills/docker-destructive-guardrails.md) — skill · 1000 installs
- [docker-agent-run](https://affpapa.org/en/nevibecode/skills/docker-agent-run.md) — skill · 746 installs

From the same set: [hyva-themes/hyva-ai-tools](https://affpapa.org/en/nevibecode/by/hyva-themes/hyva-ai-tools.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
