From agent-skills
Use when Codex writes, refactors, reviews, or designs non-Android JVM Kotlin/Java code. Keywords and triggers: Kotlin, Java, JVM, API design, architecture boundaries, module boundaries, domain modeling, interfaces, implementation quality, mutable state, var, StateFlow, Flow, SharedFlow, CoroutineScope, Job, cancellation, awaitCancellation, try/finally cleanup, onClose, onDispose, invokeOnTermination, business logic, tests, behavior-focused review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-skills:kotlin-java-code-guidesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill as an agent-targeted coding standard for non-Android JVM Kotlin and Java work. Optimize for stable APIs, explicit boundaries, idiomatic language use, testable behavior, and low-coupling implementation.
agents/openai.yamlreferences/00-agent-operating-protocol.mdreferences/01-architecture-boundaries.mdreferences/02-api-design.mdreferences/03-kotlin-style-and-idioms.mdreferences/04-java-style-and-idioms.mdreferences/05-implementation-quality.mdreferences/06-testing-and-review.mdreferences/07-coroutines-and-flow.mdreferences/08-source-map.mdreferences/09-agent-review-checklist.mdreferences/README.mdUse this skill as an agent-targeted coding standard for non-Android JVM Kotlin and Java work. Optimize for stable APIs, explicit boundaries, idiomatic language use, testable behavior, and low-coupling implementation.
Before non-trivial Kotlin/Java edits, read references/README.md and then load only the referenced files that match the task.
references/01-architecture-boundaries.md.references/02-api-design.md.references/03-kotlin-style-and-idioms.md.references/07-coroutines-and-flow.md.references/04-java-style-and-idioms.md.references/05-implementation-quality.md.references/06-testing-and-review.md.references/09-agent-review-checklist.md.references/08-source-map.md only when provenance matters.val/final fields, and keep unavoidable mutation private, lifecycle-owned, and justified.var, manual lifecycle flags, and hand-written synchronization in feature/business code as design pressure. Prefer local values, immutable state transitions, or explicit reactive state such as StateFlow when the state must be observed over time.AtomicReference, lateinit, nullable slots, or equivalent mutable placeholders to break construction cycles; change the construction order or move the operation to the owning abstraction.coroutineScope for all-or-nothing operation concurrency, supervisorScope for independent siblings with explicit failure policy, and long-lived CoroutineScope only for owned lifecycles.Job from business APIs. Treat it as a low-level primitive for infrastructure/adapters; control work with CoroutineScope ownership or suspending operations.try/finally and awaitCancellation() over onClose, onDispose, or invokeOnTermination hooks.GlobalScope, hidden private scopes, raw orphaned Flow/Channel crossing layers, and suspend as a default marker for async implementation.references/09-agent-review-checklist.md before reporting completion.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub nerzhulart/agent-skills --plugin agent-skills