agentsclimarketplace

Java patching

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-gemini-3.1-flash-lite-preview/fix-security-bug/java-patching

Techniques for applying security fixes to Java projects using git, diffs, and Maven.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill java-patching

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.8 KB, 160 tokens by cl100k_base, as published. Nobody here has run it

Java Security Patching Workflow

  1. Locate code: Identify the affected classes (e.g., *JavaScript*).
  2. Develop the fix:
    • Create a reproduction test first.
    • Modify the source code to add validation (e.g., checking for restricted keywords or verifying configuration).
  3. Generate Patch:
    git diff > ../patches/security-fix.patch
    
  4. Build & Test:
    • Apply using git apply ../patches/security-fix.patch if necessary.
    • Run the build with -DskipTests=false initially to verify the fix before running the production-like build.
  5. Rebuild: Use standard Apache Maven commands, skipping quality checks as requested for production stability.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.