Loading...
Loading...
Utility skill to detect Magento development environment and determine command wrapper. This skill should be used by other skills that need to execute shell commands in the Magento environment. It detects Warden, docker-magento, DDEV, and local environments and provides the appropriate command wrapper.
npx skill4agent add hyva-themes/hyva-ai-tools hyva-exec-shell-cmd<skill_path>/scripts/detect_env.sh [magento_root_path]<skill_path>.claude/skills/hyva-exec-shell-cmdmagento_root_pathwardendocker-magentoddevlocal| Environment | Command Wrapper | Description |
|---|---|---|
| Warden | | Docker environment managed by Warden |
| docker-magento | | Mark Shust's docker-magento setup |
| DDEV | | DDEV containerized environment |
| Local | Run | Native environment without containers |
# 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# 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 buildcomposergitlsfindcpwardenddevhyva-exec-shell-cmd