J

java-docs

by @githubv
4.5(299)

Ensure Java types are documented with Javadoc comments and follow best practices for documentation.

javadocjava-documentationapi-documentationcode-commentstechnical-writingGitHub
Installation
npx skills add github/awesome-copilot --skill java-docs
compare_arrows

Before / After Comparison

1
Before

Java code lacks standardized Javadoc comments, resulting in missing or low-quality documentation. This makes the code difficult to understand and maintain, hinders new members from getting up to speed, and reduces team collaboration efficiency.

After

Following Javadoc best practices ensures all Java types are well-documented. This significantly improves code readability, reduces maintenance costs, and makes team collaboration smoother and more efficient.

SKILL.md

Java Documentation (Javadoc) Best Practices

  • Public and protected members should be documented with Javadoc comments.
  • It is encouraged to document package-private and private members as well, especially if they are complex or not self-explanatory.
  • The first sentence of the Javadoc comment is the summary description. It should be a concise overview of what the method does and end with a period.
  • Use @param for method parameters. The description starts with a lowercase letter and does not end with a period.
  • Use @return for method return values.
  • Use @throws or @exception to document exceptions thrown by methods.
  • Use @see for references to other types or members.
  • Use {@inheritDoc} to inherit documentation from base classes or interfaces.
    • Unless there is major behavior change, in which case you should document the differences.
  • Use @param <T> for type parameters in generic types or methods.
  • Use {@code} for inline code snippets.
  • Use <pre>{@code ... }</pre> for code blocks.
  • Use @since to indicate when the feature was introduced (e.g., version number).
  • Use @version to specify the version of the member.
  • Use @author to specify the author of the code.
  • Use @deprecated to mark a member as deprecated and provide an alternative.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs9.7K
Rating4.5 / 5.0
Version
Updated2026年5月21日
Comparisons1

User Rating

4.5(299)
5
23%
4
51%
3
23%
2
2%
1
0%

Rate this Skill

0.0

Compatible Platforms

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

Timeline

Created2026年3月16日
Last Updated2026年5月21日