Download the PHP package ablerz/claude-skill-drupal-module without Composer
On this page you can find all versions of the php package ablerz/claude-skill-drupal-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ablerz/claude-skill-drupal-module
More information about ablerz/claude-skill-drupal-module
Files in ablerz/claude-skill-drupal-module
Package claude-skill-drupal-module
Short Description 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.
License GPL-2.0-or-later
Homepage https://github.com/ablerz/claude-skill-drupal-module
Informations about the package claude-skill-drupal-module
Claude Code Skill: Drupal Module
A Claude 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
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 for Drupal/PHP/Symfony compatibility.
Installation
Option A: Composer (recommended for Drupal projects)
Step 1 — Add the installer path to your project's composer.json:
Requires
oomphinc/composer-installers-extender. Most Drupal projects already have this — check yourcomposer.json.
Step 2 — Require the skill:
The skill installs to .claude/skills/custom-drupal-module/ automatically.
Updating:
Option B: Git clone (any project)
Updating:
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/. Copy them into your project:
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
Once installed, invoke the skill in Claude Code using:
Or reference it in your CLAUDE.md:
Drupal version support
| Branch | Drupal | PHP |
|---|---|---|
11.x |
11.x | 8.4+ |
12.x |
12.x | TBD |
See VERSIONS.md for the full compatibility matrix.
Staying current
This skill uses two official Drupal sources to stay accurate:
- API reference: api.drupal.org/api/drupal/11.x
- Breaking changes: drupal.org/list-changes/drupal
A GitHub Actions workflow runs monthly and opens an issue if breaking changes are detected since the skill's last_updated date.
Contributing
Pull requests welcome. When updating for a new Drupal version:
- Branch from the previous version branch
- Update all version strings in
SKILL.mdfrontmatter - Update affected
references/*.mdfiles - Add a
CHANGELOG.mdentry - Update
VERSIONS.md
License
GPL-2.0-or-later — compatible with Drupal and the Drupal ecosystem.