setup-worktree
Create an isolated worktree with safety checks and a clean baseline.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create an isolated worktree with safety checks and a clean baseline.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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.