java-kotlin

Guide Java and Kotlin development with JVM patterns and concurrency models.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill java-kotlin-jcetools-petra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-kotlin
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/java-kotlin
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill java-kotlin-jcetools-petra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you implement, debug, and verify Java/Kotlin work faster by guiding consistent design choices across the JVM ecosystem and by preventing common concurrency and correctness pitfalls.

Core Features & Use Cases

  • Auto-Detect JVM Context: Activates when you work with Java, Kotlin, Gradle/Maven build files, or common JVM-related imports and frameworks.
  • Language & Concurrency Decision Support: Recommends Java 23 vs Kotlin and selects appropriate concurrency patterns (virtual threads, coroutines, reactive streams, etc.) based on task needs.
  • Production-Focused Patterns & Guardrails: Provides practical patterns for modern Java/Kotlin (records, sealed types, coroutines, value classes) plus an anti-pattern and verification checklist for dependable outcomes.
  • Use Case: When adding a new API feature in a Spring Boot service, you can choose Kotlin coroutines for structured async, apply value classes for domain IDs, and verify tests and null-safety before claiming the change is complete.

Quick Start

Use the java-kotlin skill to review and harden the implementation for your .kt or .java feature branch, including concurrency choices, test coverage expectations, and a verification checklist.

Frequently Asked Questions about java-kotlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between Kotlin coroutines and Java virtual threads for async concurrency?

Kotlin coroutines and Java virtual threads are both supported concurrency models. The skill recommends the appropriate pattern by evaluating your specific task needs and framework context, ensuring structured async without blocking calls or GlobalScope anti-patterns.

What's the best way to review JVM code for concurrency and correctness pitfalls?

Reviewing JVM code involves applying a structured planning-review-verify workflow. The skill checks for modern-safe patterns like records, sealed types, and value classes while flagging anti-patterns such as GlobalScope, ensuring safer Java and Kotlin outputs.

When do I need to use modern Java features like records and sealed types in Spring Boot?

Modern Java features like records and sealed types are needed when implementing new APIs requiring immutable data and domain safety. The skill guides these design choices for Spring Boot services, including using value classes for domain IDs in Kotlin.

Does this Java and Kotlin development guide work with Gradle and Maven build configurations?

Yes, it works with Gradle and Maven build configurations. The skill auto-detects JVM context by activating when you work with Java, Kotlin, build files, or common JVM-related imports and frameworks to guide implementation and verification.

Why should I avoid GlobalScope and blocking calls in Kotlin coroutines?

Avoiding GlobalScope and blocking calls in Kotlin coroutines prevents structured concurrency breakdowns and thread starvation. The skill enforces these guardrails during code review and debugging, applying an anti-pattern checklist to verify safe async behavior.

Can I use Kotlin coroutines for structured async in a Java Spring Boot service?

Yes, you can use Kotlin coroutines for structured async in Spring Boot services. The skill supports mixed Java and Kotlin environments, recommending coroutines or reactive streams based on your task and verifying null-safety before completion.