java-docs
Helps your agent document Java code. It ensures Javadoc comments are complete and follow best practices for clarity.
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.
Example of what to ask your AI
“Add Javadoc comments to this Java class and its methods.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
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.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add github/awesome-copilot --skill java-docsOr download just the file:
curl -L https://raw.githubusercontent.com/github/awesome-copilot/main/skills/java-docs/SKILL.md -o SKILL.mdTechnical 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
- #5197
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquire-codebase-knowledge
Helps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
github/awesome-copilot
acreadiness-assess
Enables 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.
github/awesome-copilot
acreadiness-generate-instructions
Helps 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.
github/awesome-copilot
acreadiness-policy
Enables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
github/awesome-copilot
Similar skills
architecture-decision-records
Has your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
affaan-m/ECC
code-tour
Lets your agent create step-by-step code walkthroughs with exact file and line anchors. It's useful for project introductions, code explanations, or change reviews. Helps understand how a system works.
affaan-m/ECC
codebase-onboarding
Helps your agent analyze unfamiliar code and create an onboarding guide. It includes an architecture map, entry points, and conventions. Ideal for starting on a new project.
affaan-m/ECC