drupal-module-polish

Implement configuration management, admin interfaces, and documentation for Drupal modules.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/proofoftom/waap-drupal --skill drupal-module-polish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-module-polish
Source: https://github.com/proofoftom/waap-drupal/tree/main/.claude/skills/drupal-module-polish
Command: npx skills add https://github.com/proofoftom/waap-drupal --skill drupal-module-polish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you convert Drupal custom modules from prototype to production-ready quality by implementing configuration management, admin interfaces, coding standards, and documentation patterns.

Core Features & Use Cases

  • Configuration management: Create and enforce configuration schemas, default settings, and forms.
  • Admin interfaces: Add settings forms, routes, menus, and permissions to expose configuration to administrators.
  • Code quality & documentation: Integrate PHPCS, PHPStan, and thorough module documentation to ensure maintainable code.
  • Frontend-backend integration: Use drupalSettings to pass server config to JavaScript for cohesive UI behavior.
  • Use Case: You’re migrating a custom module with no config into a production-ready module that can be deployed via CI/CD.

Quick Start

Follow the steps in SKILL.md to polish a Drupal module: review config, add settings form, wire routing and permissions, align with coding standards, and document usage.

Frequently Asked Questions about drupal-module-polish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a Drupal module production-ready?

Drupal module production readiness requires implementing configuration schemas, admin settings forms, routing, permissions, and enforcing coding standards like PHPCS and PHPStan to ensure maintainable, deployable code.

How do I add a settings form to a Drupal module?

Add a settings form to a Drupal module by defining a route, registering permissions, and building a form class that saves configurations, allowing administrators to manage module settings directly.

What is the best way to manage Drupal module configuration for deployment?

Managing Drupal module configuration requires creating config schemas and default files, ensuring settings are consistently deployed and synchronized across environments via CI/CD pipelines.

Does this approach enforce PHPStan and PHPCS coding standards?

Yes, the process enforces coding standards by integrating PHPCS and PHPStan, validating code quality and adherence to Drupal coding conventions to maintain a robust and standardized codebase.

How do I pass server configuration to JavaScript in Drupal?

Pass server configuration to JavaScript in Drupal by using drupalSettings, which securely integrates frontend UI behavior with backend configuration data for cohesive module functionality.

When do I need configuration schemas for a Drupal module?

You need configuration schemas for a Drupal module when adding default settings or admin forms, ensuring the configuration system correctly understands and enforces data types during deployment.