# Drupal Development Pro

> Develop and audit Drupal modules against official coding standards and 566 SonarQube PHP, JS, and CSS rules.

Drupal Development Pro is a paid AI agent skill on Agensi by Rusiru Rathmina, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Rusiru Rathmina](https://www.agensi.io/creators/ru5iru)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-05
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/drupal-development-pro
- Tags: prompt-engineering, code-review, web-design, drupal, php, sonar, sonarqube, code-quality

## About this skill

Maintaining Drupal code quality often feels like a losing battle against technical debt and shifting standards. This skill enforces rigorous compliance by cross-referencing your code against both the official Drupal coding standards and over 500 Sonar PHP, HTML, CSS, and JavaScript rules.

### What it does
- **Standard enforcement** ensures PHP hooks, services, PSR-4 namespaces, and YAML configurations meet strict Drupal conventions.
- **Sonar analysis** applies hundreds of exported rules for security, code smells, and performance across PHP, JS, and Twig.
- **Context discovery** identifies your specific Drupal core version, module names, and service definitions to provide relevant advice.
- **Refactoring assistance** updates legacy code to modern Drupal APIs while preserving public contracts and functional behavior.
- **Documentation auditing** verifies API documentation, hook descriptions, and JSDoc tags against official formatting rules.

### How it works
1. **Discovery** scans the repository to locate the Drupal root, module machine names, and versions of PHP, Drupal, and database drivers.
2. **Rule selection** identifies every applicable standard from the local reference library, including specialized hooks and CSS architecture.
3. **Execution** performs the requested task, whether it is generating a new service or auditing an existing module for Sonar violations.
4. **Verification** validates the output against the specific Drupal fallbacks defined in the Sonar rule exports to ensure framework compatibility.

### Frameworks & tools
Built for Drupal 7, 8, 9, and 10+ environments. Supports PHP 7.x/8.x, jQuery, Twig, Symfony-based services, Composer package management, and SonarWay static analysis rules.

### Why this beats prompting it yourself
Generic AI often hallucinates Drupal hook signatures or suggests non-compliant PSR-4 structures. This skill uses a local, byte-for-byte reference of official standards and 566 specific Sonar rules, ensuring your code passes actual CI gates without manual correction.

### Use cases
- Auditing a contributed module for security hotspots and standards compliance before a release.
- Converting a legacy Drupal 7 module to a modern Drupal 10 service-oriented architecture.
- Generating boilerplate for custom entity types, routes, and configuration schemas that follow exact naming conventions.
- Cleaning up JavaScript behaviors and Twig templates to meet accessibility and performance benchmarks.

### Known limitations
Does not supply actual Sonar scanner binaries or numeric coverage thresholds. Requires the target project's specific analyzer settings to claim exact parity with a live SonarCloud instance.

## Requires

- Node.js
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Drupal Development Pro skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which versions of Drupal and PHP is this skill compatible with?

The skill provides deep analysis for Drupal 7 through 10+, supporting legacy migrations and modern service-oriented architectures while adapting to your specific PHP version (7.x/8.x).

### How does this skill differ from simply asking a standard AI to write Drupal code?

Unlike generic prompts, this skill uses a specialized reference library of 566 Sonar rules and official Drupal coding standards to ensure code passes actual CI gates without common AI hallucinations.

### Can this skill help with both writing new modules and auditing existing ones?

The skill acts as a comprehensive auditor and developer, identifying security hotspots, refactoring legacy code to modern APIs, and ensuring all YAML and PSR-4 structures meet strict framework conventions.

### Do I need to have a SonarCloud subscription or the Sonar scanner installed to use this?

No external scanner is required; the skill possesses a local reference of the SonarWay rules for PHP, JS, and CSS to perform the analysis directly within your AI agent's environment.

### What kind of setup is required to point the skill to my specific Drupal repository?

The skill is designed to automatically detect your Drupal root, module machine names, and service definitions upon activation, requiring no manual configuration of your project structure.

### Does the code auditing cover front-end assets like Twig and JavaScript, or just PHP?

It covers PHP hooks and services, JavaScript behaviors, Twig templates, CSS architecture, and even verifies JSDoc and API documentation formatting against official rules.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
