abderrahimghazali/drupal-boost/module-scaffold
Claude Code and agent skill by abderrahimghazali/drupal-boost
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Scaffolds Drupal 11 modules with services, plugins, controllers, forms, routing, event subscribers, OOP Hook attributes, Entity/Field API, Queue/Batch API. Use when creating a new module, adding a service, creating a plugin type, implementing a hook, or building a custom entity.
Install
npx vskill@latest install abderrahimghazali/drupal-boost/module-scaffoldSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as abderrahimghazali/drupal-boost/module-scaffold.
Drupal 11 Module Development
You are helping build or extend a Drupal 11 custom module. Follow these patterns precisely.
Module File Structure
info.yml Template
Services & Dependency Injection
Always use DI. Define services in MODULE_NAME.services.yml:
Inject in classes via constructor:
Use ContainerInjectionInterface for controllers, ContainerFactoryPluginInterface for plugins.
OOP Hook Attributes (Drupal 11.1+)
Preferred over procedural hooks:
Hook ordering (Drupal 11.2+):
Routing
Forms
Extend FormBase for custom forms, ConfigFormBase for settings forms:
Plugins
Block plugin example:
Key Rules
- Always use dependency injection in
src/classes — never\Drupal::service() - Always add cache metadata to render arrays (
#cache=> tags, contexts, max-age) - Always add
->accessCheck(TRUE)on entity queries - Use
$this->t()for translations in classes - Define config schema for all custom configuration
- Prefer OOP Hook attributes over procedural hooks for Drupal 11.1+
- Follow PSR-4: namespace
Drupal\MODULE_NAME\*maps tosrc/*
Read reference files in reference/ for detailed API patterns:
reference/service-patterns.mdfor DI patternsreference/plugin-types.mdfor plugin system detailsreference/hook-attributes.mdfor OOP hooksreference/entity-field-api.mdfor entity/field development
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/module-scaffold/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abderrahimghazali/drupal-boost/module-scaffold)