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".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "warden-dev" with this command: npx skills add lbajsarowicz/ai-skills-warden/lbajsarowicz-ai-skills-warden-warden-dev

Warden 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

CommandPurposeExample
warden env-initInitialize new projectwarden env-init mystore magento2
warden env upStart environmentwarden env up -d
warden env downStop environmentwarden env down
warden env configPreview docker-composewarden env config
warden env psList containerswarden env ps
warden env pullPull imageswarden env pull
warden env logs -f nginxFollow logswarden env logs -f nginx
warden env exec php-fpm bashExec into containerwarden env exec php-fpm bash

Database Operations

CommandPurposeExample
warden db connectInteractive MySQLwarden db connect
warden db importImport SQL dumpSee patterns below
warden db dumpExport databasewarden db dump > backup.sql
warden db upgradeUpgrade MariaDB/MySQLwarden db upgrade

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

CommandPurpose
warden shellPHP-FPM container shell (default: bash)
warden debugXdebug-enabled shell (use for debugging)
warden blackfireBlackfire profiler: warden blackfire run php script.php
warden spxPHP SPX profiler

Important: Use warden debug (not warden shell) when debugging with Xdebug.

Service Management

CommandPurpose
warden svc up -dStart global services
warden svc downStop global services
warden svc psList global services
warden statusList running environments

File Sync (macOS)

CommandPurpose
warden sync startStart Mutagen sync
warden sync monitorMonitor sync status
warden sync flushFlush sync
warden sync resetReset 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.

VariableDescription
WARDEN_ENV_NAMEUnique project identifier
WARDEN_ENV_TYPEEnvironment type
TRAEFIK_DOMAINBase domain (default: {name}.test)
PHP_VERSIONPHP version (7.4, 8.1–8.4)
WARDEN_DB, WARDEN_REDIS, etc.Service toggles (1/0)
MYSQL_DISTRIBUTION_VERSIONMariaDB/MySQL version

Service Name Mapping

.env VariableContainer Name(s)
WARDEN_DB=1db
WARDEN_REDIS=1redis
WARDEN_OPENSEARCH=1opensearch
WARDEN_ELASTICSEARCH=1elasticsearch
WARDEN_VARNISH=1varnish
WARDEN_RABBITMQ=1rabbitmq
WARDEN_NGINX=1nginx
PHP_VERSIONphp-fpm, php-debug

Global Services & URLs

Default domain: warden.test. Configure in ~/.warden/.env (WARDEN_SERVICE_DOMAIN).

ServiceURL
Traefik Dashboardhttps://traefik.warden.test
Webmail (Mailpit)https://webmail.warden.test
Portainerhttps://portainer.warden.test
phpMyAdminhttps://phpmyadmin.warden.test

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:

  1. Search official docs for system requirements
  2. Map to .env: PHP → PHP_VERSION, DB → MYSQL_DISTRIBUTION_VERSION, etc.
  3. Update .env with matched versions

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 pswarden env psping app.{project}.testwarden env logs nginx.

Xdebug not working: Use warden debug, verify IDE server name {project}-docker, port 9003, XDEBUG_SESSION cookie.

References

  • references/commands.md – Full command reference
  • references/environments.md – Environment types
  • references/env-variables.md – .env variable reference
  • references/global-services.md – Service URLs and config
  • references/troubleshooting.md – Common issues and solutions
  • examples/workflows.md – Workflow examples

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

python-image

Local image processing toolkit for format conversion, compression, resizing, batch jobs, and image-to-PDF. Use when users ask 压缩图片/改尺寸/批量处理/转PDF. Supports si...

Registry SourceRecently Updated
Coding

Climate

Climate - command-line tool for everyday use

Registry SourceRecently Updated
Coding

Vultr

Manage Vultr cloud infrastructure including VPS instances, bare metal, Kubernetes clusters, databases, DNS, firewalls, VPCs, object storage, and more. Use wh...

Registry SourceRecently Updated
Coding

ProxyGate Update

Use when updating ProxyGate CLI or SDK to the latest version. Also triggers proactively when an update notification is shown. Make sure to use this whenever...

Registry SourceRecently Updated