# Use Worktree

> Create an isolated Git worktree and run repository setup.

- Skill: `andiedie/use-worktree` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add andiedie/use-worktree`
- Raw SKILL.md: https://api.skillmd.com/api/skills/andiedie/use-worktree/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Andiedie (https://skillmd.com/u/andiedie)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/andiedie/use-worktree

---


Create `.worktrees/<name>` and a same-named branch from the current `HEAD`. Use the caller's name, or generate a legal random name.

Run the repository's recorded setup in the new worktree. If setup fails, keep the worktree and branch.

