Java Comment Standards Assistant
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_b0ac05b7/java-comment-rules.
About this skill
Problem
- Class metadata: fields such as
@author,@version,@company, and@descriptionoften appear inconsistently or with unclear provenance, especially when creating and modifying classes. - Business comments: line-ending
/* ... */, mixed languages, and inconsistent blank lines make code review harder. - Versioning: it is unclear whether a change should be
1.0,1.1, or2.0, which can create misleading version numbers. - Encoding: a BOM can cause Java compilation to report
illegal character: '\ufeff'.
How It Works
The skill turns docs/JAVA_COMMENT_RULES.md into an execution checklist:
- For new classes, complete the
/** ... */comment and fill the template fields. - For existing classes, preserve
@createTimeand historical@modifyRecordentries, and update@descriptionwith the current change. - Before changing
@version, inspect Git for areleasebranch or release tag, then compare the same-path class file. If missing, use1.0; if present with no new method, bump the minor version; if a new method signature is added, bump the major version. - Business code comments should be Chinese block comments placed above the target line, not at line endings.
- Apply blank-line rules: if the comment is the first line inside
{ ... }, place it directly below{; otherwise keep one blank line above it. - Keep files as
UTF-8 without BOMand verify that no line-ending block comments remain.
Boundaries
- It supports adding, adjusting, reviewing, and standardizing Java comments, but does not replace the full project specification.
@author,@registerPosition, and@modifiershould be left blank when unknown, or inferred carefully from context.@versiondepends on Git/release availability; fallback reasoning is only an approximation.- A new method is detected by method signatures; field, import, comment, or internal-logic changes do not count as new methods.
Use Cases
- Fill Java class metadata with a standard template.
- Keep history and append current change notes.
- Move line comments above code and fix blanks.
- Use Git release comparison to bump versions.
Best For
- Java engineers enforcing consistent comment style in code review
- Developers maintaining service-class versions and change history
- Maintainers cleaning legacy line comments and blank lines
- Java engineers using Git release data to bump versions
Related Skills
GitHub Release Tracker
@user_ef6dc84f/github-release-tracker
Track multiple GitHub projects, check releases and changelogs, and generate structured update summaries with impact analysis.
Development
2026.08.30
↓ 588
Qiniu Upload And Auto Delete
@user_c1c145ab/upload-qiniu-kodo
Upload local files to Qiniu Object Storage with server-side auto-delete days and public or private permanent URLs, ideal for temporary files and replacing Base64 storage.
Development
2026.08.30
↓ 620
Knowledge Site Creator
@user_f65abb13/knowledge-site-creator
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
Development
2026.08.29
↓ 646
Gurobi Operations Research Modeling
@user_ff97f32a/gurobi-optimization-skill
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.
Development
2026.08.30
↓ 626