drupal-contribute-fix

Search Drupal.org for existing issues before generating patches from local fixes.

21|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/scottfalconer/drupal-contribute-fix --skill drupal-contribute-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-contribute-fix
Source: https://github.com/scottfalconer/drupal-contribute-fix/tree/main
Command: npx skills add https://github.com/scottfalconer/drupal-contribute-fix --skill drupal-contribute-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill transforms AI-generated local Drupal fixes into maintainer-friendly contributions, preventing duplicate work and ensuring high-quality, targeted patches.

Core Features & Use Cases

  • Upstream Awareness: Searches Drupal.org for existing fixes before generating new ones.
  • Quality Gates: Runs PHP lint and PHPCS to ensure code quality.
  • Maintainer-First Workflow: Generates clean artifacts for human review, never auto-posts.
  • Use Case: An AI identifies a bug in the Metatag module. Instead of just fixing it locally, this Skill checks Drupal.org, finds an existing Merge Request, and guides the user to contribute to that MR, saving everyone time.

Quick Start

Use the drupal-contribute-fix skill to package a local fix for the metatag module.

Frequently Asked Questions about drupal-contribute-fix

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

FAQPage Schema
How do I package a local Drupal code fix as a contribution to drupal.org?

To package a local Drupal code fix as a contribution, this Skill searches the drupal.org issue queue for existing patches before generating a new one. It then runs PHP lint and PHPCS checks to ensure the final patch meets Drupal contribution standards.

What is the best way to ensure my Drupal contribution meets code quality standards?

The best way to ensure a Drupal contribution meets code quality standards is automated PHP lint and PHPCS validation. This Skill applies these quality gates automatically, verifying your local fix adheres to Drupal coding standards before packaging.

Does this workflow automatically post my Drupal patch to the issue queue?

No, this workflow does not automatically post your Drupal patch to the issue queue. It operates on a maintainer-first workflow, generating clean patch artifacts for human review to ensure proper oversight before any submission.

Do I need Git to create an upstream Drupal patch from a local module fix?

You need Git to manage the local repository state and create an upstream Drupal patch from a module fix. The Skill uses Git to package the code changes into a clean artifact suitable for the drupal.org issue queue.

Why does my AI-generated Drupal fix need upstream awareness before patching?

AI-generated Drupal fixes need upstream awareness to prevent duplicate contributions and ensure targeted patches. Searching drupal.org for existing issues first saves maintainer review time by directing your efforts toward existing merge requests when available.