Skip to content
Skill

Ddev

Guides an agent through DDEV local development for Craft CMS projects

Ddev is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
shell
Platforms
Claude Code
GitHub stars
91
Last commit
License
MIT
Listing updated

Similar skills

About Ddev

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (29 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from michtio/craftcms-claude-skills

  1. Gives agents a safe Pest workflow for testing Craft CMS 5 plugins without touching live

    • Open source
    • 91 GitHub stars
    • Developer tools
  2. Guides an agent through Craft Cloud config, deploys, caching, and Cloud-specific limits

    • Open source
    • 91 GitHub stars
    • Databases
  3. Guides Craft CMS 5 content architecture: sections, entry types, fields, Matrix

    • Open source
    • 91 GitHub stars
    • Developer tools
  4. Deploys and runs Craft CMS on fortrabbit managed PHP hosting with safe git workflows

    • Open source
    • 91 GitHub stars
    • Developer tools
  5. Guides agents writing Craft CMS control panel JavaScript with the Garnish UI toolkit

    • Open source
    • 91 GitHub stars
    • Developer tools
  6. Runs one approved Craft CMS slice through outside builders under locked test gates

    • Open source
    • 91 GitHub stars
    • Developer tools