Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Java Build And Dependencies

ASecurity

Diagnose and repair Maven or Gradle builds when a managed dependency is missing, a transitive version wins unexpectedly, compilation and runtime classpaths differ, or the launcher JDK, toolchain and release target disagree. Use for dependency conflicts, missing runtime artifacts or generated code, plugin classpath failures and unreliable dependency resolution. Covers focused build repairs and reproducibility checks; intentional JDK upgrades, classloader internals and published-library governa...

2 stars
0 votes
0 copies
0 views
Added 9/24/2026
developmentgojavashellapidocumentation

Works with

api

Security Analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned 9/29/2026

$npx -y skills add robsonkades/agent-skills --skill java-build-and-dependencies --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Build And Dependencies?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Java Build And Dependencies
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/robsonkades-java-build-and-dependencies/badge)](https://www.skillsdirectory.com/skills/robsonkades-java-build-and-dependencies)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: java-build-and-dependencies
description: >-
  Diagnose and repair Maven or Gradle builds when a managed dependency is missing,
  a transitive version wins unexpectedly, compilation and runtime classpaths differ,
  or the launcher JDK, toolchain and release target disagree. Use for dependency
  conflicts, missing runtime artifacts or generated code, plugin classpath failures
  and unreliable dependency resolution. Covers focused build repairs and reproducibility checks;
  intentional JDK upgrades, classloader internals and published-library governance
  belong to neighboring skills.
---

# Java Build and Dependencies

## Purpose and boundary

Find the build input that explains the failure. For a repair request, make the smallest
compatible change and verify the affected path; for diagnosis or review only, report
the evidence, proposed correction and discriminating check without editing the build.
A declaration, an effective model, a resolved configuration, a packaged artifact and
a running process are different evidence.

Basic repository discovery is covered by `feature-context-analysis`. This skill
continues from that evidence into build diagnosis and repair. For intentional JDK
migration consider `jdk-upgrade-impact`; for loader identity, initialization and JPMS
access consider `jvm-class-loading`. Publication and consumer compatibility decisions
belong to `component-and-release-boundaries`; comprehensive supply chain and CI gate
design belongs to `quality-gates`. These are optional neighbors, not prerequisites
for a scoped build fix. For a handoff, pass the failing invocation, selected graph,
actual JVMs, relevant artifact/class and remaining question; request the neighbor's
specific compatibility or loader assessment. If unavailable, retain those findings
and identify the unresolved check rather than broadening the repair speculatively.

## Establish the execution context

Inspect the wrapper/version, target module, active Maven profiles or Gradle
configuration, CI invocation, build plugins, repositories and relevant existing
reports. Preserve the project's Java, framework and build-tool baselines. This
skill does not prescribe a Java release or authorize upgrades to fit an example.
Reference recipes use Maven 3 and Gradle 8.14.3 documentation; match syntax and
behavior to the target wrapper and plugin versions before applying them.

Separate documented compatibility requirements from repeated conventions and incidental
configuration. Reuse existing evidence before asking. If an unknown changes the repair
(for example, whether the deployment container supplies a `provided` API), ask that
focused question while continuing independent diagnosis. State consequential assumptions;
do not infer a production Java baseline from the developer's installed JDK. Routine,
reversible choices within an authorized repair do not require another approval.

Before invoking an unfamiliar wrapper or build, inspect its provenance, scripts,
distribution URL and applicable checksum verification. Build configuration and
plugins can execute code even for report tasks. Use the authorized environment;
keep synthetic reproductions and their repositories/caches isolated. Do not run
publication, deployment or global installation as a diagnostic step.

Record separately the JVM launching Maven/Gradle, any Gradle daemon JVM, compiler
toolchain, compiler release, test JVM and deployment JVM. `java -version` in one
shell establishes only that executable. A compiler release limits language/JDK API
usage and class-file target; it neither chooses the production JVM nor retargets
third-party JARs. Read [toolchains and reproducibility](references/toolchains-and-reproducibility.md)
when these identities differ, a wrapper changes, or the task makes a repeatability claim.
Also read its generated-code section when a generated type or processor effect disappears;
the compiler's processing policy is separate from the application's release target.

## Workflow

1. **Locate the failing phase and owner.** Capture the exact invocation and first
   relevant failure: model/configuration, artifact resolution, plugin execution,
   compile, test, packaging or application startup. Identify the module and
   configuration that needs the missing class or version. A plugin failure is not
   automatically an application dependency failure.
2. **Inspect the selected graph.** For Maven read
   [Maven diagnosis](references/maven.md); for Gradle read
   [Gradle diagnosis](references/gradle.md). Record the coordinate, requested and
   selected versions, introducing path, scope/configuration and selection rule.
   A BOM, dependency-management entry, version catalog or constraint alone does
   not establish that an artifact is present.
3. **Form a discriminating explanation.** Connect the observed graph or toolchain
   to the error. Compare compile, test and runtime evidence only where the failure
   requires it. For packaged applications inspect the produced distribution/image
   and launch classpath as well; the build graph does not prove deployment contents.
   If reports cannot run, state the declared information, unresolved selection and
   smallest missing check. Do not invent a resolved version.
4. **Choose the narrowest correct repair.** When fixes are requested, correct an absent direct dependency,
   wrong scope/configuration, mistaken management entry, plugin dependency or
   toolchain selection according to the evidence. Respect an intentional platform
   version family. A targeted management override or constraint needs a compatibility
   reason and a check; a global force, transitivity disable or broad exclusion is
   not a default conflict fix. Do not upgrade unrelated dependencies.
5. **Verify the causal path.** For an implemented change, compare the relevant graph before/after, rerun the
   failing task and an affected test or launch check. Check that requested tests
   actually ran; success with zero tests or an up-to-date task is not fresh execution.
   If a changed library is published, inspect generated consumer metadata and use
   a separate consumer when that contract is in scope. Do not claim a runtime fix
   from compilation alone.

## Decision rules

- **Managed but absent:** first establish an actual dependency path. Add a dependency
  only to the module/configuration that needs it; changing the BOM version cannot
  supply an artifact that is never included.
- **Conflicting versions:** use the build tool's selection evidence. Maven's nearest
  definition and Gradle's ordinary highest eligible version selection are different
  rules, both affected by explicit management/constraints. Neither proves binary or
  behavioral compatibility.
- **Exclusion proposed:** identify the introducing edge, the feature losing that
  artifact and any alternate path that still includes it. Exercise that feature or
  replacement. An exclusion removes an edge; it does not repair incompatible APIs.
- **Compile succeeds, runtime fails:** examine runtime inclusion, packaging and the
  deployed JVM. Test dependencies, provided/compile-only APIs and a newer dependency's
  bytecode are concrete hypotheses. If artifacts and versions are correct but loader
  behavior remains in question, retain the evidence for the class-loading handoff.
- **Generated code is missing:** identify the generator/processor and failing source set.
  Inspect its execution path, compiler options and generated-output registration before
  adding an application dependency. Annotation APIs, processor implementations, generated
  output and runtime support have different classpath roles; one does not imply the others.
- **Local succeeds, CI fails:** compare wrapper, profiles/properties, toolchains,
  repository/mirror access, selected versions and bytes before clearing anything.
  Avoid deleting shared caches or using refresh/update flags until there is a cache
  hypothesis; preserve the failing evidence and refresh narrowly when justified.
- **Locked therefore reproducible:** identify configurations covered by lock state,
  mutable artifacts, verification policy and actual outputs compared. A same-version
  SNAPSHOT can have different bytes. Keep version repeatability, artifact integrity
  and byte-for-byte build reproducibility as separate claims.

## Minimum result

For a small fix, a short explanation and diff are enough. Include the failing target,
evidence for the selected dependency/toolchain, causal explanation or remaining
hypothesis, scoped change, and checks actually executed. Name unavailable evidence
and the next check explicitly. A diagnosis or review finishes with supported findings,
their consequences, a scoped proposed correction and verification still needed; it
does not require a patch or claim an unexecuted repair succeeded.

For a repair, stop when the original failure is addressed and the
affected behavior is verified, or when a material external gap has a concrete
resolving action. Do not turn the repair into a build-system migration.

Attribution

robsonkadesrobsonkades
View sourceSee grades on GitHubMore from robsonkades →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →