validate-patch

Community

Run Drupal patch quality gates safely.

Authorcosmicdreams
Version1.0.0
Installs0

System Documentation

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).

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: validate-patch
Download link: https://github.com/cosmicdreams/claude-plugins/archive/main.zip#validate-patch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.