java-affected-tests

java-affected-tests is a skill for Claude Code from open-metadata/OpenMetadata. It costs 120 tokens per session (2,856 once invoked), scanned A, original, Apache-2.0.

A guide for choosing tests before opening or updating an OpenMetadata pull request that changes Java code or related schemas, database migrations, seed data, or build files. It accounts for tests that run only in the merge queue or at night.

In plain words
What is it for?
It is for comparing the current branch with the main branch, selecting affected unit, integration, search, and user-interface tests, and running the selected checks.
Why use it?
It prevents important changes from reaching those later checks without first running the relevant local tests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the openmetadata-skills plugin — 23 skills, 6 agents, 1 hook shipped together

Good fit It is for comparing the current branch with the main branch, selecting affected unit, integration, search, and user-interface tests, and running the selected checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-metadata/openmetadata/java-affected-tests
About the project

OpenMetadata is an open platform that organizes information about data, including its meaning, ownership, quality, history, and relationships. It provides governed context for data users, AI assistants, and agents that need to discover and understand trustworthy data.

open-metadata/OpenMetadata · 15,911 stars · on GitHub · open-metadata.org

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 open-metadata/OpenMetadata --skill java-affected-tests
Clone the repo
git clone --depth 1 https://github.com/open-metadata/OpenMetadata

Made for: Claude Code.

Or install openmetadata-skills, the plugin that ships this one along with the rest of its 23 skills, 6 agents, 1 hook.

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 java-affected-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-affected-tests/github.svg)](https://agentmods.dev/skills/open-metadata/openmetadata/java-affected-tests)
Your own site
<a href="https://agentmods.dev/skills/open-metadata/openmetadata/java-affected-tests"><img src="https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-affected-tests/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 java-affected-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-metadata/openmetadata/java-affected-tests"><img src="https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-affected-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,856 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.00120 $0.02856
Opus 5.5 $0.00048 $0.01142
Sonnet 5.5 $0.00024 $0.00571
Haiku 4.5 $0.00012 $0.00286

Measured 4d ago against content hash a1163752f4fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

java-affected-tests 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 4d 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.

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.

skills/java-affected-tests/SKILL.md · 181 lines

How it starts

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

Java tests to run before a PR

Suite PR checks Merge queue Nightly You, for merge readiness
Unit tests full full — impacted classes
Integration tests (openmetadata-integration-tests) skipped full, every lane and engine — impacted classes
search-it (tests/search/*IT) — — openmetadata-nightly impacted classes
JavaUIIT (*UIIT), scale-it — — openmetadata-nightly reported, not run

The merge queue is the first CI run of the ITs. An IT failure there ejects the PR and re-tests every PR queued behind it. Search-indexing changes have no pre-merge CI at all, so full verification must happen before merge. Match execution to the requested outcome:

  • Implementation, commit/push and PR creation: --scope focused. Run changed test classes, convention-named unit tests, and explicit relevant --add-it/--add-unit choices with a reason. No runnable focused check when broader coverage exists is an error: select a regression.
  • Merge readiness: --scope full (the backward-compatible CLI default). Run every selected check.
  • Reuse valid results across skills. Broader checks deferred by a focused run are not passed.
  • Finish after confirming the requested push/PR and recording results. Pending CI is reported; monitoring and dispatching workflows require that scope in the user's task.
  • Redirect verbose runs to a log and inspect completion/failure summaries. Avoid repeated model calls to tail unchanged output. Retry infrastructure failures only after addressing their cause.

1. Preconditions

  • git fetch origin main, so the diff base is current. The planner diffs origin/main...HEAD plus uncommitted and untracked files.
  • Docker running, with no other Testcontainers stack up: docker ps --filter label=org.testcontainers=true. Another checkout's ITs plus yours rarely fit in Docker's memory. Report the blocker; do not stop other stacks or repeatedly retry.
  • JDK 21. No mvn install needed: every command builds the modules under test with -am.

Read the full file on GitHub · 181 lines

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. 4d ago Changed a1163752f4fd
  2. 24d ago Changed · +18 lines 752e79022610
  3. 1mo ago Changed · +1 lines f23691baeb59
  4. 1mo ago Changed aba128189edf
  5. 1mo ago Changed · +4 lines 4600b3fdc3b3
  6. 1mo ago Changed · +1 lines 20389554824a
  7. 1mo ago Changed · +4 lines c0986f9d5841
  8. 1mo ago First seen · 153 lines · 120 tokens per session scan A 014f8a3eeda4

Subscribe to this mod's changes

java-affected-tests is a skill published in the GitHub repository open-metadata/OpenMetadata (15,911 stars, last pushed today), licensed Apache-2.0. It adds 120 tokens to every session and 2,856 once invoked, about $0.0005 per session on Opus 5.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-10-08.

Related

java-affected-tests compared with skills from other repositories

java-affected-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
java-affected-testsopen-metadata/OpenMetadataSkill16ktodayApache-2.0A120Claude Code
test-reviewdatahub-project/datahubSkill13ktodayApache-2.0A0Claude Code, Codex
java-unit-testhashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A113Codex
test-qualitydecebals/claude-code-javaSkill7801mo agoMITA45Claude Code, Codex
testng-skillLambdaTest/agent-skillsSkill39712d agoMITA75Claude Code, Codex
111-java-maven-dependenciesjabrena/plinthSkill469yesterdayApache-2.0A133Claude Code, Codex
130-java-testing-strategiesjabrena/plinthSkill469yesterdayApache-2.0A96Claude Code, Codex