.claude/skills/setup-worktree/SKILL.md
facilitate pre-implementation setups for worktree setup
npx skillsauth add harivansh-afk/rpi setup-worktreeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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>
documentation
iterate on structure outline based on user feedback. if given a path to a document in .humanlayer/tasks/*/*-structure-outline.md, use this skill.
documentation
iterate on research document based on user feedback. This skill requires a path to a document and feedback from the human
documentation
iterate on .humanlayer/tasks/*/*-research-questions.md doc based on user feedback.
databases
iterate on implementation plan based on user feedback