drupal-module-development

Automate Drupal 11 module scaffolding and coding-standards enforcement.

3|5|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill drupal-module-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-module-development
Source: https://github.com/sparkfabrik/sf-awesome-copilot/tree/main/skills/drupal/drupal-module-development
Command: npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill drupal-module-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developing custom Drupal 11 modules on SparkFabrik's Firestarter platform can be complex, error-prone, and time-consuming without a structured, standards-aligned approach. This skill provides a comprehensive guide that covers scaffolding, hook implementations, and a config-first workflow to ensure robust, maintainable custom features.

Core Features & Use Cases

  • Module scaffolding: Establishes a solid Drupal 11 module foundation following Drupal coding standards.
  • Hooks & plugins: Demonstrates hook implementations and plugin patterns to extend module functionality.
  • Dependency Injection & Services: Promotes DI usage, with properly organized code and testable components.
  • Config-first workflow: Emphasizes configuration-driven development to enable safe deployments and easy configuration management.
  • Quality & architecture: Provides guidance on code quality, testing, and enforcing standard practices to ensure long-term maintainability.

Quick Start

Create a new Drupal 11 module scaffold following the coding standards and config-first workflow.

Frequently Asked Questions about drupal-module-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a custom Drupal 11 module following coding standards?

To scaffold a custom Drupal 11 module, establish a foundation that enforces PSR-12 conventions and a config-first workflow. This approach ensures robust, maintainable custom features by structuring hooks, plugins, and dependency injection from the start.

What is the best way to implement dependency injection in Drupal module development?

The best way to implement dependency injection in Drupal module development is through a service architecture pattern. This skill enforces DI usage with properly organized code and testable components, ensuring standard practices and long-term maintainability.

Does this Drupal module development workflow support a config-first approach?

Yes, this Drupal module development workflow emphasizes a config-first approach. It drives configuration-driven development to enable safe deployments and easy configuration management across your custom modules.

How do I use the repository pattern in Drupal 11 custom modules?

To use the repository pattern in Drupal 11 custom modules, apply service architecture and dependency injection guidance provided by this skill. This enforces standard practices for data access, ensuring testable and maintainable code components.

Can I use Drush for module development with this coding standards guide?

Yes, Drush is supported as a key tool within the Drupal module development workflow. The skill integrates coding standards enforcement and scaffolding practices that align with Drush-based development processes for Drupal 11 projects.

When do I need PSR-12 conventions for Drupal hooks and plugins?

You need PSR-12 conventions for Drupal hooks and plugins whenever developing custom modules to ensure code quality and long-term maintainability. Enforcing these standard practices prevents errors and maintains consistency across your module architecture.