원클릭으로
setup-worktree
facilitate pre-implementation setups for worktree setup
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
facilitate pre-implementation setups for worktree setup
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Commit Changes in CI with no user interaction
first step of planning
convert structure outline into a detailed implementation plan
generate research questions based on a task, spec, or ticket
research the codebase
create a phased implementation plan based on research and design decisions
| name | setup-worktree |
| description | facilitate pre-implementation setups for worktree setup |
1a. if you have a ticket number, but no task directory in .humanlayer/tasks/, find the task dir and refetch the ticket file:
Bash(ls .humanlayer/tasks | grep eng-XXXX)
Bash(linear get-issue eng-XXXX > .humanlayer/tasks/eng-XXXX-description/ticket.md)
Read(.humanlayer/tasks/eng-XXXX-description/ticket.md)
check for a create_worktree.sh script:
Bash(ls scripts/create_worktree.sh)
if it is present, use the script:
You will need to know:
Bash(./scripts/create_worktree.sh BRANCHNAME)
The script will handle all setup of .env, etc.
if there is no script, do step 2b instead:
If no script was found use the collected info to create a worktree.
You will need to know:
username/, e.g.
fred/eng-1234-fix-ui -> eng-1234-fix-uiBash(rpi config --get worktree_base_path)
If not set, use ~/wt as defaultAsk the user if you are missing any of this information, and have them confirm it before proceeding.
<example_confirmation> I'm ready to create a worktree: BRANCHNAME: ... DIRNAME: ... REPONAME: ... WORKTREES_BASE: ... SETUP_COMMAND: UKNOWN
If you need any setup like npm install let me know and I can include it.
Then I will create worktree at [WORKTREES_BASE/REPONAME/DIRNAME] with
git worktree add -b [BRANCHNAME] [WORKTREES_BASE/REPONAME/DIRNAME]
cp .env* WORKTREE_PATH/ 2>/dev/null || true
cp .claude/settings.local.json WORKTREE_PATH/.claude/
cd WORKTREE_PATH && rpi init
[optional setup command here]
Let me know if you're ready or want to change anything. </example_confirmation>
Bash(git worktree add -b BRANCHNAME WORKTREES_BASE/REPONAME/DIRNAME)
e.g.
Bash(git worktree add -b fred/eng-1234-fix-ui ~/wt/webapp/eng-1234-fix-ui)
Then, copy the relevant files into the worktree
Bash(for f in .env*; do [ -f "$f" ] && cp "$f" WORKTREE_PATH/; done)
Bash(cp .claude/settings.local.json WORKTREE_PATH/.claude/)
Bash(cd WORKTREE_PATH && rpi init --directory REPONAME)
Bash(cd WORKTREE_PATH && make setup) # optional, might be npm install, or something else
<output_example> Worktree for ENG-XXXX has been configured. You can start implementation by running
use the implement-plan skill for task .humanlayer/tasks/eng-xxxx-description
in the WORKTREE_PATH directory
</output_example>