cui-javadoc
CommunityGenerate crystal-clear Java API documentation.
Software Engineering#code quality#documentation#technical writing#Java#null safety#JavaDoc#API documentation
Authorcuioss
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Poorly documented or inconsistent JavaDoc makes APIs difficult to understand and use, leading to developer frustration and integration errors. This Skill provides a comprehensive set of standards for writing high-quality JavaDoc, ensuring clarity, completeness, and consistency across all CUI Java projects, making your APIs easier to consume.
Core Features & Use Cases
- Standardized Documentation: Enforces core principles like clarity, completeness, and consistency, avoiding "stating the obvious" and focusing on behavior.
- Class & Method Documentation: Guides the documentation of packages, classes, interfaces, enums, annotations, and all public/protected methods with detailed parameter, return, and exception descriptions.
- Rich Code Examples: Provides patterns for inline code, multi-line code blocks, cross-references, and HTML formatting (tables, lists) to enhance readability.
- Null-Safety Integration: Guides documentation for
@NullMarkedand@Nullableannotations, clarifying null-safety contracts. - Use Case: When developing a new Java library or API, use this skill to ensure every public class and method is meticulously documented with clear purpose statements, usage examples, and precise null-safety contracts, making your API a joy to use and reducing support overhead.
Quick Start
Document a Class
- Add class-level JavaDoc with purpose and behavior
- Document thread-safety if applicable
- Add usage example for complex classes
- Document all public methods
- Include parameter constraints and return guarantees
- Document all exceptions
- Add @see links to related classes
- Add @since tag for version
- Verify:
mvn javadoc:javadoc
Add Code Examples
- Write complete, compilable examples
- Use
<pre><code class="language-java">blocks - Include typical usage scenarios
- Show error handling if applicable
- Verify examples in unit tests
- Keep examples concise (< 10 lines preferred)
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cui-javadoc Download link: https://github.com/cuioss/cui-llm-rules/archive/main.zip#cui-javadoc Please download this .zip file, extract it, and install it in the .claude/skills/ directory.