worktree SKILL.md skillA

worktree from imran31415/kube-coder is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add imran31415/kube-coder/worktree@git:20260926.e57a6cf

Pins git:20260926.e57a6cf in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
imran31415/kube-coder
Path
.claude/skills/worktree/SKILL.md
Versions recorded
2
Latest version
git:20260926.e57a6cf, committed Sep 26, 2026
First version recorded
Jul 14, 2026
Size
6,552 bytes
Repository stars
392
License
MIT

Create an isolated git worktree + branch + port for this session so concurrent kube-coder sessions and builds don't conflict. Use at the START of any change you want isolated, when two sessions touch the same repo, or before running a dev server/build that would collide on ports or output dirs. Also lists and tears down worktrees.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Per-session git worktree

kube-coder isolates sessions at the *terminal* level (each task gets its own
tmux session + `~/.claude-tasks/<id>/`) but everything still runs in the **same
`/home/dev` filesystem**. So two sessions on the same repo collide three ways:

- **git tree** — branch/checkout/index thrash, a dirty working tree
- **build output** — both write `./dist`, `./build`; Kaniko reads its context from the shared path
- **dev-server ports** — `EADDRINUSE` on `:3000` (ports are per-*pod*, not per-session)

This skill fixes all three for the current session with **no infra change**: it
gives you a dedicated `git worktree` (own checkout + branch) at a path outside
the repo, and leases a free port for any server you start. Worktrees share the
main clone's object store, so they're cheap on disk — only working files are
duplicated.

The helper is `worktree.sh` next to this file. Invoke it as
`bash "$CLAUDE_SKILL_DIR/worktree.sh" …` (or with its absolute path under
`/home/dev/kube-coder/.claude/skills/worktree/`).

## Start an isolated session (the common path)

Run from **inside the repo** you want to work on (`cd` there first). `$ARGUMENTS`
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add imran31415/kube-coder/worktree@sha256:75896cf6021ffc17

The line at the top of this page pins the label git:20260926.e57a6cf, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_yhkwqfcub3sqklrv.svg)](https://markdownregistry.com/a/art_yhkwqfcub3sqklrv)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Jul 14, 2026 and Sep 26, 2026, about one every 74 days.

versioncommittedcommitsizeaudit
git:20260926.e57a6cf latest2026-09-26 e57a6cf 6,552 BA view · diff
git:20260714.2a3c4ed2026-07-14 2a3c4ed 5,664 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6552 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

imran31415/kube-coder · 392 stars · license MIT · pushed 2026-10-18 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_yhkwqfcub3sqklrv
GET https://markdownregistry.com/api/v1/resolve?ref=imran31415/kube-coder/worktree
GET https://markdownregistry.com/api/v1/blob/75896cf6021ffc17d252ec3f544a75b55d619397422a1d6111b6570f8753b02f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from imran31415/kube-coder

kc-entrypoint-change SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-entrypoint-change/SKILL.md · Safely edit the workspace pod's boot scripts (start.sh, the entrypoint/ssh-server configmaps) in kube-coder. Use when…
git:20260714.ee88ce9 · audit A · 392 stars
kc-issue SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-issue/SKILL.md · Spin up an isolated agent to work a GitHub issue of kube-coder or any other repo checked out in the workspace. Given an…
git:20260926.9ec3f09 · audit A · 392 stars
kc-preflight SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-preflight/SKILL.md · Run kube-coder's full CI suite locally before pushing — helm lint + unit tests, server.py tests, dashboard + controller…
git:20260920.6ad2a5e · audit A · 392 stars
kc-scope-pr SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-scope-pr/SKILL.md · Scope a kube-coder change before you open or update a PR — what the diff actually touches, which tests reach it, what…
git:20260908.351228a · audit A · 392 stars
kc-screenshot SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-screenshot/SKILL.md · Capture desktop + mobile, dark + light screenshots of the kube-coder dashboard SPA for visual QA of a UI change. Use…
git:20260714.ad42a48 · audit A · 392 stars
kc-ship-pr SKILL.md skill
imran31415/kube-coder · .claude/skills/kc-ship-pr/SKILL.md · Commit local changes and open a pull request against kube-coder from inside a workspace pod. Use when the user wants to…
git:20260908.351228a · audit A · 392 stars
remote-task SKILL.md skill
imran31415/kube-coder · .claude/skills/remote-task/SKILL.md · Launch a Claude task on a remote kube-coder workspace, check task status, or attach to a running session. Use when the…
git:20260214.18924da · audit A · 392 stars

Every file in imran31415/kube-coder

Other files named worktree

worktree SKILL.md skill
oprogramadorreal/optimus-claude · skills/worktree/SKILL.md · Creates a git worktree for isolated parallel development — new branch in a separate directory with project setup and…
git:20260924.6e7f925 · audit B · 74 stars
worktree SKILL.md skill
jantichy/claude · skills/worktree/SKILL.md · Skill se použije, když uživatel zadá "/worktree", "/worktree enable", "/worktree disable", "/worktree status", nebo…
git:20261007.55ccadb · audit A · 40 stars
worktree SKILL.md skill
outlinedriven/odin-claude-plugin · plugins/odin-git/skills/worktree/SKILL.md · Use when work needs an isolated git worktree: new work, an existing ref, a gated feature workspace, a manifest-tracked…
git:20260912.eaa5f2e · audit A · 38 stars
worktree SKILL.md skill
hidorakai002/ai-workspace-archive · ai_agent_frameworks/major_frameworks/AutoGPT/.claude/skills/worktree/SKILL.md · Set up a new git worktree for parallel development. Creates the worktree, copies .env files, installs dependencies, and…
v3.0.0 · audit A · 37 stars
worktree SKILL.md skill
byerlikaya/claude-starter-kit · kit/skills/worktree/SKILL.md · Isolate risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are…
git:20260926.aaa5dbc · audit A · 25 stars
worktree SKILL.md skill
byerlikaya/claude-starter-kit · plugin/skills/worktree/SKILL.md · Isolate risky or parallel file-mutating work in a git worktree so the main tree's uncommitted changes are…
git:20260926.aaa5dbc · audit A · 25 stars
worktree SKILL.md skill
ulises-jeremias/agent-toolkit · plugins/agent-toolkit-complete/.github/skills/worktree/SKILL.md · Manage Git worktrees per writer for Agent Toolkit swarms — isolated branches, handoff promotion,
v1.0 · audit A · 19 stars
worktree SKILL.md skill
vanducng/skills · skills/worktree/SKILL.md · Create, inspect, and clean isolated git worktrees for parallel feature development. Standardizes worktrees under a…
v2.8.0 · audit A · 8 stars

Browse by kind, by grade A, or by owner.