agentleFS
funky-eyesfunky-eyes/best-copilot/skills/td-java-coding-guidelines/SKILL.md

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.

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
  1. Distinctive:

    [Mandatory]: must be followed.

    line 12
  2. Distinctive:

    [Recommended]: should be followed when practical.

    line 13
  3. Distinctive:

    Detailed rules: read references/programming-specification.md.

    line 20
  4. Distinctive:

    Detailed rules: read references/exception-and-logs.md.

    line 26
  5. Distinctive:

    Detailed rules: read references/mysql-rules.md.

    line 32
  6. Distinctive:

    Detailed rules: read references/project-specification.md.

    line 38
  7. Distinctive:

    Detailed rules: read references/security-specification.md.

    line 44
  8. Distinctive:

    Detailed rules: read references/middleware-framework-specification.md.

    line 50
  9. Distinctive:

    Detailed rules: read references/virtual-thread-specification.md.

    line 62
  10. Distinctive:

    Detailed rules: read references/jvm-jit-performance-specification.md.

    line 68
  11. Very specific:

    When writing or reviewing code: read references/programming-specification.md.

    line 72
  12. Very specific:

    When handling exceptions, logs, or comments: read references/exception-and-logs.md.

    line 73
  13. Very specific:

    When designing project architecture: read references/project-specification.md.

    line 75
  14. Very specific:

    When security-related functionality is involved: read references/security-specification.md.

    line 76
  15. Very specific:

    When transactions or JDK 21 virtual threads are involved: read references/mysql-rules.md and references/virtual-thread-specification.md.

    line 78
  16. Very specific:

    If the code path mentions ThreadLocal, per-thread buffers/caches, Aerospike-client, fastjson, legacy JDBC drivers, serialization clients, …

    line 79

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. When writing or reviewing code: read references/programming-specification.md.
  2. When handling exceptions, logs, or comments: read references/exception-and-logs.md.
  3. When database access, SQL, MyBatis, or Spring transaction rules are involved: read references/mysql-rules.md.
  4. When designing project architecture: read references/project-specification.md.
  5. When security-related functionality is involved: read references/security-specification.md.
  6. When Dubbo, Kafka, ZooKeeper, HBase, APEXDB, or similar middleware is involved: read references/middleware-framework-specification.md.
  7. When transactions or JDK 21 virtual threads are involved: read references/mysql-rules.md and references/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 to Executors.newVirtualThreadPerTaskExecutor() until the reference rules say it is safe.
  8. When performance-sensitive Java code or hot paths are involved: read references/jvm-jit-performance-specification.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.