Index of every page on this site: llms.txt
All skills
grasmash avatar

/drupal-contrib-mgmt

@19514f4
Run it yourself

Manages Drupal contributed modules via Composer - module updates and major-version upgrades, cweagans/composer-patches v2 (patches.lock.json, composer patches-relock, verifying patches are applied), mglaman/composer-drupal-lenient, Drupal 11 compatibility checks with upgrade_status, committing an optimized vendor/ autoloader, and contributing fixes back to drupal.org via issue forks and merge requests. Use when updating or upgrading contrib modules, applying, finding or creating patches, a patch fails or keeps regressing after composer install, resolving Composer dependency or drupal/core version conflicts, checking Drupal 11 readiness or deprecations, or contributing to a drupal.org issue queue.

Use this Skill: https://skilld.dev/gh/grasmash/drupal-claude-skills/drupal-contrib-mgmt

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdrupal-lenient.md

≈739 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Validating drupal-lenient Requirements

CRITICAL: When auditing modules in the drupal-lenient allowed-list, you MUST check UPSTREAM package requirements, NOT local patched versions.

Correct Method to Check Upstream D11 Support

  1. Check Packagist/Drupal.org directly - Not local files which may be patched
  2. Use composer show drupal/MODULE --all - Shows all available versions
  3. Fetch package composer.json from drupal.org - https://git.drupalcode.org/project/MODULE/-/raw/HEAD/composer.json

Example: Checking if a Module Needs drupal-lenient

# WRONG - checks patched local version
grep core_version_requirement docroot/modules/contrib/MODULE/MODULE.info.yml

# WRONG - affected by drupal-lenient plugin
composer info drupal/MODULE | grep "drupal/core"

# CORRECT METHOD 1 - use composer prohibits to test D11 compatibility
composer prohibits drupal/core-recommended 11.2.5 --no-plugins
# Shows which packages prevent installing D11.2.5

# CORRECT METHOD 2 - check all available versions
composer show drupal/MODULE --all --no-plugins | head -30
# Look for "requires" section to see drupal/core constraints

# CORRECT METHOD 3 - fetch specific version's composer.json from upstream
curl -s https://git.drupalcode.org/project/MODULE/-/raw/8.x-VERSION/composer.json | grep -A 2 drupal/core

When to Use drupal-lenient

A module should ONLY be in the drupal-lenient allowed-list if:

  • The upstream package's composer.json requires drupal/core with constraints that EXCLUDE D11 (e.g., ^8 || ^9 || ^10)
  • You are patching it to add D11 support via .info.yml patch

IMPORTANT: drupal-lenient only affects composer.json constraints. If a module doesn't declare drupal/core in its composer.json at all, drupal-lenient does nothing and the module should NOT be in the allowed-list (even if the .info.yml has restrictions).

When NOT to Use drupal-lenient

Remove from allowed-list if:

  • Upstream already supports D11 in composer.json (e.g., ^10 || ^11)
  • Upstream has D11 support in .info.yml but NO drupal/core constraint in composer.json (e.g., s3fs 8.x-3.9)
  • A new version with native D11 support is available
  • You've contributed a patch that was merged upstream

Checking BOTH composer.json AND .info.yml

Some modules (like s3fs) declare D11 compatibility ONLY in .info.yml, not in composer.json. For these modules:

# Check composer.json for drupal/core requirement
curl -s https://git.drupalcode.org/project/s3fs/-/raw/8.x-3.9/composer.json | grep "drupal/core"
# Returns: (nothing) - NO drupal/core constraint

# Check .info.yml for core_version_requirement
curl -s https://git.drupalcode.org/project/s3fs/-/raw/8.x-3.9/s3fs.info.yml | grep core_version_requirement
# Returns: core_version_requirement: ">=8.8 < 10.6 || >=11.0 < 11.2 || ~11.2.3"

Result: s3fs has D11 support and NO composer.json constraint, so it should NOT be in drupal-lenient.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

3 warnings1mo5 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a comprehensive guide for managing Drupal contributed modules, focusing on updates, patches, and Drupal 11 compatibility. It provides instructions for using standard tools like Composer, Drush, and Git, and directs the agent to fetch data and patches from official Drupal repositories. While these sources are legitimate and trusted within the Drupal ecosystem, the ingestion of user-contributed content from issue queues presents a minor surface for indirect prompt injection.

  • Socket1mo

    1 alert: gptAnomaly

  • Snyk1mo

    Risk: MEDIUM · 1 issue

  • Runlayer8mo

    5/8 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 19514f4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for grasmash/drupal-claude-skills/drupal-contrib-mgmt