agentleFS
anhnguyen0905anhnguyen0905/codex-mcp/skills/exec-jvm/SKILL.md

exec-jvm

Skill4 starsChanged 5 days agoMITView on GitHub

Java/Kotlin execution idioms to embed into Codex prompts when the target project is on the JVM — null safety, immutability, framework conventions, and testing style.

The file

Files
SKILL.md

Java / Kotlin Idioms (embed when project is JVM)

JVM standards:
- Null safety: Kotlin — no !! in production code, use ?./?:/require; Java — Optional for
  possibly-absent returns, @Nullable/@NonNull annotations if the project uses them, Objects.requireNonNull
  at boundaries.
- Immutability: Kotlin — val + data class + immutable collections by default; Java — records
  (or final fields + builders), List.copyOf/unmodifiable views for exposed collections.
- Errors: specific exceptions with messages that carry context; try-with-resources / use{} for
  resources; never catch Exception/Throwable broadly except at top-level handlers that log.
- Follow the framework the repo uses (Spring Boot/Quarkus/Ktor/Android): its layering
  (controller/service/repository), DI style (constructor injection, no field injection), config
  binding, and transaction boundaries — do not hand-roll what the framework provides.
- Persistence: no N+1 queries (fetch joins/entity graphs); DTOs at API boundaries, entities stay
  internal.
- Coroutines (Kotlin): structured concurrency — no GlobalScope; propagate cancellation; switch
  dispatchers at the boundary, not deep inside logic.
- Style: match existing formatter (ktlint/spotless/google-java-format) and package structure.
- Tests: JUnit 5 + the repo's assertion/mocking libs (AssertJ/Kotest/MockK/Mockito); given-when-then
  naming consistent with existing tests.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.