
Java Docs
- 10.3k installs
- 37.1k repo stars
- Updated July 28, 2026
- github/awesome-copilot
Best practices and conventions for writing Javadoc comments in Java source code to document types, methods, fields, and exceptions.
About
This skill teaches Java developers how to document code using Javadoc comments. It covers best practices for public, protected, and private members, including proper use of tags like @param, @return, @throws, @see, @deprecated, and @since. Developers use this when writing or reviewing Java libraries and APIs to ensure comprehensive, consistent documentation that can be parsed into HTML docs and improves code clarity.
- Document public and protected members with Javadoc; encourage docs for complex package-private and private members
- Use @param (lowercase, no period), @return, @throws, and @see tags correctly in method documentation
- Use {@inheritDoc} to inherit docs from base classes unless major behavior changes require explicit differences
- Format code snippets with {@code} for inline or <pre>{@code}</pre> for blocks within comments
- Mark deprecated members with @deprecated tag and provide alternative; use @since and @version for versioning
Java Docs by the numbers
- 10,338 all-time installs (skills.sh)
- +62 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #42 of 1,901 Documentation skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
java-docs capabilities & compatibility
- Use cases
- documentation · code review
What java-docs says it does
Public and protected members should be documented with Javadoc comments.
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.
npx skills add https://github.com/github/awesome-copilot --skill java-docsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 10.3k |
|---|---|
| repo stars | ★ 37.1k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | github/awesome-copilot ↗ |
What it does
Write and validate Javadoc comments for Java types, methods, and members following standard conventions.
Who is it for?
Java library and API developers, teams enforcing documentation standards, developers writing public or complex internal code.
Skip if: Projects not using Java, codebases not requiring API documentation, scripts or throwaway code.
When should I use this skill?
Writing or reviewing Java code with public or protected members; preparing code for library release; setting up documentation standards for a team.
What you get
Developers write clear, consistent Javadoc comments that follow standard conventions, enabling automated API documentation generation and improving code maintainability.
- Well-formed Javadoc comments on public and protected members
- Consistent use of @param, @return, @throws, @see tags
- Proper formatting with {@code} and code blocks
By the numbers
- Standard Javadoc tags: @param, @return, @throws, @see, @since, @version, @author, @deprecated, @inheritDoc, {@code}
- Documentation scope: public and protected members required; package-private and private encouraged
Files
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.
Related skills
How it compares
Use java-docs for source-level Javadoc before review; use OpenAPI generators when REST contract docs are the primary deliverable.
FAQ
Should I document private members?
It is encouraged to document package-private and private members, especially if they are complex or not self-explanatory.
What should the first sentence of a Javadoc comment contain?
The first sentence is the summary description - a concise overview of what the method does, ending with a period.
How do I document exceptions in Javadoc?
Use @throws or @exception tags to document exceptions thrown by methods.
Is Java Docs safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.