worktree-manager SKILL.md skillA
worktree-manager from kopp0510/claude-dd is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kopp0510/claude-dd/worktree-manager@git:20261018.ee68e72Pins git:20261018.ee68e72 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kopp0510/claude-dd
- Path
skills/worktree-manager/SKILL.md- Versions recorded
- 9
- Latest version
- git:20261018.ee68e72, committed Oct 18, 2026
- First version recorded
- Feb 6, 2026
- Size
- 4,262 bytes
- Repository stars
- 12
- License
- MIT
Git Worktree 隔離管理,建立獨立開發環境避免影響主分支。當提到 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
# Worktree Manager
> **原生優先(Claude Code ≥ 2.1.198)**:原生 `EnterWorktree` 工具、CLI `--worktree` 與
> subagent `isolation: worktree` 已涵蓋建立、會話遷移與自動清理 — **先用原生**。
> 本 skill 只處理原生不覆蓋的場景:自訂位置慣例、依賴安裝與基線測試、舊版 Claude Code。
收尾第 1 步借鑑 michael-denyer/pstack-claude 的 worktree-cleanup playbook(被 ignore 的 `.env` 算「刪了就沒了」)。
## 建立流程
1. **前置檢查**:確認在 git repo 內、`git status --porcelain` 乾淨(有未提交變更先提示處理)、
`git worktree list` 無同名衝突
2. **確認設定**(AskUserQuestion 一次問完):分支名(建議 `feature/<name>` 前綴)、
位置(慣例:主 repo 平行目錄 `../<project>-worktree-<branch>`)、是否裝依賴
3. **建立**:`git worktree add -b <branch> <path> <base-branch>`
4. **環境設定**:裝依賴(npm/pip 等,依專案)、複製 `.env.example` → `.env`(如存在)
5. **基線測試**:跑既有測試記錄基線 — 失敗時警告但不阻止建立(帶著已知紅燈開發,
之後才分得清是誰弄壞的)
6. **記錄**:在 worktree 根寫 `WORKTREE_INFO.md`(分支、base、路徑、基線結果)
## 收尾
開發完成後:
1. **先看 worktree 裡還剩什麼**:`git -C <path> status --porcelain --ignored`,每一行照下面的規則處理過再往下
(git 2.42.0 與 2.54.0 實測,2026-10-19)。`!!` 那幾行處理完還是會留在輸出裡,這是正常的:
- ` M`、`A ` 這類(還沒 commit 的變更)與 `??`(沒追蹤的檔):`git worktree remove` 會拒絕
(「包含修改或未追蹤的檔案,使用 --force 刪除」,英文是 `contains modified or untracked files, use --force to delete it`)。
**不要直接加 `--force`** —— 它會把這些連同下一種一起刪掉
…Read the whole file at its exact version.
How to install
mdr add kopp0510/claude-dd/worktree-manager@sha256:f198d754bd4685a4The line at the top of this page pins the label git:20261018.ee68e72, 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_a7uf5zi5mwf7hspu)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 9 versions of this file, between Feb 6, 2026 and Oct 18, 2026, about one every 32 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261018.ee68e72 latest | 2026-10-18 | ee68e72 | 4,262 B | A | view · diff |
| git:20261018.8514fb2 | 2026-10-18 | 8514fb2 | 3,731 B | A | view · diff |
| git:20261018.3c3e5ed | 2026-10-18 | 3c3e5ed | 3,311 B | A | view · diff |
| git:20260912.708b336 | 2026-09-12 | 708b336 | 2,526 B | A | view · diff |
| git:20260912.9ee3372 | 2026-09-12 | 9ee3372 | 2,365 B | A | view · diff |
| git:20260723.ee57bf2 | 2026-07-23 | ee57bf2 | 1,863 B | A | view · diff |
| git:20260708.bd33acd | 2026-07-08 | bd33acd | 4,904 B | A | view · diff |
| git:20260324.7248a15 | 2026-03-24 | 7248a15 | 4,515 B | A | view · diff |
| git:20260206.1f5ae2a | 2026-02-06 | 1f5ae2a | 4,504 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 (4262 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
kopp0510/claude-dd · 12 stars · license MIT · pushed 2026-10-30 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_a7uf5zi5mwf7hspu GET https://markdownregistry.com/api/v1/resolve?ref=kopp0510/claude-dd/worktree-manager GET https://markdownregistry.com/api/v1/blob/f198d754bd4685a448dc59c1703d557f5ce6c44833aa018c71a23d77c5250ceb
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 kopp0510/claude-dd
Every file in kopp0510/claude-dd