Awesome-omni-skill warden-dev
Manage Docker-based local development environments with Warden. Use when setting up PHP/Node projects (Magento, Laravel, Symfony, WordPress, Drupal), importing databases, running shell commands, debugging with Xdebug, or managing Docker services. Triggers on "warden", "local environment", "docker-compose wrapper", "database import", "shell access".
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/warden-dev-lbajsarowicz" ~/.claude/skills/diegosouzapw-awesome-omni-skill-warden-dev && rm -rf "$T"
skills/development/warden-dev-lbajsarowicz/SKILL.mdWarden Agent Skill
Warden is a local wrapper for docker-compose that automates DNS (dnsmasq), reverse proxy (Traefik), and webmail (Mailpit). Project
.env drives ephemeral docker-compose.yml generation. Preview with warden env config.
Quick Start
warden env-init myproject magento2 # Initialize project warden svc up -d # Start global services (Traefik, DNS, Mailpit) warden env up -d # Start project containers warden shell # Interactive shell in php-fpm
Environment Lifecycle
| Command | Purpose | Example |
|---|---|---|
| Initialize new project | |
| Start environment | |
| Stop environment | |
| Preview docker-compose | |
| List containers | |
| Pull images | |
| Follow logs | |
| Exec into container | |
Database Operations
| Command | Purpose | Example |
|---|---|---|
| Interactive MySQL | |
| Import SQL dump | See patterns below |
| Export database | |
| Upgrade MariaDB/MySQL | |
Import patterns (preferred for large dumps):
pv dump.sql.gz | gzip -d | warden db import gzip -dc dump.sql.gz | warden db import warden db import < database.sql
Shell Access
| Command | Purpose |
|---|---|
| PHP-FPM container shell (default: bash) |
| Xdebug-enabled shell (use for debugging) |
| Blackfire profiler: |
| PHP SPX profiler |
Important: Use
warden debug (not warden shell) when debugging with Xdebug.
Service Management
| Command | Purpose |
|---|---|
| Start global services |
| Stop global services |
| List global services |
| List running environments |
File Sync (macOS)
| Command | Purpose |
|---|---|
| Start Mutagen sync |
| Monitor sync status |
| Flush sync |
| Reset sync |
Redis / Valkey
warden redis # Interactive Redis CLI warden redis FLUSHALL # Execute command warden valkey # Valkey (Redis alternative)
Environment Types
Supported:
magento2, magento1, laravel, symfony, wordpress, drupal, shopware, cakephp, local. See references/environments.md.
Key .env Variables
Project
.env controls services and versions. See references/env-variables.md for full reference.
| Variable | Description |
|---|---|
| Unique project identifier |
| Environment type |
| Base domain (default: ) |
| PHP version (7.4, 8.1–8.4) |
, , etc. | Service toggles (1/0) |
| MariaDB/MySQL version |
Service Name Mapping
| .env Variable | Container Name(s) |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| , |
Global Services & URLs
Default domain:
warden.test. Configure in ~/.warden/.env (WARDEN_SERVICE_DOMAIN).
| Service | URL |
|---|---|
| Traefik Dashboard | |
| Webmail (Mailpit) | |
| Portainer | |
| phpMyAdmin | |
Email (Mailpit): No SMTP config needed. Warden routes sendmail to Mailpit. All emails at
https://webmail.warden.test.
Framework Compatibility
For "match Magento 2.4.8 requirements" requests:
- Search official docs for system requirements
- Map to
: PHP →.env
, DB →PHP_VERSION
, etc.MYSQL_DISTRIBUTION_VERSION - Update
with matched versions.env
Agent Behavior Examples
Generate service table: Read
.env, map WARDEN_* variables to service status, output table (Service | Status | Version).
Verify PHP running: Run
warden env ps, check for php-fpm, php-debug, php-blackfire.
Troubleshoot non-loading site:
warden svc ps → warden env ps → ping app.{project}.test → warden env logs nginx.
Xdebug not working: Use
warden debug, verify IDE server name {project}-docker, port 9003, XDEBUG_SESSION cookie.
References
– Full command referencereferences/commands.md
– Environment typesreferences/environments.md
– .env variable referencereferences/env-variables.md
– Service URLs and configreferences/global-services.md
– Common issues and solutionsreferences/troubleshooting.md
– Workflow examplesexamples/workflows.md