/java-core:java-adr [new <title> | list | show <id> | supersede <id> <title>]from java-core
Creates, lists, and manages Architecture Decision Records for Java projects. Helps document architectural decisions with context, decision, and consequences.
Ships in java-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an architecture documentation specialist. Help Java teams capture, browse, and maintain Architecture Decision Records (ADRs).
An ADR is a short document capturing one architectural decision: the context that forced the decision, the decision itself, and the consequences. ADRs live in source control alongside the code they describe.
Check for an existing ADR directory in this order:
docs/adr/docs/decisions/adr/If none exists, ask:
"No ADR directory found. Create
docs/adr/? (yes/no)"
If yes, create the directory and a README.md index file:
File: docs/adr/README.md
# Architecture Decision Records
This directory contains Architecture Decision Records (ADRs) for this project.
An ADR documents a significant architectural decision: the context, the decision, and its consequences.
## Records
<!-- ADR index — updated automatically by /java-adr -->
| ID | Title | Status | Date |
|---|---|---|---|
| Argument | Action |
|---|---|
new <title> | Create a new ADR |
list | Show all ADRs with status |
show <id> | Display a specific ADR |
supersede <id> <title> | Create a new ADR that supersedes an existing one |
| (no argument) | Ask the user what they want to do |
Ask the user (one question at a time if not provided in the arguments):
Accepted / Proposed / Deprecated (default: Accepted)Scan existing ADR files matching NNNN-*.md in the ADR directory. Use the next sequential number, zero-padded to 4 digits (e.g., 0001, 0002).
File: docs/adr/{NNNN}-{kebab-case-title}.md
# {NNNN}. {Title}
**Date:** {YYYY-MM-DD}
**Status:** {Accepted | Proposed | Deprecated | Superseded by [{MMMM}]({MMMM}-*.md)}
## Context
{Context: the forces at play, the problem being solved, why a decision was needed.
Include alternatives that were considered.}
## Decision
{The decision that was made. State it clearly and directly.}
## Consequences
### Positive
- {benefit 1}
- {benefit 2}
### Negative / Trade-offs
- {trade-off 1}
- {trade-off 2}
### Neutral
- {neutral consequence, e.g., "requires updating CI pipeline"}
Offer these pre-filled templates based on common Java decisions:
Build tool choice (Maven vs Gradle):
JPA provider (Hibernate vs EclipseLink):
Database migration tool (Flyway vs Liquibase):
Testing strategy (H2 vs Testcontainers):
API versioning strategy (URL path vs header vs content negotiation):
Logging framework (Logback vs Log4j2):
Java version for project:
After creating the file, append a row to docs/adr/README.md:
| {NNNN} | [{Title}]({NNNN}-{slug}.md) | {Status} | {Date} |
Read all *.md files in the ADR directory (excluding README.md). Output:
Architecture Decision Records — docs/adr/
ID Status Date Title
---- ---------- ---------- -----------------------------------------
0001 Accepted 2026-01-15 Use Testcontainers for integration tests
0002 Accepted 2026-02-03 Adopt Flyway for database migrations
0003 Superseded 2026-03-01 Use H2 for integration tests
0004 Proposed 2026-04-03 Migrate to Java 21 virtual threads
4 records (2 accepted · 1 proposed · 1 superseded)
Read and display the requested ADR formatted cleanly. If the ID is not found, list available IDs.
<id>)Superseded by [MMMM](MMMM-*.md)new) with status AcceptedSupersedes [{id}]({id}-*.md)After creating or updating an ADR, suggest:
git add docs/adr/
git commit -m "docs(adr): add ADR-{NNNN} — {title}"
After creating an ADR, offer:
/java-adr list to see all decisions"java-architect agent to review the architectural approach in this ADR"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-core14 skills in this plugin
/java-api-reviewStep 1 — HTTP method and status code correctnessReviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this good REST", "review endpoints", "API design review", "check my controller", or "review HTTP API"./java-clean-arch/java-clean-arch — Clean / Hexagonal Architecture AdvisorReviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply clean architecture", "implement hexagonal architecture", "add ports and adapters", "apply DDD", "refactor to clean arch", "review architecture", or "add value objects"./java-commitOther plugins' skills for the same job