drupal-ddev

Configure DDEV-based Drupal local development environments with database management and Drush integration.

73|4|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/grasmash/drupal-claude-skills --skill drupal-ddev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-ddev
Source: https://github.com/grasmash/drupal-claude-skills/tree/main/.claude/skills/drupal-ddev
Command: npx skills add https://github.com/grasmash/drupal-claude-skills --skill drupal-ddev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Setting up and managing a robust local development environment for Drupal can be complex and time-consuming. This skill streamlines your DDEV workflow, providing patterns for configuration, database management, debugging, and performance, so you can focus on coding.

Core Features & Use Cases

  • Environment Setup & Management: Quickly start, stop, and restart DDEV projects, and manage .ddev/config.yaml.
  • Database Operations: Seamlessly import, export, and snapshot databases, and integrate Drush commands.
  • Debugging & Performance: Configure Xdebug for efficient debugging and optimize DDEV performance with Mutagen or NFS.
  • Use Case: You're onboarding a new developer to a Drupal project. Instead of spending hours on environment setup, they can use this skill to quickly get DDEV configured, import the database, and start coding within minutes.

Quick Start

Using the drupal-ddev skill, show me the essential DDEV commands to start my project, clear the Drupal cache, and launch the site in my browser.

Frequently Asked Questions about drupal-ddev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a local Drupal development environment with DDEV?

DDEV streamlines local Drupal setup by managing Docker containers and configuration. Initialize a project with `ddev config`, customize `.ddev/config.yaml` for your Drupal version and PHP requirements, then run `ddev start` to launch your environment with web server, database, and tools ready.

Can I import and manage databases in DDEV for Drupal projects?

Yes. DDEV integrates seamlessly with database operations—import SQL files with `ddev import-db`, export snapshots for backup, and run Drush commands directly through `ddev drush` to manage Drupal database tasks without leaving your local environment.

How do I debug Drupal code using Xdebug in DDEV?

Configure Xdebug within DDEV to step through Drupal code in your IDE. Enable Xdebug in `.ddev/config.yaml`, set your IDE's debug listener to match DDEV's host, then trigger breakpoints in your code—DDEV handles port forwarding and Docker networking automatically.

What's the best way to optimize DDEV performance for Drupal development?

DDEV performance tuning uses Mutagen for file sync or NFS mounts to reduce Docker overhead. Choose the appropriate method based on your OS and project size, then configure in `.ddev/config.yaml`—these settings dramatically improve Drupal cache clearing and file access speeds.

Can I run multiple Drupal sites simultaneously with DDEV?

Yes. DDEV supports multi-site Drupal setups through custom `.ddev/config.yaml` configuration. Define multiple hostnames and directories, set up site-specific database snapshots, and use `ddev drush` with site aliases to manage each Drupal installation independently.

How do I create custom DDEV commands for Drupal workflows?

DDEV allows custom command workflows via hooks and command files in `.ddev/commands/`. Define Bash or PHP scripts to automate repetitive tasks—cache clearing, database snapshots, Drush commands—making developer onboarding faster and workflows consistent.