using-git-worktrees Skill
Creates and manages isolated Git worktrees for parallel agents, risky experiments, or long-running feature work while preserving the user's current checkout. Use before concurrent branch edits or when isolation makes rollback safer. Not for a trivial one-file change that is already isolated.
- GitHub Stars
- 100
- Dateien
- 1
- Letzter Commit
- 26. Aug. 2026
- Lizenz
- MIT
- Erlaubte Tools
- —
Was macht der using-git-worktrees Skill?
using-git-worktrees ist ein Agent Skill. Creates and manages isolated Git worktrees for parallel agents, risky experiments, or long-running feature work while preserving the user's current checkout. Use before concurrent branch edits or when isolation makes rollback safer. Not for a trivial one-file change that is already isolated.
So installierst du den using-git-worktrees Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den using-git-worktrees Skill in Plugin installieren
/plugin marketplace add thiientv/godmode /plugin install godmode@godmode
Den using-git-worktrees Skill in Claude Code installieren
~/.claude/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.claude/skills/using-git-worktreesDen using-git-worktrees Skill in Claude Code (project) installieren
.claude/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees .claude/skills/using-git-worktreesDen using-git-worktrees Skill in Codex installieren
~/.agents/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.agents/skills/using-git-worktreesDen using-git-worktrees Skill in Gemini CLI installieren
~/.gemini/skills/using-git-worktrees/SKILL.md
$ npx degit thiientv/godmode/skills/using-git-worktrees ~/.gemini/skills/using-git-worktreesDen using-git-worktrees Skill in Claude.ai installieren
npx degit thiientv/godmode/skills/using-git-worktrees using-git-worktrees && zip -r using-git-worktrees.zip using-git-worktrees # claude.ai → Customize → Skills → + → Create skill → Upload a skill → using-git-worktrees.zip
SKILL.md
Auf GitHub ansehenUsing Git Worktrees
Isolation is a safety boundary, not a way to hide unreviewed changes.
Before creating one
- Inspect
git status, current branch, repository root, and existing worktrees. - Preserve uncommitted user work; never reset, checkout, or clean it away.
- Choose an explicit branch name and a worktree path outside the main working tree when practical.
- Confirm the base ref and whether ignored/generated files are needed.
Create safely
git worktree list
git worktree add ../<repo>-<task> -b <task-branch> <base-ref>
Run repository setup in the new worktree, record the exact base commit, and keep secrets and local environment files out of the branch. Do not use the same worktree for two writers.
Finish or discard
- Review and test the branch before integrating it.
- Merge or cherry-pick only the intended commits after checking the diff.
- Remove a disposable worktree only after confirming its commits and needed artifacts are preserved:
git worktree remove ../<repo>-<task>
git worktree prune
Do not force removal when it contains unreviewed work. If a worktree is stale, inspect its branch and status before deciding whether it is recoverable.
Completion condition
The branch's base, ownership, integration path, and cleanup decision are explicit; the main checkout remains intact.
Dateien in diesem Skill
1using-git-worktrees Skill-Fragen
Wie installiere ich den using-git-worktrees Skill in Claude Code?
Führe npx degit thiientv/godmode/skills/using-git-worktrees ~/.claude/skills/using-git-worktrees aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den using-git-worktrees Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.