sdkman
Installation
SKILL.md
sdkman
SDKMAN exposes sdk as a shell function. A version selected with sdk use affects only that shell, while agent shell tool calls normally start fresh shells. Keep the switch and the command that needs it in the same shell invocation.
Resolve the workload context
Before each workload invocation, resolve the directory where the command must run. In Git, treat its current worktree as the environment boundary: from the workload directory, look upward for the nearest .sdkmanrc, stopping at that worktree's root. Outside Git, stop at the explicitly selected project directory. Re-check the current filesystem; a prior shell, another checkout, or pre-compaction context is not evidence that this project has the file.
Follow these invariants:
- Invoke
sdk envonly after confirming the selected.sdkmanrcexists inside the workload's environment boundary. - Do not read or copy
.sdkmanrcfrom a sibling checkout, the originating checkout, or another worktree. - Preserve the workload's original directory; environment discovery must not change the command's cwd.
Choose the execution path
Use the first matching row: