Prompts you can paste after installing the skill. The important behavior is that the agent first identifies the Java project type, then loads only the matching rule files.
English | 中文
Prompt
Refactor this Java utility class, but keep Java 11 compatibility and public API stable.
Skill behavior
- Loads
core/java-general-development.md. - Checks Java target before using newer syntax.
- Avoids Spring/Lombok/framework assumptions.
- Reports the minimal compile/test command.
Prompt
Add the AWS SDK dependency to this project and make sure dependency versions stay managed.
Skill behavior
- Maven project: loads
build-tools/build-maven-dependencies.mdand edits the owning parent/BOM/property. - Gradle project: loads
build-tools/build-gradle-dependencies.mdand respects version catalogs/platforms/convention plugins. - It does not convert one build tool to another.
Prompt
Add an OrderService endpoint that saves an order and returns validation errors consistently.
Skill behavior
- Loads the relevant Spring Boot rule, such as
spring-boot/sb-dependency-injection.mdorspring-boot/sb-exception-handling.md. - Uses constructor injection.
- Uses Lombok only if the project already uses Lombok.
- Preserves the existing persistence choice: MyBatis, MyBatis-Plus, JPA, or something else.
Prompt
Review this method for thread safety:
private Map<Long, Order> cache = new HashMap<>(); public Order get(Long id) { return cache.computeIfAbsent(id, this::load); }
Skill behavior
- Loads
code-review/cr-concurrency.md. - Flags shared mutable
HashMapunder concurrent access. - Suggests
ConcurrentHashMapor a bounded cache such as Caffeine when eviction is required.
Prompt
Production has high CPU and request latency spikes. We have thread dumps and GC logs.
Skill behavior
- Starts with
jvm/jvm-cpu-high.md. - Adds
jvm/jvm-thread-dump.mdandjvm/jvm-gc-logs.mdonly because evidence exists. - Separates data collection, diagnosis, mitigation, and verification.
The skill can trigger from Java/JVM terms, Maven/Gradle files, Spring Boot annotations, MyBatis/JPA/Hibernate terms, JUnit/Mockito/Testcontainers, code-review terms such as NPE/thread-safety/equals/hashCode/security/secrets/injection, API compatibility terms, Java upgrade terms, and JVM incident terms such as OOM/GC/thread dump/deadlock/high CPU.