Skip to main content

Useful Prompts

20 AI Prompts for Java Concurrency and CompletableFuture

20 copy-paste AI prompts for Java concurrency and CompletableFuture — from basics to advanced production patterns and debugging. Covers thread pools, ExecutorService, CompletableFuture chaining, fan-out/fan-in, timeout handling, virtual threads, deadlock diagnosis, thread dump analysis, and full concurrency audits.

Java 25 LTS: Every JEP That Matters (with AI Prompts for Each Migration)

A JEP-by-JEP deep dive into Java 25 LTS — the features that will actually change how you write and profile Java. Each section includes a before/after code example, an explanation of what the JVM does differently, the pitfall to avoid, and a copy-paste AI prompt to retrofit your existing codebase. Covers JEP 495, 494, 485, 492, 488, 491, 454, and JFR method profiling.

10 AI Prompts for Designing Java Microservices

10 copy-paste AI prompts for designing Java microservices. Covers OpenAPI contract design, Circuit Breaker with Resilience4j, Kafka producer and consumer, distributed tracing with Micrometer, Kubernetes health probes, idempotency, event-driven sagas, service-to-service OAuth2 authentication, rate limiting, and full design reviews.

10 AI Prompts for Java Performance Optimization

10 copy-paste AI prompts for Java performance optimization. Covers GC log analysis, memory leak detection, virtual thread evaluation, thread dump contention analysis, HikariCP tuning, Stream pipeline optimization, JVM flag review, JMH benchmarking, hot method profiling, and full production performance audits.

10 AI Prompts for Hibernate and JPA

10 copy-paste AI prompts for Hibernate and JPA development. Covers entity relationship design, fixing LazyInitializationException, writing JPQL queries, generating Flyway migrations, second-level cache, bulk operations, soft delete, auditing with @EntityListeners, Criteria API Specifications, and full entity model reviews.

10 AI Prompts to Review and Improve Java Code Quality

10 copy-paste AI prompts for reviewing and improving Java code quality. Covers SOLID violations, thread-safety bugs, virtual thread carrier pinning, N+1 query patterns, resource leaks, exception handling, null safety, logging quality, and full quality audits. Works in Claude, ChatGPT, Gemini, and Cursor.

10 AI Prompts for Spring Boot Development

10 copy-paste AI prompts for Spring Boot development. Covers scaffolding REST endpoints, configuring Spring Security JWT, debugging autoconfiguration, global exception handling, production tuning, Actuator health checks, CORS, caching, and migrating from Spring Boot 2.x to 3.x. Works in Claude, ChatGPT, Gemini, and Cursor.

10 AI Prompts to Debug and Fix JUnit 6 Test Failures

10 AI prompts for debugging and fixing broken, flaky, and incorrectly behaving JUnit 6 tests. Each prompt is structured to provide complete failure context — stack traces, test code, production code — and diagnose root causes across assertion errors, NPEs, Mockito issues, Spring context failures, Testcontainers problems, and more.

10 AI Prompts to Optimise and Update Existing JUnit 6 Tests

10 AI prompts to optimise, update, and improve existing JUnit 6 test classes. Covers refactoring for readability, JUnit 4 migration, removing unnecessary Spring contexts, fixing brittle mocks, adding boundary tests, consolidating duplicates, restructuring with @Nested, and full quality audits.