td-java-coding-guidelines
Skill12 starsChanged 6 months agoApache-2.0View on GitHub
Use when writing or reviewing Java code involving Tongdun/Alibaba Java rules, exceptions, logging, SQL/MyBatis, security, middleware, concurrency, virtual threads, JVM JIT performance, or project layering.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
[Mandatory]: must be followed.
- Distinctive: line 13
[Recommended]: should be followed when practical.
- Distinctive: line 20
Detailed rules: read references/programming-specification.md.
- Distinctive: line 26
Detailed rules: read references/exception-and-logs.md.
- Distinctive: line 32
Detailed rules: read references/mysql-rules.md.
- Distinctive: line 38
Detailed rules: read references/project-specification.md.
- Distinctive: line 44
Detailed rules: read references/security-specification.md.
- Distinctive: line 50
Detailed rules: read references/middleware-framework-specification.md.
- Distinctive: line 62
Detailed rules: read references/virtual-thread-specification.md.
- Distinctive: line 68
Detailed rules: read references/jvm-jit-performance-specification.md.
- Very specific: line 72
When writing or reviewing code: read references/programming-specification.md.
- Very specific: line 73
When handling exceptions, logs, or comments: read references/exception-and-logs.md.
- Very specific: line 75
When designing project architecture: read references/project-specification.md.
- Very specific: line 76
When security-related functionality is involved: read references/security-specification.md.
- Very specific: line 78
When transactions or JDK 21 virtual threads are involved: read references/mysql-rules.md and references/virtual-thread-specification.md.
- Very specific: line 79
If the code path mentions ThreadLocal, per-thread buffers/caches, Aerospike-client, fastjson, legacy JDBC drivers, serialization clients, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TONGDUN Java Development Guidelines
This skill provides Java coding guidance based on Alibaba Java Coding Guidelines.
Guideline severity has three levels:
- [Mandatory]: must be followed.
- [Recommended]: should be followed when practical.
- [For Reference]: useful guidance and background.
1. Programming Specification
Covers naming style, constants, code formatting, OOP rules, collections, concurrency, control statements, and comments.
Detailed rules: read references/programming-specification.md.
2. Exceptions And Logs
Covers exception handling and logging rules.
Detailed rules: read references/exception-and-logs.md.
3. MySQL Rules
Covers table design, indexes, SQL, and ORM mapping rules.
Detailed rules: read references/mysql-rules.md.
4. Project Specification
Covers application layering, second-party library dependencies, and server configuration.
Detailed rules: read references/project-specification.md.
5. Security Specification
Covers permission checks, data masking, SQL injection prevention, CSRF protection, and related security rules.
Detailed rules: read references/security-specification.md.
Middleware And Framework Specification
Covers dedicated rules for Dubbo, Kafka, ZooKeeper/Curator, InfluxDB, APEXDB, and HBase.
Detailed rules: read references/middleware-framework-specification.md.
Spring Database Transaction Rules
Database transaction rules are included in the MySQL rules.
Detailed rules: read references/mysql-rules.md.
JDK 21 Virtual Thread Rules
Covers pinning prevention, third-party library compatibility checks, ThreadLocal buffer hazards, thread-pool configuration, and virtual-thread-specific constraints.
Detailed rules: read references/virtual-thread-specification.md.
JVM JIT Performance Rules
Covers HotSpot C2 / Graal JIT-friendly code for method inlining, escape analysis, scalar replacement, lock elimination/coarsening, devirtualization, loop optimization, bounds-check elimination, and branch prediction.
Detailed rules: read references/jvm-jit-performance-specification.md.
How To Use
- When writing or reviewing code: read
references/programming-specification.md. - When handling exceptions, logs, or comments: read
references/exception-and-logs.md. - When database access, SQL, MyBatis, or Spring transaction rules are involved: read
references/mysql-rules.md. - When designing project architecture: read
references/project-specification.md. - When security-related functionality is involved: read
references/security-specification.md. - When Dubbo, Kafka, ZooKeeper, HBase, APEXDB, or similar middleware is involved: read
references/middleware-framework-specification.md. - When transactions or JDK 21 virtual threads are involved: read
references/mysql-rules.mdandreferences/virtual-thread-specification.md.- If the code path mentions
ThreadLocal, per-thread buffers/caches, Aerospike-client, fastjson, legacy JDBC drivers, serialization clients, or other old blocking clients, apply the virtual-thread third-party compatibility checklist before writing code. Do not default toExecutors.newVirtualThreadPerTaskExecutor()until the reference rules say it is safe.
- If the code path mentions
- When performance-sensitive Java code or hot paths are involved: read
references/jvm-jit-performance-specification.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

