Quality

Java Coding Standards

by Snailclimb

Java Coding Standards is a Quality skill for Claude Code, published by Snailclimb in AIGuide.

555 stars67 forkson Snailclimb/AIGuideAdded 2026/08/25+4% in starsRepository updated 2026/07/07
aiai-agentsclaude-codecodexcontext-engineeringcursorgolanggraphragjavallmmcpprompt-engineeringrag
Install in seconds
Install Java Coding Standards
Copy Java Coding Standards into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Snailclimb/AIGuide/tree/main/skills/java-coding-standards ~/.claude/skills/java-coding-standards

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Snailclimb/AIGuide.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/java-coding-standards/SKILL.md in Snailclimb/AIGuide
Installs to
~/.claude/skills/java-coding-standards
Collection
One of 2 skills cataloged from this repository
Category
Quality1354 skills

What Java Coding Standards does

Java Coding Standards defines rules for writing, reviewing, and refactoring Java 17+ and Spring Boot code. Use it for layer design, API boundaries, persistence, transactions, logging, testing, and code review.

Java Coding Standards is cataloged under Quality on DirSkills. Java Coding Standards comes from a repository tagged ai, ai-agents, claude-code, codex and context-engineering.

Documentation

README

Java 编码规范

将这个 skill 视为 Java 17+ / Spring Boot 项目的简明工作卡。SKILL.md 只保留流程和路由,具体规则按需加载 references/ 下的参考文件。

使用原则

  • 仓库内规则优先于本 skill。若 AGENTS.mdCLAUDE.md、本地格式化配置或相邻代码与本 skill 冲突,优先遵循仓库约定;只有当冲突会影响结果时,再明确指出。
  • 不要为了满足本 skill 而大规模重构无关代码。优先贴近现有模式,除非当前实现已经带来真实的正确性、安全性、事务或可维护性风险。
  • 规则要尽量具体、可检查。维护本 skill 时,始终追问一句:删掉这条后,AI 是否更容易犯真实错误?
  • 禁止项要配上推荐替代方案。例如:不要用字段注入;优先使用构造器注入,通常配合 Lombok @RequiredArgsConstructor
  • 机械性规则尽量交给工具。优先依赖 formatter、Checkstyle、Spotless、测试、CI 或 hooks,不要只靠自然语言约束格式。

工作流程

编写或重构代码时

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Java Coding Standards

  • What else does Snailclimb publish alongside Java Coding Standards?

    Java Coding Standards is one of 2 skills that DirSkills catalogs from Snailclimb/AIGuide, the repository it ships in. Its siblings there include Draw.io Chart. Each one is a separate skill with its own page in this directory, installs the same way Java Coding Standards does, and is maintained by Snailclimb in that same repository. The rest of the collection is listed on the Snailclimb/AIGuide page.

  • How does Java Coding Standards compare to other Quality skills?

    Java Coding Standards ranks #1156 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Java Coding Standards against them. Open each page to compare what they document and how they install.