/kinhin:kinhin-images-toolchainsfrom kinhin
Builds and manages kinhin VM/container images and per-project toolchains. Handles image preparation, base image pinning, Xcode images, toolchain detection, and Linux runtimes.
Ships in kinhin. 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.
None: SKILL.md is the whole skill.
Beta status: the Tart macOS and Apple container paths have run for real. The other Linux runtimes (Docker, Tart
Linux) are unit-tested against fakes only. Run kinhin help image or kinhin help toolchains if a flag here is rejected.
| Task | Command |
|---|---|
| Build the base image | kinhin image prepare [--provision-script F] |
| Build a named extra image | kinhin image prepare --image NAME (or --all) |
| Pre-bake a project image | kinhin image prepare --project owner/name [--ref R] |
| Apple container image | kinhin image prepare --container [--target NAME] |
| Docker image | kinhin image prepare --docker [--platform linux/amd64] [--target NAME] |
| Tart Linux VM | kinhin image prepare --linux --target NAME [--iso F] [--from [ref]], then --source NAME to bake the agents in |
| Pin an image by digest | kinhin image digest <registry>/<repo>:<tag> |
image prepare is slow and large (about 40 to 60 GB for macOS). Re-run it after upgrading kinhin, and after adding an
account for a forge whose runner agent is not yet baked in (agents are baked in only if a token for that forge exists).base_image takes a Tart ref (optionally @sha256: pinned) or a local VM name. kinhin doctor warns on mutable tags,
so pin with image digest.provision_script is a host script baked into the image. It is the version pin. A failed run keeps the previous image.images: (name, base_image). Names must not start with kinhin- or orchard-.-xcode base image, for example
ghcr.io/cirruslabs/macos-tahoe-xcode:latest:images: [{name: xcode, base_image: "ghcr.io/cirruslabs/macos-tahoe-xcode:latest"}]
then kinhin image prepare --image xcode.
kinhin toolchains shows the catalog. Stacks: flutter, expo, react-native, vercel, cloudflare.
Resolution order for a job: .kinhin/config.yml (or the older .kinhin.yml) at the job's ref, then projects[].toolchains in the config, then the plain
base image.
projects:
- {pattern: "acme/api", toolchains: {specs: ["[email protected]","node@22"], stacks: ["[email protected]"]}, share_cache: false}
- {pattern: "acme/*", repo_file: true} # read .kinhin/config.yml from the repo
kinhin toolchains detect [path] [--json] [--write] [--force] in a checkout..kinhin/config.yml (or .kinhin.yml, read when the new one is absent) accepts only catalog toolchains.specs and stacks, capped at 16 KB. It is honored only on
GitHub, Gitea/Forgejo and GitLab. Other forges use projects[].toolchains.run: kinhin-toolchain install node@22 pnpm.kinhin toolchains list-images, kinhin toolchains prune [--dry-run]. See every installed image
(tart, container, docker) with kinhin image list [--json] — --runtime tart|container|docker narrows it to one —
and remove one by name with
kinhin image delete <name> [--yes] — it reports without --yes and refuses images runners are using. Sweep the
whole machine in one confirmed pass with kinhin image prune [--yes] — stale derived records plus unused local
images; configured images, the base_image and anything in use are never touched. The same numbers come to you
without asking: kinhin doctor reports per-runtime totals (imageTotalGB) and the reclaimable sweep (imagePrune),
and the app's Diagnostics tab shows both rows. Config
toolchain_cache sets auto_prune, max_age_days (30) and max_gb (50). max_project_images defaults to 8.| Runtime | Setup | Workflow opt-in |
|---|---|---|
| Apple container | brew install container && container system start, image prepare --container, a container: block, a route | runs-on: [kinhin-container] |
| Docker | Install and start Docker yourself (kinhin never starts it), image prepare --docker, a docker: block | runs-on: [kinhin-docker] |
| Tart Linux VM | image prepare --linux ..., then --source NAME to bake the agents in; a Linux-named image strips the fleet's macos label automatically so macOS and Linux Tart VMs can share one fleet | labels |
| Host (unisolated) | kinhin setup repair host-agent, route with consent: true | runs-on: [kinhin-host] |
Route with kinhin runtimes route add acme/api appleContainer. Pass --target <name> to the container and Docker prepare
commands when routing to a named image. Check readiness with kinhin setup status and kinhin runtimes. Host mode runs
jobs directly on the Mac, so warn the user before enabling it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rabinapps/kinhin --plugin kinhin9 skills in this plugin
/kinhin-add-forge-accountConnect an existing kinhin install to a CI forge account - GitHub, Gitea, Forgejo or GitLab CE. Use when the user wants kinhin to serve jobs from another repo, org, project or forge./kinhin-configureEdit or write a kinhin config.yaml safely - accounts per forge, labels, capacity, runtimes and routes, token scopes. Use when the user wants to connect a forge, change labels, runners or VM sizing, or fix a config that fails validation./kinhin-installInstall kinhin and its prerequisites (Tart) on an Apple Silicon Mac, locally or on a rented or remote Mac, and run the first-time setup sequence. Use when the user wants to install, set up or bootstrap kinhin, or get a new Mac serving CI jobs./kinhin-mobile-fastlaneSet up fastlane store releases (TestFlight, App Store, Google Play) for iOS, Android, Flutter, React Native, Expo, Capacitor, Kotlin Multiplatform or .NET MAUI projects, and run them from a kinhin runner - `kinhin mobile init` scaffolding, lanes, App Store Connect API keys, match, Play service accounts, the mobile-release workflow, and Expo EAS. Use when the user wants to ship a mobile app, automate TestFlight or Play uploads, or fix a failing fastlane lane./kinhin-operateRun and monitor a kinhin fleet - start, stop, pause, status, logs, pipeline view, daemon, cleanup, the healing journal, scaling and capacity. Use when the user asks about fleet status, what kinhin fixed on its own, scaling runners, running kinhin as a daemon, or freeing disk./kinhin-route-workflowChoose the right kinhin runtime for a workflow (macOS tart vs appleContainer vs Docker vs tart Linux vs host) and route it with one command, `kinhin workflow route`. Use when the user wants a workflow or CI job to run on a different runtime — appcontainer, a Linux container, Docker, a Linux VM, host, or "somewhere cheaper".Other plugins' skills for the same job