composer-patch-generator

composer-patch-generator is a skill for Claude Code from kanopi/cms-cultivator. It costs 115 tokens per session (2,459 once invoked), scanned C, original, GPL-2.0.

A workflow for creating patches for Composer-installed PHP packages. Composer is PHP's dependency manager, and a patch records local changes so they can be reapplied during installation.

In plain words
What is it for?
Use it to modify Drupal modules, WordPress packages, or PHP libraries and generate or maintain patches with cweagans/composer-patches.
Why use it?
It lets you change a contributed or vendor package while keeping the change separate from the package's original source.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cms-cultivator plugin — 26 skills shipped together

Good fit Use it to modify Drupal modules, WordPress packages, or PHP libraries and generate or maintain patches with cweagans/composer-patches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kanopi/cms-cultivator/composer-patch-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kanopi/cms-cultivator --skill composer-patch-generator
Clone the repo
git clone --depth 1 https://github.com/kanopi/cms-cultivator

Made for: Claude Code.

Or install cms-cultivator, the plugin that ships this one along with the rest of its 26 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for composer-patch-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/kanopi/cms-cultivator/composer-patch-generator.svg)](https://agentmods.dev/skills/kanopi/cms-cultivator/composer-patch-generator)
Your own site
<a href="https://agentmods.dev/skills/kanopi/cms-cultivator/composer-patch-generator"><img src="https://agentmods.dev/badge/skills/kanopi/cms-cultivator/composer-patch-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,459 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.02459
Opus 5 $0.00057 $0.01229
Sonnet 5 $0.00023 $0.00492
Haiku 4.5 $0.00012 $0.00246

Measured 8d ago against content hash 09b8d59b671e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

composer-patch-generator scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

WORK=/tmp/patch_gen && rm -rf "$WORK" && mkdir -p "$WORK"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sL "https://ftp.drupal.org/files/projects/<module>-<version>.zip" -o "$WORK/dist.zip"
skills/composer-patch-generator/SKILL.md · 212 lines

The source is not reproduced here

Licensed GPL-2.0

The repository is licensed GPL-2.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 212 lines · 115 tokens per session scan C 09b8d59b671e

Subscribe to this mod's changes

composer-patch-generator is a skill published in the GitHub repository kanopi/cms-cultivator (17 stars, last pushed 7d ago), licensed GPL-2.0. It adds 115 tokens to every session and 2,459 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

php

PHP development: code quality, PSR standards, testing with PHPUnit.

notque/vexjoy-agent · 16 tokens

branch-and-worktree-workflow

Isolates feature work in its own branch or worktree and integrates it cleanly when done. Use this when starting work that should not disturb the current workspace, when several efforts must proceed in parallel on one repository, or when implementation is finished and the change needs merging, rebasing, or splitting…

cbrock84/headcount · 70 tokens

craftcms

Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…

michtio/craftcms-claude-skills · 327 tokens

craft-php-guidelines

Craft CMS 5 PHP coding standards and conventions. ALWAYS load when writing, editing, reviewing, or discussing any PHP in a Craft plugin or module — even small edits. Also when running ECS, PHPStan, or scaffolding with ddev craft make. Covers: PHPDoc blocks (@author, @since, @throws chains), section headers…

michtio/craftcms-claude-skills · 336 tokens

craft-pest

Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php +…

michtio/craftcms-claude-skills · 353 tokens

php-rules

PHP coding rules: style, patterns, security, testing. Triggers: .php, composer.json, Laravel, Symfony, PHPUnit, PSR-12, Composer.

softspark/ai-toolkit · 38 tokens