evo-java-build-fixer

evo-java-build-fixer is a skill for Claude Code, Codex from Zhang-Henry/CoEvoSkills. It costs 52 tokens per session (683 once invoked), scanned A, original, Apache-2.0.

A troubleshooting and patching workflow for Java projects built with Maven, a tool that manages Java dependencies and build steps, especially in continuous-integration systems.

In plain words
What is it for?
Use it to find the repository and build command, run the build, analyze Maven and dependency errors, create minimal unified-diff patches, apply fixes, and verify the build.
Why use it?
It helps locate the cause of failed builds, including old `tools.jar` dependencies that do not work with Java 9 or newer, instead of fixing errors by trial and error.

Skill for Claude CodeCodex

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/travis/build/failed/.

Good fit Use it to find the repository and build command, run the build, analyze Maven and dependency errors, create minimal unified-diff patches, apply fixes, and verify the build.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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-java-build-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-java-build-fixer.svg)](https://agentmods.dev/skills/zhang-henry/coevoskills/evo-java-build-fixer)
Your own site
<a href="https://agentmods.dev/skills/zhang-henry/coevoskills/evo-java-build-fixer"><img src="https://agentmods.dev/badge/skills/zhang-henry/coevoskills/evo-java-build-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 683 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.00052 $0.00683
Opus 5 $0.00026 $0.00342
Sonnet 5 $0.00010 $0.00137
Haiku 4.5 $0.00005 $0.00068

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

Security

Grade A, and why

evo-java-build-fixer 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/__init__.py, 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.

artifacts/skills/fix-build-google-auto/evo-java-build-fixer/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Java Build Fixer Skill

This skill diagnoses and fixes Java Maven build failures, particularly those caused by Java version incompatibilities in CI environments (e.g., tools.jar missing in Java 9+).

Workflow

  1. Discover the repository under /home/travis/build/failed/
  2. Run the build to capture error output
  3. Parse Maven errors to identify root cause
  4. Analyze dependency trees for problematic transitive dependencies
  5. Write analysis to failed_reasons.txt
  6. Generate minimal unified diff patches
  7. Apply patches to fix the build
  8. Verify the build passes

Key Functions

  • find_repo_dir() - Discovers the repository path
  • find_build_command() - Extracts build command from .travis.yml
  • run_build() - Executes the build and captures output
  • parse_maven_errors() - Categorizes Maven error output
  • detect_tools_jar_issue() - Identifies Java 9+ tools.jar problems
  • find_tools_jar_dependency_sources() - Finds POMs with tools.jar dependencies
  • add_exclusion_to_dependency() - Adds Maven exclusion blocks to POM dependencies
  • generate_diff() - Creates proper unified diffs using the diff command
  • fix_tools_jar_issue() - Generates patches for tools.jar problems
  • apply_patch() - Applies patches using the patch command
  • run_end_to_end() - Full pipeline from discovery to verification
  • validate_output() - Validates all required output files exist and are correct

Usage Example

import sys
sys.path.insert(0, '/app/environment/skills/evo-java-build-fixer/scripts')
from utils import run_end_to_end, validate_output

# Run the full pipeline
success = run_end_to_end(base_path='/home/travis/build/failed', build_timeout=300)
print(f"Build fix {'succeeded' if success else 'may need manual review'}")

# Validate outputs
valid = validate_output(base_path='/home/travis/build/failed')
print(f"Validation: {'PASS' if valid else 'FAIL'}")

Common Build Failure Patterns

tools.jar Missing (Java 9+)

Libraries like compile-testing depend on com.sun:tools with a system scope pointing to tools.jar. In Java 9+, this file was removed. Fix by adding <exclusion> blocks for com.sun:tools in the affected dependencies.

Read the full file on GitHub · 69 lines

Files

What ships with it

2 files 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. 8d ago First seen · 69 lines · 52 tokens per session scan A d70cad4d9bb9

Subscribe to this mod's changes

evo-java-build-fixer is a skill published in the GitHub repository Zhang-Henry/CoEvoSkills (65 stars, last pushed 18d ago), licensed Apache-2.0. It adds 52 tokens to every session and 683 once invoked, about $0.0003 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-08-30.

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

java-heap-dump-triage

A guide for investigating Java memory problems using heap dumps and related reports. A heap dump is a snapshot of objects held in the Java Virtual Machine's memory.

TencentBlueKing/bk-ci · 162 tokens