java-docs
What it does
This agent helps add explanatory comments (called Javadoc) to your Java code. These comments make the code easier to understand for you and others.
When to use it
- ✓When you write a new Java function.
- ✓When you want to explain what a piece of your code does.
- ✓When you share your code with other programmers.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/java-docs/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Add Javadoc comments to this Java class and its methods.”
5 new skills a week. 1 minute to read.
How it works
It analyzes your Java code and automatically inserts Javadoc comments. It follows best practices to ensure the comments are clear and useful.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
What are Javadoc comments?
These are special texts within Java code that explain what the code does, how to use it, what information it receives, and what it returns. They are used to generate automatic documentation.
Why use Javadoc?
It helps in understanding code faster, makes collaboration with other developers easier, and is essential for creating professional documentation for your software.
Do I need to document everything?
It's mandatory to document public and protected parts of the code. It's recommended to document other parts if they are complex or not obvious.
Details
Original description by the author
Ensure that Java types are documented with Javadoc comments and follow best practices for documentation.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7254
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.