evo-maven-patch-generation

evo-maven-patch-generation is a skill for Claude Code, Codex from OpenLAIR/OpenSkill. It costs 37 tokens per session (445 once invoked), scanned A, original, Apache-2.0.

A patch generator and applier for Java Maven projects. It creates unified diffs for source, POM, and Travis CI configuration changes, then applies them to the project.

In plain words
What is it for?
Use it to create patches for Java or pom.xml changes, fix .travis.yml files, and apply those patches to a Maven project.
Why use it?
It provides a repeatable way to package and apply fixes to Maven builds. It also handles common patch application methods when Git cannot apply a patch directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create patches for Java or pom.xml changes, fix .travis.yml files, and apply those patches to a Maven project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlair/openskill/evo-maven-patch-generation
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 OpenLAIR/OpenSkill --skill evo-maven-patch-generation
Clone the repo
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill

Made for: Claude Code, Codex.

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 evo-maven-patch-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlair/openskill/evo-maven-patch-generation/github.svg)](https://agentmods.dev/skills/openlair/openskill/evo-maven-patch-generation)
Your own site
<a href="https://agentmods.dev/skills/openlair/openskill/evo-maven-patch-generation"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-maven-patch-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for evo-maven-patch-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/openlair/openskill/evo-maven-patch-generation"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-maven-patch-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00037 $0.00445
Opus 5 $0.00018 $0.00222
Sonnet 5 $0.00007 $0.00089
Haiku 4.5 $0.00004 $0.00044

Measured yesterday against content hash 01859c395671, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

evo-maven-patch-generation scanned grade A with 0 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/utils.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tasks-evolved/fix-build-google-auto/environment/skills/evo-maven-patch-generation/SKILL.md · 45 lines

What it actually says

evo-maven-patch-generation

Generates and applies unified diff patches for Java Maven build fixes.

Key Functions

  • generate_unified_diff(original_text, modified_text, file_path) - Basic unified diff
  • make_strict_patch(original_text, modified_text, file_path) - Strict diff with EOF newline handling
  • write_patch_file(patch_content, patch_path) - Write patch to disk
  • apply_patch_via_git(patch_path, project_dir) - Apply via git apply
  • apply_patch_via_patch_command(patch_path, project_dir, strip) - Apply via patch command
  • apply_patch(patch_path, project_dir) - Try git apply, fallback to patch
  • modify_file_content(file_path, old_text, new_text) - Simple text replacement
  • modify_java_source(file_path, modifications) - Apply multiple replacements to Java file
  • modify_pom_xml(pom_path, property_changes) - Modify POM properties
  • create_travis_fix_patch(travis_path, old_text, new_text, patch_path) - Fix .travis.yml

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-maven-patch-generation/scripts')
from utils import (
    make_strict_patch, write_patch_file, apply_patch,
    modify_file_content, create_travis_fix_patch
)

# Fix .travis.yml typo
create_travis_fix_patch('.travis.yml', 'build.pom.xml', 'build-pom.xml', 'patch_1.diff')

# Apply patch
apply_patch('patch_1.diff', '/path/to/project')

Important Notes

  • Always use make_strict_patch for git-compatible patches (handles EOF newlines)
  • Patch files use standard unified diff format compatible with git apply and patch
  • File paths in diffs use a/ and b/ prefixes
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 45 lines · 37 tokens per session scan A 01859c395671

Subscribe to this mod's changes

evo-maven-patch-generation is a skill published in the GitHub repository OpenLAIR/OpenSkill (90 stars, last pushed yesterday), licensed Apache-2.0. It adds 37 tokens to every session and 445 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.

Related

Other skills, from other repositories

nullaway

Guide for resolving NullAway static analysis errors. Best practices for: Passing ObservableSupplier/Supplier Dereferencing potentially @Nullable values Adding @NullMarked to Java code.

chromium/chromium · 43 tokens

wxjava-troubleshooter

A troubleshooting guide for WxJava, a Java library used to connect applications to WeChat services. It organizes problems involving setup, access tokens, signatures, payment certificates, callbacks, data conversion, network requests, and multiple accounts.

binarywang/WxJava · 65 tokens

performance-smell-detection

Detect potential code-level performance smells in Java - streams, collections, boxing, regex, object creation. Provides awareness, not absolutes - always measure before optimizing. For JPA/database performance, use jpa-patterns instead.

decebals/claude-code-java · 51 tokens

126-java-exception-handling

Use when you need to apply Java exception handling best practices — including using specific exception types, managing resources with try-with-resources, securing exception messages, preserving error context via exception chaining, validating inputs early with fail-fast principles, handling thread interruption…

jabrena/plinth · 144 tokens

jstall

This skill should be used when the user asks about "JVM performance", "Java thread dump", "Java deadlock", "JVM diagnosis", "what is my Java application doing", "slow Java", "Java profiling", "flamegraph", "Java CPU usage", "thread contention", "JVM inspection", "jstall", or any question about analyzing, debugging, or…

parttimenerd/jstall · 87 tokens

pmd

Set up, run, and triage PMD static analysis on a Maven/Java project — the ruleset, the plugin wiring, parsing the report by rule and priority, copy-paste detection, and how to suppress a finding at the right level. Use when the user says "run PMD", "PMD is failing", "fix the PMD violations", "add static analysis"…

alexmond/alexmskills · 110 tokens