- Home
- Skills
- Code Quality & Review
- Drupal Development Pro
Works with the AI Agents you already use
Drupal Development Pro
Develop and audit Drupal modules against official coding standards and 566 SonarQube PHP, JS, and CSS rules.
$15
Drupal Development Pro
Example session with this skill installed
Review my custom module's .module file for Drupal hook documentation standards and any Sonar PHP rules regarding control structures.
- Read your context and instructions
- Compiled the drupal development pro
I have reviewed web/modules/custom/my_module/my_module.module against the Drupal API documentation standards and 566 Sonar PHP rules. I identified three documentation violations and one Sonar violation regarding control structure complexity.
Drupal Standards Review
| Location | Rule/Key | Finding | Recommended Fix |
|---|---|---|---|
| Line 12 | documentation.md | Hook implementation missing @inheritdoc or specific summary. | Add /** Implements hook_form_alter(). */ |
| Line 45 | php:S1066 | Collapsible if statements should be merged. | Combine nested conditions into a single if block. |
| Line 88 | documentation.md | Parameter description for $form_state is missing the type. | Use \Drupal\Core\Form\FormStateInterface $form_state. |
| Line 102 | php:S1541 | Cyclomatic complexity is too high (12). | Extract the logic for field validation into a protected helper method. |
Next steps
- Update the hook implementations to use the standard one-line documentation format.
- Merge the nested conditional blocks in the form validation logic.
- Refactor the complex loop in
my_module_preprocess_pageinto a dedicated service method.
Connects securely to your tools. The creator never sees your data.
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
- Discovery scans the repository to locate the Drupal root, module machine names, and versions of PHP, Drupal, and database drivers.
- Rule selection identifies every applicable standard from the local reference library, including specialized hooks and CSS architecture.
- Execution performs the requested task, whether it is generating a new service or auditing an existing module for Sonar violations.
- 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.
Does not include live Sonar binaries. Claims no scanner parity without project-specific analyzer settings. Reference material is a fixed snapshot.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Requires