/java-docs
Generates Javadoc comments for Java classes and methods. Use when user asks to "add javadoc", "document this class", "write documentation", "add comments", "generate docs", or "document this method".
$ npx -y skills add ducpm2303/claude-java-plugins --skill java-docs --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/java-docs
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generates Javadoc comments for Java classes and methods. Use when user asks to "add javadoc", "document this class", "write documentation", "add comments", "generate docs", or "document this method".
SKILL.md
java-docs.SKILL.mddescription: Generates Javadoc comments for Java classes and methods. Use when user asks to "add javadoc", "document this class", "write documentation", "add comments", "generate docs", or "document this method".
argument-hint: "[paste code or select in editor]"
Generate Javadoc comments for the Java code I've selected or provided. Follow standard Javadoc conventions.
Rules for generating Javadoc
**For classes and interfaces:**
/**
* [One sentence describing the class's responsibility.]
*
* [Optional: 1–2 sentences of additional context, design pattern used, or usage note.]
*
* @author [omit — do not add @author unless already present]
* @since [omit unless the user specifies a version]
*/
**For public and protected methods:**
/**
* [One sentence describing what this method does — use active voice, e.g., "Returns the user with the given ID."]
*
* [Optional: additional detail about behaviour, side effects, or constraints — only if non-obvious.]
*
* @param paramName [description of the parameter — what it represents, valid values, null-safety]
* @return [description of the return value — what it contains, when it is empty/null]
* @throws ExceptionType [condition that causes this exception to be thrown]
*/
**For fields:**
- Only document non-obvious fields with `/** brief description */`
- Do not document self-evident fields like `private String name;`
Quality rules
- Do not restate the method signature in the description (e.g., avoid "This method takes a String and returns a String")
- Use present tense active voice: "Returns...", "Creates...", "Validates..."
- For `@param`: describe what the parameter represents, not just its type
- For `@return`: describe the returned value's meaning, not just "the result"
- For `@throws`: describe the condition, not just the exception name
- Do not add `@param` for `void` methods with no parameters
- Do not add `@return` for `void` methods
Output
Produce the complete class or method with Javadoc inserted. Show only the documented code — do not change any logic.
Read more
description: Generates Javadoc comments for Java classes and methods. Use when user asks to "add javadoc", "document this class", "write documentation", "add comments", "generate docs", or "document this method". argument-hint: "[paste code or select in editor]"
Generate Javadoc comments for the Java code I've selected or provided. Follow standard Javadoc conventions.
Rules for generating Javadoc
**For classes and interfaces:**
/** * [One sentence describing the class's responsibility.] * * [Optional: 1–2 sentences of additional context, design pattern used, or usage note.] * * @author [omit — do not add @author unless already present] * @since [omit unless the user specifies a version] */
**For public and protected methods:**
/** * [One sentence describing what this method does — use active voice, e.g., "Returns the user with the given ID."] * * [Optional: additional detail about behaviour, side effects, or constraints — only if non-obvious.] * * @param paramName [description of the parameter — what it represents, valid values, null-safety] * @return [description of the return value — what it contains, when it is empty/null] * @throws ExceptionType [condition that causes this exception to be thrown] */
**For fields:**
- Only document non-obvious fields with `/** brief description */`
- Do not document self-evident fields like `private String name;`
Quality rules
- Do not restate the method signature in the description (e.g., avoid "This method takes a String and returns a String")
- Use present tense active voice: "Returns...", "Creates...", "Validates..."
- For `@param`: describe what the parameter represents, not just its type
- For `@return`: describe the returned value's meaning, not just "the result"
- For `@throws`: describe the condition, not just the exception name
- Do not add `@param` for `void` methods with no parameters
- Do not add `@return` for `void` methods
Output
Produce the complete class or method with Javadoc inserted. Show only the documented code — do not change any logic.
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.
Other skills on claude-java-plugins.
- /java-adr
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice".
Open skill - /java-api-review
Reviews 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".
Open skill - /java-clean-arch
Reviews 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
Open skill - /java-commit
Generates a Conventional Commits message for staged Java changes. Use when user asks to "write a commit message", "help me commit", "what should my commit say", "summarize my changes", "draft a commit", or "create commit message".
Open skill - /java-concurrency-review
Reviews Java code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility. Use when user asks to "review concurrency", "is this thread safe", "check for race conditions", "concurrency issues", or "virtual thread compatible".
Open skill - /java-design-pattern
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".
Open skill

