setup-worktree
Create an isolated worktree with safety checks and a clean baseline.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Create an isolated worktree with safety checks and a clean baseline.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Step-by-step teaching mode for implementation guidance. Use when the user asks Codex to teach them how to implement a change themselves, says "use instruct", "teach me step by step", "walk me through implementing", "show me incrementally", or otherwise wants guidance-first coding help instead of Codex directly editing files.
Guidance for designing, writing, reviewing, or refactoring tests in this project. Use when adding tests for features or bugs, deciding unit vs integration boundaries, choosing what to mock, improving test structure, or reducing brittle/slow/flaky tests.
Turn a rough idea into a reviewed design spec before any implementation.
Debug issues using a structured, evidence-first process.
Execute a written implementation plan in this session with checkpoints.
Execute a written implementation plan task-by-task using pi subagents with review gates.
| name | setup-worktree |
| description | Create an isolated worktree with safety checks and a clean baseline. |
| disable-model-invocation | true |
You are running the setup-worktree skill. This is a manual workflow for creating an isolated workspace.
If the skill was invoked with arguments, treat them as the feature or branch name if applicable.
Create an isolated git worktree with the right directory, safety checks, project setup, and a verified clean baseline.
Choose the location in this order:
.worktrees/ if it existsworktrees/ if it existsCLAUDE.md or local project docsIf both .worktrees/ and worktrees/ exist, prefer .worktrees/.
If using .worktrees/ or worktrees/, verify the directory is ignored before creating the worktree.
Use a check like:
git check-ignore -q .worktrees || git check-ignore -q worktrees
If the directory is not ignored:
.gitignore entry neededAfter selecting the directory:
Run the setup appropriate to the repo.
Examples:
npm install, pnpm install, or project equivalentuv sync, poetry install, or project equivalentgo mod downloadcargo build or dependency fetch as appropriateUse the repo's actual tooling. Do not invent setup steps.
Run the relevant test command to confirm the worktree starts from a known-good baseline.
If tests fail:
If tests pass, report that the worktree is ready.
Report:
If there is any ambiguity about location or branch naming, ask instead of guessing.