/kortex:jshellfrom kortex
Manages JShell sessions in a terminal for running Java snippets as a REPL or scratchpad.
Ships in kortex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run JShell in an agent-controlled terminal and own its lifecycle. Record its pid when it starts, keep the terminal session, and do not finish the task until that session has exited.
Run jshell --version before the first evaluation. On macOS, /usr/bin/jshell can be a launcher
that reports no Java runtime even when an SDK-managed JDK is installed. In that case, resolve an
installed JDK and use its absolute bin/jshell path for the rest of the task.
If a requested JShell option is uncertain, inspect that executable's --help or --help-extra.
Start this command in a terminal with TTY enabled, replacing the final argument with the resolved absolute path:
/bin/sh -c 'printf "JSHELL_PID=%s\n" "$$" >&2; exec "$1" --execution local --feedback concise' sh /absolute/path/to/jshell
Save both the returned terminal-session id and the printed JSHELL_PID. exec replaces the shell
with JShell without changing the pid, while --execution local keeps evaluation in that tracked
process.
Send Java snippets to the terminal session with a trailing newline. Poll a running session with an empty write. A returned live-session id only means the command is still running; it does not prove that JShell is waiting at a prompt.
Never send /exit. When no more evaluation is needed:
TERM to the recorded numeric pid. For example, if
JShell printed JSHELL_PID=16438, run kill -TERM 16438.KILL to that pid, and poll the original session again until it exits.Never abandon a live JShell terminal session. Do not use pkill jshell or killall; terminate only
the pid recorded for the current task.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub heapy/kortex --plugin kortex5 skills in this plugin
/kotlin-toolchainUse when working with JetBrains Kotlin Toolchain v0.14.x, formerly Amper, including module.yaml, project.yaml, module templates, nested templates, libs.versions.toml, the kotlin CLI wrapper, `//` project paths, Kotlin/JVM, Android, iOS, Kotlin Multiplatform, Kotlin/JS, Kotlin/Wasm (wasm-js, wasm-wasi), Kotlin/Native, Apple platform support and deprecations, macOS/Xcode compatibility, ARM64 hosts and cross-compilation, GitHub Actions runners, server-side apps, dependencies, testing, SwiftPM dependencies, KMP library publishing, Maven Central, TestFlight, Android desugaring, download mirrors, build plugins, built-in technologies (Compose, Ktor, Spring Boot, serialization, kotlinx.rpc, DataFrame, Power Assert, KSP, Lombok), Maven and Gradle migration, JDK provisioning, and toolchain caches./ktorUse when building, modifying, debugging, or reviewing Ktor 3.5.x server and client applications, including routing, requests/responses, plugins, serialization, authentication, sessions, WebSockets, SSE, engines, testing, deployment, and Kotlin multiplatform client work./main-ktsUse when creating, writing, or running standalone executable Kotlin scripts with the `.main.kts` extension, including the `kotlin` script runner, shebang execution, `@file:DependsOn`/`@file:Repository`/`@file:Import`/`@file:CompilerOptions`/`@file:OptIn` annotations, script dependencies, command-line `args`, compiled-script caching, GitHub Actions setup with Heapy/setup-main-kts, and common scripting libraries such as ktor, kotlinx-serialization, kotlinx-coroutines, clikt, and kotlinx-html./modern-kotlinUse when writing, reviewing, or modernizing Kotlin code with recent language versions (2.0–2.4.x, including 2.4.10 and 2.4.20-Beta1), including context parameters, collection literals, guard conditions in when, multi-dollar interpolation, non-local break/continue, explicit backing fields, nested type aliases, name-based destructuring, data objects, Enum.entries, rangeUntil, unused-return-value checker, K2 smart casts, contracts, experimental -X compiler flags, exception-handling idioms (runCatching vs try/catch, Result), and stdlib APIs such as Uuid, Base64, HexFormat, kotlin.time Instant/Clock, and atomics.