/kinhin:kinhin-route-workflowfrom kinhin
Routes CI workflow jobs to different runtimes (macOS tart VM, appleContainer, Docker, Linux VM, host) with a single `kinhin workflow route` command. Supports GitHub, Gitea, Forgejo, and GitLab CE.
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: GitHub, Gitea, Forgejo and GitLab CE are supported. Gitea, Forgejo and GitLab CE have run real jobs on every runtime; GitHub on Tart macOS VMs and apple/container. Buildkite, Azure DevOps and Bitbucket are planned.
kinhin workflow route <FILE|workflow name> <tart|appleContainer|docker|host> [--job NAME] [--dry-run] [--json] [--consent]. It edits the workflow's runs-on: comment-preservingly and,
only when routing precedence needs it, writes an owner/repo@Workflow route through the validated config editor;
a running daemon reloads it live. Never hand-edit runs-on: when this command can do it.--dry-run first when the change wasn't explicitly approved, then report the before/after and
git diff <file> after applying.appleContainer — not Docker, and not the job-level container:
key (that runs the job's steps in a container inside the VM, it doesn't choose the pool).${{ … }} expressions, {group:, labels:} mappings, and
reusable-workflow (uses:) jobs. Those route through config instead:
kinhin runtimes route add <owner/repo>@<Workflow> <runtime>.runs-on: — the command refuses them and points at kinhin runtimes route add.
Label forges: GitHub, Gitea, Forgejo.owner/repo@Workflow) do not match (their APIs don't name a job's workflow);
use a repo route or the runs-on: marker instead.Read the workflow's steps, not just its name.
xcodebuild, fastlane, codesign, Keychain, .app/.dmg → must be macOS tart VMs (no Linux runtime
can run these).apt-get, Debian-only binaries, glibc-only toolchains → Linux — continue to step 2.x86_64/amd64 matrix requirement → Docker is the only Linux runtime with amd64 (emulated; JIT/Go/
Java/.NET caveats apply).If the user said "appcontainer" / "apple container" explicitly → appleContainer, don't re-ask; just verify
setup (step 3) and apply. If they only said "a Linux container" or "somewhere cheaper", ask which Linux type,
quoting docs/runtimes.md#choosing-a-linux-runtime:
sudo; cons: lowest density, 50 GB per
instance, needs an ISO or published image.Recommend from machine-readable state, never from guesses:
kinhin runtimes --json → pools (configured + labels), routes, defaultRuntime, health, and
availability (what's installed on this Mac: ready / missing:<tool> / broken:<reason>).kinhin doctor --json → prerequisites and whether the runtime is prepared.
The recommended option must be available on this Mac (availability) and its pool configured (pools).
If two options genuinely fit, present the trade-off and recommend one before writing anything.Apply:
kinhin workflow route "<file>" <runtime> --dry-run # show the plan
kinhin workflow route "<file>" <runtime> # apply
git diff <file> # report the change
kinhin workflow test --list # verify: jobs now show their runs-on:
Report per-job before/after, any route the command reconciled, and the git diff. --json gives the same
as a machine-readable object (jobs, route, dryRun).
| Trap | What happens / what to do |
|---|---|
Precedence is workflow route → repo route → runs-on: marker → default | A repo route outranks the marker: if owner/repo is routed elsewhere, a marker-only edit is ignored and the job queues forever. workflow route detects this and writes the overriding workflow route itself — never "fix" it by editing labels by hand. |
Fleet defaults to containers (a container: section with no runtimes: section) | Every unrouted job already lands on appleContainer. Routing to tart needs a config route; the command writes it (tart has no marker). |
| tart has no marker | runs-on: alone can only send jobs away from the default onto marker pools (kinhin-container, kinhin-docker, kinhin-host) — tart targeting off the default is route-only. The command reconciles this. |
Matrix jobs use runs-on: ${{ matrix.os }} | Refused by the editor (it's resolved by the forge at queue time). Route via kinhin runtimes route add <owner/repo>@<Workflow> <runtime>. |
Reusable-workflow jobs (uses: with no runs-on:) | Refused — writing runs-on: would invalidate the job. Route via config. |
A GitHub-hosted label (ubuntu-latest) in the list | Runners AND-match every label, so keeping it would strand the job. The command replaces unmatchable labels with the target pool's exact labels. |
Org-wide account scope (scope: acme) | Route patterns need owner/repo. If precedence needs a route the command refuses with the exact kinhin runtimes route add <owner/repo>@<Workflow> <runtime> to run first. |
host | Requires --consent (jobs run unisolated on this Mac) and every account scoped to a single repository; also kinhin setup repair host-agent once. |
| After a route edit, jobs still land wrong | Routes reload live in a daemon, but an in-process engine picks the config up on its next poll; check kinhin runtimes shows the route, then re-queue with kinhin requeue <forge>. |
kinhin workflow route --help — the command's own usage.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-images-toolchainsBuild and manage kinhin VM and container images and per-project toolchains - image prepare, base_image pinning, Xcode images, .kinhin.yml, toolchains detect, Linux runtimes. Use when the user needs Xcode, specific tool versions, a Linux runner, or image maintenance./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.Other plugins' skills for the same job