J
java-docs
by @githubv
4.5(299)
Ensure Java types are documented with Javadoc comments and follow best practices for documentation.
Installation
npx skills add github/awesome-copilot --skill java-docscompare_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
@paramfor method parameters. The description starts with a lowercase letter and does not end with a period. - Use
@returnfor method return values. - Use
@throwsor@exceptionto document exceptions thrown by methods. - Use
@seefor 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
@sinceto indicate when the feature was introduced (e.g., version number). - Use
@versionto specify the version of the member. - Use
@authorto specify the author of the code. - Use
@deprecatedto 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日