What problem does it solve?
This Skill helps you determine whether a Drupal patch or merge request is ready to submit by running all relevant quality gates in the same DDEV-based environment used for the project.
Core Features & Use Cases
- Pre-test design review: Flags brittle or risky test patterns (inheritance issues, assertions that break under normal Drupal behavior) before any containers spin up.
- Automated quality gate execution: Runs PHPCS, PHPStan, and PHPUnit/coverage checks via DDEV to ensure consistent results.
- Environment-safe execution: Resolves the project root from
~/.claude/drupal-lab.json, runs inside DDEV containers, and uses a DB snapshot for fast rollback/retries.
- Use case: Validate a patch right before opening/merging an MR (for example: “check this MR is passing coding standards, static analysis, and the relevant test suites”). Use
drupal-lab:analyze-issue for browsing issues or analyzing issue context.
Quick Start
Ask: validate this Drupal patch in the worktree at worktrees/<issue_number> and run the full set of quality gates (PHPCS, PHPStan, PHPUnit, and coverage).