java-adr
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an…
Use when the user asks to add caching, configure Redis or Caffeine cache, use @Cacheable/@CacheEvict/@CachePut, optimize repeated database or API calls, or review existing Spring Boot cache configuration.
$ npx -y skills add ducpm2303/claude-java-plugins --skill java-cache --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/java-cacheContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user asks to add caching, configure Redis or Caffeine cache, use @Cacheable/@CacheEvict/@CachePut, optimize repeated database or API calls, or review existing Spring Boot cache configuration.
name: java-cache description: Use when the user asks to add caching, configure Redis or Caffeine cache, use @Cacheable/@CacheEvict/@CachePut, optimize repeated database or API calls, or review existing Spring Boot cache configuration. version: 1.0.0 authors: [java-plugins contributors] tags: [java, spring-boot, cache, redis, caffeine, spring-cache] allowed-tools: [Read, Glob, Grep, Edit, Write]
Detect the cache provider in use, then apply the correct patterns.
Check `pom.xml` or `build.gradle`:
Check Spring Boot version:
---
User asks to review existing cache configuration. Check for:
---
User asks to add caching from scratch.
1. Add `spring-boot-starter-cache` + `com.github.ben-manes.caffeine:caffeine` 2. Add `@EnableCaching` to a `@Configuration` class 3. Configure cache specs in `application.yml` — set `maximum-size` and `expire-after-write` 4. Annotate service methods with `@Cacheable`, `@CacheEvict`, `@CachePut`
1. Add `spring-boot-starter-data-redis` 2. Configure `spring.data.redis.host/port` (Boot 3.x) or `spring.redis.host/port` (Boot 2.x) 3. Configure `RedisCacheConfiguration` bean — set TTL and use `GenericJackson2JsonRedisSerializer` 4. Add `@EnableCaching` and annotate service methods
See `references/patterns.md` for full configuration examples.
---
User asks to cache the result of a method.
1. Place `@Cacheable(cacheNames = "products", key = "#id")` on the service method 2. The method must be on a Spring-managed bean and not `private` 3. The method must not call itself (proxy bypass) — extract to a separate bean if needed 4. Add `unless = "#result == null"` to avoid caching null results 5. Ensure the return type is `Serializable` (Redis) or any object (Caffeine) 6. Add a corresponding `@CacheEvict` on the update/delete method
---
User asks to invalidate/evict cache entries on data changes.
---
User asks specifically for Redis cache configuration.
1. Add `spring-boot-starter-data-redis` 2. Configure connection: `spring.data.redis.host`, `spring.data.redis.port`, `spring.data.redis.password` 3. Define `RedisCacheManager` bean with:
4. Enable `@EnableCaching` 5. For Redis Cluster: set `spring.data.redis.cluster.nodes` 6. For Redis Sentinel: set `spring.data.redis.sentinel.master` and `nodes`
---
For **review mode**: list findings as `[CRITICAL] / [HIGH] / [MEDIUM] / [LOW]` with file:line references.
For **implementation modes**: show exact Maven/Gradle dependency, full `application.yml` block, and complete Java configuration + annotated example. State minimum Spring Boot version where it differs.
A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an…
Reviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this…
Reviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply…
Generates a Conventional Commits message for staged Java changes. Use when user asks to "write a commit message", "help me commit", "what should my commit…
Reviews Java code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility. Use when user asks to "review concurrency", "is this…
Detects GoF patterns in Java code or recommends the right pattern for a problem. Use when user asks to "what pattern is this", "detect design patterns",…