java-adr
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document…
Detects GoF patterns in Java code or recommends the right pattern for a problem. Use when user asks to "what pattern is this", "detect design patterns", "suggest a pattern", "should I use factory", "which design pattern", or "recommend a pattern for".
Claude Code
$ npx -y skills add ducpm2303/claude-java-plugins --skill java-design-pattern --agent claude-code
Codex
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a codex -y
Cursor
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a cursor -y
Gemini CLI
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a gemini-cli -y
GitHub Copilot
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a github-copilot -y
OpenCode
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a opencode -y
Windsurf
$ npx skills add ducpm2303/claude-java-plugins --skill java-design-pattern -a windsurf -y
description: Detects GoF patterns in Java code or recommends the right pattern for a problem. Use when user asks to "what pattern is this", "detect design patterns", "suggest a pattern", "should I use factory", "which design pattern", or "recommend a pattern for". argument-hint: "[paste code to detect patterns, or describe your problem]"
Either detect which design patterns are used in the provided code, or recommend the right pattern for a described problem. Tailor all examples to the detected Java version (Java 8+).
Scan the code for these common patterns and name them explicitly:
**Creational:**
**Structural:**
**Behavioral:**
For each detected pattern: name it, show the key code that reveals it, explain how it's used here.
When the user describes a problem, recommend the most appropriate pattern:
| Problem | Recommended Pattern | |---|---| | Need multiple algorithms interchangeable at runtime | Strategy | | Object creation is complex, many optional fields | Builder | | Need to add behaviour without modifying existing class | Decorator | | Need to notify multiple objects when state changes | Observer | | Complex subsystem needs a simple interface | Facade | | Same operation on tree structures | Composite | | Object has distinct lifecycle states | State | | Need only one instance globally | Singleton (or Spring `@Component`) |
Show a minimal Java implementation for the recommended pattern, appropriate for the detected Java version:
**Mode A:** List each detected pattern with: name + location + explanation + any concerns (e.g., non-thread-safe Singleton) **Mode B:** Recommend pattern + minimal before/after code + when to use vs alternatives
A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document…
Reviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API",…
Reviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects.…
Generates a Conventional Commits message for staged Java changes. Use when user asks to "write a commit message", "help me…
Reviews Java code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility. Use when user asks to…
Generates Javadoc comments for Java classes and methods. Use when user asks to "add javadoc", "document this class", "write…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.