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.
mdr add imran31415/kube-coder/worktree@git:20260926.e57a6cfPins 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
mdr add imran31415/kube-coder/worktree@sha256:75896cf6021ffc17The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260926.e57a6cf latest | 2026-09-26 | e57a6cf | 6,552 B | A | view · diff |
| git:20260714.2a3c4ed | 2026-07-14 | 2a3c4ed | 5,664 B | A | view |
Audit of the latest version
- 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
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
Every file in imran31415/kube-coder