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

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated