PHPackages                             ablerz/claude-skill-drupal-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ablerz/claude-skill-drupal-module

ActiveClaude-skill[Utility &amp; Helpers](/categories/utility)

ablerz/claude-skill-drupal-module
=================================

Claude Code skill for Drupal module development — acts as a senior Drupal architect with deep knowledge of Drupal 11 core APIs, modern development patterns, and best practices.

1.1.0(1mo ago)7265GPL-2.0-or-laterShellCI failing

Since Feb 10Pushed 1mo agoCompare

[ Source](https://github.com/ablerz/claude-skill-drupal-module)[ Packagist](https://packagist.org/packages/ablerz/claude-skill-drupal-module)[ Docs](https://github.com/ablerz/claude-skill-drupal-module)[ RSS](/packages/ablerz-claude-skill-drupal-module/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Claude Code Skill: Drupal Module
================================

[](#claude-code-skill-drupal-module)

A [Claude Code](https://claude.ai/code) skill that transforms Claude into a senior Drupal architect — generating production-ready, installable Drupal 11 modules using modern PHP 8.4+ syntax, proper dependency injection, and current Drupal 11 APIs.

What it does
------------

[](#what-it-does)

When invoked, this skill instructs Claude to:

- Generate complete, installable Drupal modules (all required files)
- Use PHP 8 attributes, not annotations
- Apply proper dependency injection (no `\Drupal::service()` in classes)
- Follow Drupal coding standards (2-space indent, PSR-4, PHPDoc)
- Include cache metadata, access checks, and translatable strings
- Run quality tools (`ddev phpcs`, `ddev phpstan`) and tests after every change
- Verify security: XSS, SQL injection, CSRF, access control

See [VERSIONS.md](VERSIONS.md) for Drupal/PHP/Symfony compatibility.

Installation
------------

[](#installation)

### Option A: Composer (recommended for Drupal projects)

[](#option-a-composer-recommended-for-drupal-projects)

**Step 1** — Add the installer path to your project's `composer.json`:

```
"extra": {
    "installer-paths": {
        ".claude/skills/{$name}": ["type:claude-skill"]
    }
}
```

> Requires [`oomphinc/composer-installers-extender`](https://packagist.org/packages/oomphinc/composer-installers-extender). Most Drupal projects already have this — check your `composer.json`.

**Step 2** — Require the skill:

```
composer require ablerz/claude-skill-drupal-module:dev-11.x
```

The skill installs to `.claude/skills/custom-drupal-module/` automatically.

**Updating:**

```
composer update ablerz/claude-skill-drupal-module
```

---

### Option B: Git clone (any project)

[](#option-b-git-clone-any-project)

```
# Project-level (this project only)
git clone -b 11.x https://github.com/ablerz/claude-skill-drupal-module \
  .claude/skills/custom-drupal-module

# Global (all projects on this machine)
git clone -b 11.x https://github.com/ablerz/claude-skill-drupal-module \
  ~/.claude/skills/custom-drupal-module
```

**Updating:**

```
git -C .claude/skills/custom-drupal-module pull
# or globally:
git -C ~/.claude/skills/custom-drupal-module pull
```

DDEV setup (required for quality commands)
------------------------------------------

[](#ddev-setup-required-for-quality-commands)

The skill instructs Claude to run `ddev phpcs`, `ddev phpcbf`, `ddev phpstan`, and `ddev phpunit` — these are **custom DDEV commands** that must exist in your project's `.ddev/commands/web/` directory. They are not included with DDEV by default.

This repo ships ready-to-use command scripts in [`ddev-commands/`](ddev-commands/). Copy them into your project:

```
cp .claude/skills/custom-drupal-module/ddev-commands/* .ddev/commands/web/
chmod +x .ddev/commands/web/phpcs .ddev/commands/web/phpcbf \
         .ddev/commands/web/phpstan .ddev/commands/web/phpunit
ddev restart
```

> If you installed via git clone, substitute the path accordingly.

After this, `ddev phpcs`, `ddev phpcbf`, `ddev phpstan`, and `ddev phpunit` will work as expected.

---

Usage
-----

[](#usage)

Once installed, invoke the skill in Claude Code using:

```
/custom-drupal-module

```

Or reference it in your `CLAUDE.md`:

```
When working with Drupal custom modules, invoke the `custom-drupal-module` skill first.
```

Drupal version support
----------------------

[](#drupal-version-support)

BranchDrupalPHP`11.x`11.x8.4+`12.x`12.xTBDSee [VERSIONS.md](VERSIONS.md) for the full compatibility matrix.

Staying current
---------------

[](#staying-current)

This skill uses two official Drupal sources to stay accurate:

- **API reference**: [api.drupal.org/api/drupal/11.x](https://api.drupal.org/api/drupal/11.x)
- **Breaking changes**: [drupal.org/list-changes/drupal](https://www.drupal.org/list-changes/drupal?version=11.x)

A GitHub Actions workflow runs monthly and opens an issue if breaking changes are detected since the skill's `last_updated` date.

Contributing
------------

[](#contributing)

Pull requests welcome. When updating for a new Drupal version:

1. Branch from the previous version branch
2. Update all version strings in `SKILL.md` frontmatter
3. Update affected `references/*.md` files
4. Add a `CHANGELOG.md` entry
5. Update `VERSIONS.md`

License
-------

[](#license)

GPL-2.0-or-later — compatible with Drupal and the Drupal ecosystem.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Total

3

Last Release

59d ago

Major Versions

1.1.0 → 11.x-dev2026-05-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/333856?v=4)[Martijn de Wit](/maintainers/martijndewit)[@martijndewit](https://github.com/martijndewit)

---

Top Contributors

[![martijndewit](https://avatars.githubusercontent.com/u/333856?v=4)](https://github.com/martijndewit "martijndewit (1 commits)")

---

Tags

drupalclaudeclaude-codeskilldrupal-moduledrupal11

### Embed Badge

![Health badge](/badges/ablerz-claude-skill-drupal-module/health.svg)

```
[![Health](https://phpackages.com/badges/ablerz-claude-skill-drupal-module/health.svg)](https://phpackages.com/packages/ablerz-claude-skill-drupal-module)
```

###  Alternatives

[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3793.0M11](/packages/lullabot-amp)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M564](/packages/drupal-core-composer-scaffold)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1465.4M62](/packages/mnsami-composer-custom-directory-installer)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318123.0k1](/packages/cognesy-instructor-php)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[dykyi-roman/awesome-claude-code

Claude Code extension for PHP: audits (architecture, DDD, security, performance, PSR, design patterns, Docker, CI/CD, tests, docs), 3-level code review, automated bug fix, generators (DDD, CQRS, GoF patterns, PSR, tests, documentation, Docker, CI/CD), code explanation, refactoring. 26 commands, 62 agents, 259 skills.

851.2k](/packages/dykyi-roman-awesome-claude-code)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
