worktrees SKILL.md skillA
worktrees from kurrent-io/kcap-cli is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kurrent-io/kcap-cli/worktrees@git:20261028.ec40a8cPins git:20261028.ec40a8c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kurrent-io/kcap-cli
- Path
kcap/skills/worktrees/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261028.ec40a8c, committed Oct 28, 2026
- Size
- 5,131 bytes
- Repository stars
- 31
- License
- a license file GitHub does not identify
This skill should be used when git worktrees break across a sandbox or container and its host: you are running in a sandbox, container or VM that mounts the repository from the host; git says `.git file does not reference a repository`; a worktree is missing or `git worktree list` marks it prunable; the host (desktop app, IDE, the user's own git) cannot open a worktree an agent made; or the SessionStart context asks about relative worktree links. Covers enabling and undoing relative worktree…
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
# Worktrees across a sandbox and its host Unless configured otherwise, git links a worktree to its repository by **absolute path**, in two files: - `<worktree>/.git` holds `gitdir: /abs/path/.git/worktrees/<name>` - `.git/worktrees/<name>/gitdir` holds `/abs/path/<worktree>/.git` A sandbox (container or VM) that mounts the host's filesystem usually sees the repository at a different path from the host. Each side's absolute links resolve only on that side, so a worktree made in the sandbox can't be opened on the host and the other way round. Git on the other side also marks it prunable, and `git gc` eventually prunes its metadata (`gc.worktreePruneExpire`, 3 months by default) ## Relative worktree links Git 2.48 added relative links. Relative links only help when the worktree and the repository's `.git` sit inside the same mounted tree, which is true for worktrees under `.capacitor/worktrees/` and `.claude/worktrees/` **Before enabling, tell the user the cost:** the first relative write sets `extensions.relativeWorktrees` and raises `core.repositoryformatversion` from 0 to 1. Git older than 2.48 then refuses to open the repository at all, the …
Read the whole file at its exact version.
How to install
mdr add kurrent-io/kcap-cli/worktrees@sha256:826ad67f12e87121The line at the top of this page pins the label git:20261028.ec40a8c, 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_bz4fbi6rilhgnhag)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 28, 2026.
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 (5131 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
kurrent-io/kcap-cli · 31 stars · license a license file GitHub does not identify · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bz4fbi6rilhgnhag GET https://markdownregistry.com/api/v1/resolve?ref=kurrent-io/kcap-cli/worktrees GET https://markdownregistry.com/api/v1/blob/826ad67f12e87121111faa683b054917bcc16161eafaf6b2ee6ef76ae885a05c
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 kurrent-io/kcap-cli
Every file in kurrent-io/kcap-cli