xiaohongshu
xiaohongshu
cui-javadoc
CUI JavaDoc documentation standards for Java classes, methods, and code examples
Full skill instructions
Standards for writing high-quality JavaDoc documentation in CUI Java projects, ensuring consistency, completeness, and maintainability.
CRITICAL: Load current JavaDoc standards to use as enforcement criteria.
Always load foundational JavaDoc standards:
Read: standards/javadoc-core.md
This provides core JavaDoc principles, mandatory documentation requirements, basic tag usage, tag order, anti-patterns, and maintenance guidelines that apply to all JavaDoc documentation.
Conditional loading based on documentation context:
A. If documenting classes, interfaces, packages, enums, or annotations:
Read: standards/javadoc-class-documentation.md
Provides comprehensive standards for package-info.java files, class/interface documentation, abstract classes, enums, annotations, inheritance, serialization, and generic types.
B. If documenting methods or fields:
Read: standards/javadoc-method-documentation.md
Covers method documentation (public, private, overridden), field documentation, constructors, special method patterns (builders, factories, fluent APIs), generic methods, and varargs.
C. If adding code examples or complex formatting:
Read: standards/javadoc-code-examples.md
Provides standards for inline code ({@code}, {@literal}), code blocks (<pre><code>), links ({@link}), HTML formatting, tables, lists, and complete code examples.
Extract key requirements from all loaded standards
Store in working memory for use during task execution
If working with existing JavaDoc:
Identify documentation gaps:
Assess documentation quality:
Review consistency:
When writing or updating JavaDoc:
Apply core principles:
Use proper tag structure (if applicable):
Apply class-level documentation (if applicable):
Apply method-level documentation (if applicable):
Add code examples and formatting (if applicable):
{@code} for inline code{@literal} for special characters{@link} for class/method references<pre><code>Before completing the task:
Verify standards compliance:
Verify completeness:
Generate and review JavaDoc:
# Generate JavaDoc to check for warnings/errors
./mvnw javadoc:javadoc
# Check generated HTML for formatting
open target/site/apidocs/index.html
Verify formatting:
Provide summary of:
./mvnw javadoc:javadoc/**
* Validates the JWT token signature and expiration time against the configured
* issuer and clock skew tolerance.
*
* @param token the JWT token to validate, must not be null or empty
* @return validation result containing status and any error messages, never null
* @throws IllegalArgumentException if token is null or empty
* @since 1.2.0
*/
public ValidationResult validate(String token) {
// Implementation
}
/**
* Validates JWT tokens according to RFC 7519 specifications, verifying
* signature, expiration, and issuer claims.
*
* <p>This validator supports both symmetric (HS256) and asymmetric (RS256)
* signature algorithms.
*
* <p><b>Thread Safety:</b> This class is immutable and thread-safe.
*
* <p>Example usage:
* <pre><code>
* JwtTokenValidator validator = JwtTokenValidator.builder()
* .issuer("https://auth.example.com")
* .clockSkewSeconds(30)
* .build();
*
* ValidationResult result = validator.validate(jwtToken);
* if (!result.isValid()) {
* log.warn("Token validation failed: {}", result.getErrors());
* }
* </code></pre>
*
* @see TokenValidator
* @see ValidationResult
* @since 1.2.0
*/
public class JwtTokenValidator implements TokenValidator {
// Implementation
}
/**
* Provides token validation and authentication services for OAuth2 and JWT tokens.
*
* <h2>Key Components</h2>
* <ul>
* <li>{@link de.cuioss.portal.authentication.TokenValidator} - Main validation interface</li>
* <li>{@link de.cuioss.portal.authentication.JwtTokenParser} - JWT token parsing</li>
* <li>{@link de.cuioss.portal.authentication.OAuth2TokenValidator} - OAuth2 validation</li>
* </ul>
*
* <h2>Usage Example</h2>
* <pre><code>
* TokenValidator validator = new JwtTokenValidator(issuerConfig);
* ValidationResult result = validator.validate(bearerToken);
* if (result.isValid()) {
* // Process authenticated request
* }
* </code></pre>
*
* @since 1.0.0
* @author CUI Team
*/
package de.cuioss.portal.authentication;
/**
* Sets the token issuer URL.
*
* @param issuer the issuer URL (must be valid HTTPS URL)
* @return this builder for method chaining
* @throws IllegalArgumentException if issuer is null or not a valid HTTPS URL
*/
public Builder issuer(String issuer) {
// Implementation
return this;
}
/**
* Builds and returns a configured JWT token validator.
*
* @return a new JwtTokenValidator instance with the configured settings, never null
* @throws IllegalStateException if required settings (issuer, publicKey) are not set
*/
public JwtTokenValidator build() {
// Implementation
}
/**
* Validates a token using legacy validation rules.
*
* @param token the token to validate
* @return true if valid, false otherwise
* @deprecated since 2.0.0, use {@link #validate(String)} instead which
* returns detailed validation results and supports modern
* token formats. This method will be removed in 3.0.0.
*/
@Deprecated
public boolean validateLegacy(String token) {
// Implementation
}
<pre><code> formattingIf encountering issues:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience