This project is not covered by Drupal’s security advisory policy.

A package for integrating Claude Code AI assistant with Drupal projects. This package provides guidance and best practices for using Claude Code in Drupal development.

Overview

Claude Code is Anthropic's AI assistant that helps with software engineering tasks. This package enables seamless integration with Drupal by providing:

  1. Drupal-specific guidance in CLAUDE.md.
  2. Coming soon Slash Commands to package bigger chunks of common functionality.

Installation

Requirements

  • Drupal 10+
  • Drupal Scaffold (included in drupal/recommended-project and drupal/cms)
  • Composer

Installation

composer config extra.drupal-scaffold.allowed-packages --json --merge '["drupal/claude_code"]'
composer require --dev drupal/claude_code

Customization

You can customize the CLAUDE.md file for your specific project needs. To override the default file:

  1. Create a CLAUDE.local.md file in your project root
  2. Add project-specific information and guidance

DDEV

If you use DDEV, we recommend using the FreelyGive/ddev-claude-code DDEV add-on. This will handle setting up Claude Code securely inside your DDEV container, include preserving configuration across restarts.

You can install with:

ddev add-on get FreelyGive/ddev-claude-code
ddev restart

To start using Claude code, simply run ddev claude and authenticate. See the project page for more information.

Supporting organizations: 
Development

Project information

Releases