packages/forge/src/skills/soleri-using-git-worktrees/SKILL.md
Triggers: "worktree", "parallel branch", "safe branch", "isolated branch". Protocol for creating, working in, and cleaning up git worktrees.
npx skillsauth add adrozdenko/soleri soleri-using-git-worktreesInstall 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.
Isolate work into parallel branches without stashing or switching. Use for multi-task plans, risky changes, or parallel execution. Claude Code natively supports isolation: "worktree" on sub-agents.
Announce at start: "I'm using the using-git-worktrees skill to isolate this work."
YOUR_AGENT_core op:search_intelligent
params: { query: "worktree parallel execution patterns" }
# 1. Pre-flight — working tree must be clean
git status
git log origin/main..main # check for unpushed commits
# 2. Create worktree
git worktree add ../<repo>-<task> -b <branch-name>
cd ../<repo>-<task>
# 3. Bootstrap and baseline
npm install # shared .git does NOT share node_modules
npm test # must pass before any changes
If the working tree is dirty, commit or stash first. If baseline tests fail, stop and investigate.
.git)git worktree list to see all active worktrees# 1. Safety check — never delete with unpushed/uncommitted work
git log origin/<branch>..<branch> # unpushed commits?
git diff --stat # uncommitted changes?
# 2. Merge or discard
git merge <branch-name> # from main worktree
# OR: git branch -D <branch-name> # only if work is abandoned
# 3. Remove and verify
git worktree remove ../<repo>-<task>
git worktree prune
git worktree list # confirm removal
git worktree removenpm install in new worktree| Action | Command |
| -------------- | ------------------------------------------------ |
| Create | git worktree add ../<name> -b <branch> |
| List | git worktree list |
| Remove | git worktree remove ../<name> |
| Prune | git worktree prune |
| Check unpushed | git log origin/<branch>..<branch> |
| Claude Code | Sub-agent with isolation: "worktree" parameter |
Related skills: executing-plans, parallel-execute
YOUR_AGENT_core op:capture_quick
params: { title: "<what was learned>", tags: ["worktree", "parallel-execution"] }
| Op | When to Use |
| -------------------- | --------------------------------- |
| search_intelligent | Check vault before starting |
| capture_quick | Fast capture for simple learnings |
testing
Triggers: "terse mode", "be brief", "less tokens", "fewer tokens", "compress output", "caveman", or invokes /terse. Token-efficient responses with full technical accuracy.
tools
Triggers: "compress this file", "compress CLAUDE.md", "compress memory", "shrink this", "reduce tokens in file", or invokes /compress. Compresses natural language files to save input tokens.
testing
Triggers: "release", "bump version", "publish packages", "cut a release", "version bump", "npm publish". Bumps monorepo versions, commits, tags, pushes to trigger CI release. Use deliver-and-ship for quality gates.
development
Triggers: "implement X", "build Y", "fix Z", "add feature", or any work task needing planning + execution. Full orchestration loop: plan, execute, complete with vault context and brain recs.