jakarta-namespace

jakarta-namespace is a skill for Claude Code, Codex from xuansenpa1/skillrevise. It costs 61 tokens per session (1,884 once invoked), scanned A, original, MIT.

A guide for changing Java EE package imports from javax.* to jakarta.* when moving to Jakarta EE, Spring Boot 3, or related newer libraries. It identifies which common persistence, validation, servlet, and transaction packages need new names.

In plain words
What is it for?
Use it to update imports, annotations, and related dependencies across a Java application during a Spring Boot or Jakarta EE migration.
Why use it?
It helps resolve compilation errors and dependency mismatches caused by the namespace change, while avoiding incorrect changes to Java standard-library packages.

Skill for Claude CodeCodex

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

Good fit Use it to update imports, annotations, and related dependencies across a Java application during a Spring Boot or Jakarta EE migration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xuansenpa1/skillrevise/jakarta-namespace
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 xuansenpa1/skillrevise --skill jakarta-namespace
Clone the repo
git clone --depth 1 https://github.com/xuansenpa1/skillrevise

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 jakarta-namespace

README.md
[![agentmods](https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/jakarta-namespace/github.svg)](https://agentmods.dev/skills/xuansenpa1/skillrevise/jakarta-namespace)
Your own site
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/jakarta-namespace"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/jakarta-namespace/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 jakarta-namespace

Your own site · 80×15
<a href="https://agentmods.dev/skills/xuansenpa1/skillrevise/jakarta-namespace"><img src="https://agentmods.dev/badge/skills/xuansenpa1/skillrevise/jakarta-namespace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,884 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.01884
Opus 5 $0.00030 $0.00942
Sonnet 5 $0.00012 $0.00377
Haiku 4.5 $0.00006 $0.00188

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

Security

Grade A, and why

jakarta-namespace 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 9d 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.

data/skillsbench/tasks/spring-boot-jakarta-migration/environment/skills/jakarta-namespace/SKILL.md · 224 lines

How it starts

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

Jakarta EE Namespace Migration Skill

Overview

Spring Boot 3.0 has upgraded from Java EE to Jakarta EE APIs for all dependencies. This is one of the most significant breaking changes and requires updating all javax.* package imports to jakarta.*.

Important: Packages such as javax.sql.* and javax.crypto.* will NOT change to jakarta.* as they are part of the Java 17+ JDK itself, not part of Java EE.

Required Package Mappings

Before (Java EE) After (Jakarta EE)
javax.persistence.* jakarta.persistence.*
javax.validation.* jakarta.validation.*
javax.servlet.* jakarta.servlet.*
javax.annotation.* jakarta.annotation.*
javax.transaction.* jakarta.transaction.*
javax.ws.rs.* jakarta.ws.rs.*
javax.mail.* jakarta.mail.*
javax.jms.* jakarta.jms.*
javax.xml.bind.* jakarta.xml.bind.*

Affected Annotations and Classes

Persistence (JPA)

  • @Entity, @Table, @Column
  • @Id, @GeneratedValue
  • @ManyToOne, @OneToMany, @ManyToMany, @OneToOne
  • @JoinColumn, @JoinTable
  • @PrePersist, @PreUpdate, @PostLoad
  • @Enumerated, @Temporal
  • EntityManager, EntityManagerFactory
  • EntityNotFoundException

Validation

  • @Valid
  • @NotNull, @NotBlank, @NotEmpty
  • @Size, @Min, @Max
  • @Email, @Pattern
  • @Positive, @Negative
  • @Past, @Future

Servlet

  • HttpServletRequest, HttpServletResponse
  • ServletException
  • Filter, FilterChain
  • HttpSession, Cookie

Migration Commands

Step 1: Find All javax Imports That Need Migration

# List all files with javax imports that need migration (excludes JDK packages)
grep -r "import javax\." --include="*.java" . | grep -v "javax.sql" | grep -v "javax.crypto" | grep -v "javax.net"

Step 2: Batch Replace All Namespaces

# Replace javax.persistence with jakarta.persistence
find . -name "*.java" -type f -exec sed -i 's/import javax\.persistence/import jakarta.persistence/g' {} +

# Replace javax.validation with jakarta.validation
find . -name "*.java" -type f -exec sed -i 's/import javax\.validation/import jakarta.validation/g' {} +

# Replace javax.servlet with jakarta.servlet
find . -name "*.java" -type f -exec sed -i 's/import javax\.servlet/import jakarta.servlet/g' {} +

# Replace javax.annotation (common ones used in Spring)
find . -name "*.java" -type f -exec sed -i 's/import javax\.annotation\.PostConstruct/import jakarta.annotation.PostConstruct/g' {} +
find . -name "*.java" -type f -exec sed -i 's/import javax\.annotation\.PreDestroy/import jakarta.annotation.PreDestroy/g' {} +
find . -name "*.java" -type f -exec sed -i 's/import javax\.annotation\.Resource/import jakarta.annotation.Resource/g' {} +

# Replace javax.transaction with jakarta.transaction
find . -name "*.java" -type f -exec sed -i 's/import javax\.transaction/import jakarta.transaction/g' {} +

Read the full file on GitHub · 224 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. 9d ago First seen · 224 lines · 61 tokens per session scan A 6af9ccbf16ff

Subscribe to this mod's changes

jakarta-namespace is a skill published in the GitHub repository xuansenpa1/skillrevise (56 stars, last pushed 7d ago), licensed MIT. It adds 61 tokens to every session and 1,884 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-09-03.

Related

Other skills, from other repositories

wxjava-api-contributor

A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.

binarywang/WxJava · 68 tokens

wxjava-module-selector

A decision guide for choosing the correct WxJava Maven module, dependency management file, and example for a WeChat use case. WxJava is a Java software development kit for services such as official accounts, mini programs, and payments.

binarywang/WxJava · 86 tokens

azure-communication-callautomation-java

Build call automation workflows with Azure Communication Services Call Automation Java SDK. Use when implementing IVR systems, call routing, call recording, DTMF recognition, text-to-speech, or AI-powered call flows.

microsoft/skills · 49 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

azure-communication-sms-java

Send SMS messages with Azure Communication Services SMS Java SDK. Use when implementing SMS notifications, alerts, OTP delivery, bulk messaging, or delivery reports.

microsoft/skills · 36 tokens