drupal-development skill
✓ VerifiedDevelop Drupal 10 modules using PHP 8+, SOLID principles, and Drupal coding standards.
- GitHub stars
- 303
- Files
- 1
- Last commit
- Oct 8, 2026
- License
- Apache-2.0
- Allowed tools
- —
What does the drupal-development skill do?
drupal-development is an agent skill. Develop Drupal 10 modules using PHP 8+, SOLID principles, and Drupal coding standards.
Summary generated from the skill's SKILL.md.
About the drupal-development skill
Building custom Drupal 10 modules with modern PHP 8.1+ standards is the primary function of this skill. Developers use it to generate technically accurate code that adheres to Drupal coding standards, PSR-12, and SOLID principles. When an agent loads this skill, it acts as an expert architect capable of implementing complex systems like the service container, plugin system, and the Drupal database API.
It produces structured code components including services defined in services.yml, routing configurations in module.routing.yml, and database schema definitions via hook_schema. The skill ensures all output follows strict typing and utilizes dependency injection rather than raw SQL or unmanaged code. It is designed for engineers who need to implement decoupled logic through the event system, manage background tasks with the Queue API, or build secure interfaces using the Form API and proper CSRF protection.
What an agent can do with it
- 1Create custom Drupal servicesAsk the agent to register a new service in a services.yml file using dependency injection.
- 2Implement secure form handlingRequest the creation of a form that uses the Drupal Form API with validation and submission handlers.
- 3Define module routing and accessHave the agent set up new routes and access controls within a module's routing configuration.
- 4Develop database schema updatesInstruct the agent to write a hook_schema for a new table and an update hook for future changes.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the drupal-development skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the drupal-development skill in Claude Code
~/.claude/skills/drupal-development/SKILL.md
$ npx degit Mindrally/skills/drupal-development ~/.claude/skills/drupal-developmentInstall the drupal-development skill in Claude Code (project)
.claude/skills/drupal-development/SKILL.md
$ npx degit Mindrally/skills/drupal-development .claude/skills/drupal-developmentInstall the drupal-development skill in Codex
~/.agents/skills/drupal-development/SKILL.md
$ npx degit Mindrally/skills/drupal-development ~/.agents/skills/drupal-developmentInstall the drupal-development skill in Gemini CLI
~/.gemini/skills/drupal-development/SKILL.md
$ npx degit Mindrally/skills/drupal-development ~/.gemini/skills/drupal-developmentInstall the drupal-development skill in Claude.ai
npx degit Mindrally/skills/drupal-development drupal-development && zip -r drupal-development.zip drupal-development # claude.ai → Customize → Skills → + → Create skill → Upload a skill → drupal-development.zip
Automated checks
Ran Nov 15, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work · What to fix for more points
- Source repository linked and reachablemindrally/skills/drupal-development is public and reachablegithub.com/mindrally/skills/tree/HEAD/drupal-development ↗Pass
- Open source license (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Pass
- Commit or release in the last yearLast commit 2026-10-08github.com/mindrally/skills/commits ↗Pass
- No download-and-run or credential theft in scriptsNo scripts in the skill folderPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/mindrally/skills/blob/HEAD/drupal-development/SKI ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/mindrally/skills/blob/HEAD/drupal-development/SKI ↗Pass
- SKILL.md follows the Agent Skills formatthe description does not say when to use the skillgithub.com/mindrally/skills/blob/HEAD/drupal-development/SKI ↗Finding
SKILL.md
View on GitHubDrupal 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
- Use Drupal's database API instead of raw SQL queries
- Implement Repository pattern for data access logic
- Utilize the service container for dependency injection
- Leverage Drupal's caching API for performance optimization
- Use Queue API for background processing
- Implement comprehensive PHPUnit testing
- Follow the configuration management system
- Use Drupal's entity system and Field API appropriately
- Implement hooks properly following Drupal conventions
- Use Form API for all form handling
Code Architecture
Services
- Follow single responsibility principle
- Register services properly in
services.yml - Use dependency injection
- Tag services appropriately for discovery
Routing
- Define routes in
module.routing.yml - Implement proper access checks
- Use route parameters appropriately
Schema and Updates
- Use
hook_schema()for database table definitions - Implement update hooks for schema changes
- Follow proper versioning for updates
Events
- Use Drupal's event system for decoupled code
- Create custom events when appropriate
- Subscribe to core events properly
Forms
- Implement form handlers using Form API
- Use proper validation and submission handlers
- Implement AJAX forms when needed
Security
- Sanitize all user input
- Implement CSRF protection
- Use proper access controls
- Escape output appropriately
Files in this skill
1drupal-development skill questions
How do I install the drupal-development skill in Claude Code?
Run npx degit Mindrally/skills/drupal-development ~/.claude/skills/drupal-development. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the drupal-development skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
How should database queries be handled in Drupal?
You should use Drupal's built-in database API instead of writing raw SQL queries.