Agent skill
git-worktrees
Create, list, and remove git worktrees for parallel agent work. Use when you need isolated workdirs, new worktree branches, or safe cleanup workflows.
Install this agent skill to your Project
npx add-skill https://github.com/JoernStoehler/ai-forecasting-hackathon/tree/main/.claude/skills/git-worktrees
SKILL.md
Git Worktrees
Canonical path
All worktrees go in /workspaces/worktrees/. This is a bind mount configured in devcontainer.json.
Example: /workspaces/worktrees/materials-authoring
Use the project scripts
- Create:
scripts/worktree-new.sh /workspaces/worktrees/<name> <branch> [--force] - Remove:
scripts/worktree-remove.sh /workspaces/worktrees/<name> [--force] - List:
git worktree list
Notes
- The scripts validate the repo state and install npm deps after creation.
- Use
--forceonly when you understand the safety checks you are bypassing. - Cleanup order: remove the worktree first, then delete the branch.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
orchestrate-subagents
Orchestrate parallel and/or sequential subagents working in separate git worktrees to deliver PR(s). Use when bundling multiple related GitHub issues into a single task, running best-of-3 identical attempts, monitoring runs, selecting the best PR, and closing/cleaning up the rest.
write-skills
Create or update SKILL.md files for this repo. Use when authoring skills in .claude/skills/.
write-gh-issues-prs
[DEPRECATED] This skill is no longer used. Feature tracking has migrated to PROJECT.md.
maintain-environment
Maintain the repo devcontainer environment and related workflow files. Use when changing .devcontainer or environment setup scripts.
ui-development
Autonomous screenshot-based UI development workflow for React/Tailwind webapps. Use when (1) implementing new UI components or pages, (2) modifying existing visual elements or styles, (3) fixing visual bugs or dark mode issues, (4) updating layouts or responsive design, (5) changing colors, typography, or spacing. Always triggers for CSS/styling work and React component visual changes.
devops-scripts
Write or update repository devops scripts with this project's conventions. Use when creating or modifying shell scripts in scripts/ or packages/*/scripts.
Didn't find tool you were looking for?