no-javax-imports

no-javax-imports is a skill for Claude Code, Codex from konveyor/agentic-controller. It costs 17 tokens per session (173 once invoked), scanned A, original, Apache-2.0.

A migration rule that checks Java code for remaining `javax.*` imports after moving to Jakarta EE, the newer successor to Java EE.

In plain words
What is it for?
Use it to find and replace imports such as `javax.servlet`, `javax.persistence`, and `javax.inject` with their `jakarta.*` equivalents.
Why use it?
It prevents old package references from being left behind and causing migration or compatibility problems.

Skill for Claude CodeCodex

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

Good fit Use it to find and replace imports such as javax.servlet, javax.persistence, and javax.inject with their jakarta.* equivalents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/konveyor/agentic-controller/no-javax-imports
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 konveyor/agentic-controller --skill no-javax-imports
Clone the repo
git clone --depth 1 https://github.com/konveyor/agentic-controller

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 no-javax-imports

README.md
[![agentmods](https://agentmods.dev/badge/skills/konveyor/agentic-controller/no-javax-imports/github.svg)](https://agentmods.dev/skills/konveyor/agentic-controller/no-javax-imports)
Your own site
<a href="https://agentmods.dev/skills/konveyor/agentic-controller/no-javax-imports"><img src="https://agentmods.dev/badge/skills/konveyor/agentic-controller/no-javax-imports/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 no-javax-imports

Your own site · 80×15
<a href="https://agentmods.dev/skills/konveyor/agentic-controller/no-javax-imports"><img src="https://agentmods.dev/badge/skills/konveyor/agentic-controller/no-javax-imports.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 173 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.00017 $0.00173
Opus 5 $0.00009 $0.00086
Sonnet 5 $0.00003 $0.00035
Haiku 4.5 $0.00002 $0.00017

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

Security

Grade A, and why

no-javax-imports 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 10d 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.

catalog/examples/no-javax-imports/SKILL.md · 23 lines

What it actually says

No javax Imports

This is a rule (always-loaded). After migrating to Jakarta EE, no javax.* imports should remain in the codebase.

Rule

Every Java source file must use jakarta.* packages instead of javax.*. If you find a javax.* import, replace it with the corresponding jakarta.* equivalent.

Common replacements:

  • javax.servlet.* -> jakarta.servlet.*
  • javax.persistence.* -> jakarta.persistence.*
  • javax.inject.* -> jakarta.inject.*
  • javax.annotation.* -> jakarta.annotation.*
  • javax.ws.rs.* -> jakarta.ws.rs.*
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. 10d ago First seen · 23 lines · 17 tokens per session scan A 9ec95e2eb125

Subscribe to this mod's changes

no-javax-imports is a skill published in the GitHub repository konveyor/agentic-controller (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 17 tokens to every session and 173 once invoked, about $0.0001 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-31.

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