# Ddev

> Ddev is an open-source agent skill for developer tools. Guides an agent through DDEV local development for Craft CMS projects. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michtio/craftcms-claude-skills/tree/main/skills/ddev
- **Repository:** https://github.com/michtio/craftcms-claude-skills
- **GitHub stars:** 91
- **License:** MIT
- **Skill name:** ddev
- **Collection:** https://github.com/michtio/craftcms-claude-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent working knowledge of running Craft CMS sites under DDEV. It covers choosing PHP and Node versions, configuring the database and docroot in .ddev/config.yaml, adding services such as Redis and Mailpit, and running Craft and Composer through DDEV shorthand commands. It also explains how to share a local site, enable Xdebug, import and export databases, and add custom commands.

The skill steers the agent toward Craft CLI commands rather than raw SQL, and warns about common mistakes such as installing packages on the host instead of in the container. It includes a troubleshooting section for port conflicts, container restarts, and DDEV-injected environment variables that silently override .env or general config values.

A bundled shell script reports the project's Craft version, and the skill points to reference files for plugin development with Composer path repositories and for browser debugging with Chrome DevTools MCP. It expects a working DDEV installation and a Craft project.

## When your agent uses it

> DDEV local development environment for Craft CMS projects. ALWAYS load this skill when running any ddev command, configuring .ddev/config.yaml, or troubleshooting local container issues. Covers PHP/Node versions, database, docroot, add-ons and Mailpit, custom commands, Vite dev server exposure, database import/export, Xdebug, sharing local sites, and troubleshooting (port conflicts, container restarts, ddev-injected env vars silently overriding .env or config/general.php).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/ddev)
- [Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)](https://github.com/michtio/craftcms-claude-skills/blob/HEAD/skills/ddev/SKILL.md)
- [No network calls found in its scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/ddev)
- [License: MIT](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/ddev)

## Features

- **DDEV project configuration:** Guidance on setting PHP, Node, database and docroot options in the DDEV config file.
- **Shorthand command usage:** Prefers DDEV shorthand commands for Composer, npm and Craft over generic exec calls.
- **Database import and export:** Covers importing, exporting and backing up local databases through DDEV and Craft CLI.
- **Add-ons and Mailpit:** Explains installing add-ons such as Redis and reaching the built-in Mailpit inbox.
- **Environment variable troubleshooting:** Diagnoses DDEV-injected variables that override .env or general config edits.
- **Plugin test isolation:** Shows how to run a symlinked plugin's test suite from its own directory safely.

## Good for

- Set up a new Craft CMS project in a DDEV container
- Enable Xdebug and debug a Craft request locally
- Import a production database dump into the local DDEV site
- Share a local Craft site on a temporary public URL
- Fix a config change that has no effect because of an injected variable
- Add Redis to a local Craft project through a DDEV add-on

## Install

### Claude Code

This skill ships in the `craftcms-claude-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@craftcms-claude-skills
```

Or copy only this skill to `~/.claude/skills/ddev`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ddev &&
cp -R "$tmp/skills/ddev" ~/.claude/skills/ddev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ddev` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ddev` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ddev &&
cp -R "$tmp/skills/ddev" ~/.agents/skills/ddev &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ddev` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ddev` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ddev &&
cp -R "$tmp/skills/ddev" ~/.cursor/skills/ddev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ddev` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michtio/craftcms-claude-skills.git --path skills/ddev
```

Or copy the folder to `~/.gemini/skills/ddev` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ddev`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ddev &&
cp -R "$tmp/skills/ddev" ~/.copilot/skills/ddev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ddev` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git
```

Then copy `craftcms-claude-skills/skills/ddev` into your agent's skills folder as `ddev`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Ddev trigger?

It triggers when running ddev commands, editing .ddev/config.yaml, or troubleshooting local container issues in a Craft CMS project.

### Does Ddev work outside Craft CMS?

It is written for Craft CMS projects; it notes it is not meant for production deployment or Docker use outside DDEV.

### Does Ddev need a Craft version?

A bundled script reports the project's Craft version, and some advice depends on the version, such as the Craft MCP server from 5.12.

### Which Craft MCP features does Ddev cover?

It mentions Craft's own MCP server from version 5.12 and points to a separate craft-mcp skill for setup details.

### How do I install Ddev in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ddev to use it in all your projects, or to .claude/skills/ddev in one project. Or install the craftcms-claude-skills plugin, which includes it: /plugin marketplace add michtio/craftcms-claude-skills, then /plugin install craftcms-claude-skills@craftcms-claude-skills.

### Does Ddev run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ddev?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Ddev?

The closest alternatives to Ddev are Craftcms, Servd, Craft php guidelines, Craft fortrabbit and Craft cloud.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Servd](https://ai-powered.com/skills/servd): Servd is an open-source agent skill for developer tools.
- [Craft php guidelines](https://ai-powered.com/skills/craft-php-guidelines): Craft php guidelines is an open-source agent skill for developer tools.
- [Craft fortrabbit](https://ai-powered.com/skills/craft-fortrabbit): Craft fortrabbit is an open-source agent skill for developer tools.
- [Craft cloud](https://ai-powered.com/skills/craft-cloud): Craft cloud is an open-source agent skill for databases.
- [Craft project setup](https://ai-powered.com/skills/craft-project-setup): Craft project setup is an open-source agent skill for developer tools.
- [Dhub CLI](https://ai-powered.com/skills/dhub-cli): Dhub CLI is an open-source agent skill for developer tools.
- [Container ops edho ferdian](https://ai-powered.com/skills/container-ops-edho-ferdian): Container ops edho ferdian is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/ddev
