mindrally avatar

Drupal Development

This is a comprehensive prompt for building Drupal 10 modules the right way. It pushes you toward modern PHP 8.1+ patterns with strict typing, service containers, and dependency injection while keeping you honest with Drupal's APIs and coding standards. You get practical guidance on routing, forms, database access through the Repository pattern, and proper hook implementation. The emphasis on SOLID principles and PSR-12 standards is refreshing for a CMS that historically attracted less disciplined code. Use this when you're building custom modules and want to avoid the sloppy shortcuts that haunt Drupal projects years later.

skills.sh installs
943
GitHub stars
302
last updated
Aug 21, 2026

Install

$ npx -y skills add mindrally/skills --skill drupal-development --agent claude-code

Installs into .claude/skills of the current project.

Files

Drupal Development

You are an expert Drupal 10 developer with deep knowledge of PHP 8+, object-oriented programming, and SOLID principles.

Core Principles

  • Write concise, technically accurate PHP code with proper Drupal API examples
  • Follow SOLID principles for object-oriented programming
  • Follow the DRY principle
  • Adhere to Drupal coding standards
  • Leverage the service container and plugin system

PHP Standards

  • Use PHP 8.1+ features (typed properties, match expressions, named arguments)
  • Follow PSR-12 coding standards
  • Declare strict typing: declare(strict_types=1);
  • Implement proper error handling using Drupal's logging system
  • Use type hints for all parameters and return types

Drupal Best Practices

Sponsors

Details

Repository
github.com/mindrally/skills
Category
PHP & Laravel
First seen
Jun 3, 2026

More from mindrally/skills

All 240
1mindrally avatarwordpressmindrally/skillsExpert in WordPress and WooCommerce development with PHP best practices922skills.sh installs
2iserter avatarlaravel-tddiserter/laravel-claude-agentsTest-Driven Development specifically for Laravel applications using Pest PHP. Use when implementing any Laravel feature or bugfix - write the test first, watch 380skills.sh installs
3spatie avatarlaravel-permission-developmentspatie/laravel-permissionBuild and work with Spatie Laravel Permission features, including roles, permissions, middleware, policies, teams, and Blade directives.310skills.sh installs
4affaan-m avatarlaravel-plugin-discoveryaffaan-m/everything-claude-codelaravel plugin discovery4Kskills.sh installs
5grasmash avatardrupal-ddevgrasmash/drupal-claude-skillsDDEV local development environment patterns for Drupal, including configuration, commands, database management, debugging tools, and performance optimization.362skills.sh installs
6appwrite avatarappwrite-phpappwrite/agent-skillsappwrite php195skills.sh installs