Skip to content
Back to skills

Java Docs

ASecurity

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".

  • 16 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 26, 2026
documentationjavadocumentation

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ducpm2303/claude-java-plugins --skill java-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Java Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ducpm2303-java-docs/badge)](https://www.skillsdirectory.com/skills/ducpm2303-java-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.