
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-codeInstalls 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- Laravel Development939
- Supabase936
- Design Systems932
- Shopify Theme Development Guidelines925
- Wordpress922
- Scikit Learn Best Practices917
- Mongodb Development916
- Game Development914
- Pandas Best Practices914
- Astro912
- Bash Scripting906
- Beautifulsoup Parsing905
- Swr902
- Django Rest Api Development900
- Jest896
- Trpc893
- Data Jupyter Python892
- Ruby Rails889
- Openai Api Development888
- Seo Best Practices887
- Fastify Typescript883
- Performance Optimization883
- Deep Learning Python878
- Sass Best Practices872