J

java-docs

by @githubv1.0.0
4.0(0)

确保Java类型使用Javadoc注释进行文档化,并遵循文档编写的最佳实践。

JavaDocJava DocumentationAPI DocumentationCode CommentsTechnical WritingGitHub
安装方式
npx skills add github/awesome-copilot --skill java-docs
compare_arrows

Before / After 效果对比

1
使用前

Java代码缺乏规范的Javadoc注释,导致文档缺失或质量低下。这使得代码难以理解和维护,新成员上手困难,团队协作效率降低。

使用后

遵循Javadoc最佳实践,确保所有Java类型都得到良好文档化。代码可读性显著提升,维护成本降低,团队协作更加顺畅高效。

description SKILL.md


name: java-docs description: 'Ensure that Java types are documented with Javadoc comments and follow best practices for documentation.'

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.

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量7.1K
评分4.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组

用户评分

4.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

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

时间线

创建2026年3月16日
最后更新2026年3月16日