Back to list
ex-machina-co

git-worktree

by ex-machina-co

OpenCode plugin for Orca + Specialists agent orchestration

1🍴 0📅 Jan 21, 2026

SKILL.md


name: git-worktree description: Git worktree workflow helpers for parallel development on multiple branches

Git Worktree Workflow

Worktrees enable working on multiple branches simultaneously without stashing or switching.

Branch Naming Convention

Use semantic prefixes based on the type of work:

PrefixUse WhenExample
feat/New functionality, enhancements, additionsfeat/user-auth
fix/Bug fixes, corrections, repairsfix/login-redirect
enhancement/Maintenance, dependencies, config updatesenhancement/update-deps
refactor/Code restructuring without behavior changerefactor/api-handlers
docs/Documentation onlydocs/api-reference
test/Adding or updating teststest/auth-coverage
ci/CI/CD pipeline changesci/github-actions
style/Formatting, whitespace (no code change)style/lint-fixes
perf/Performance improvementsperf/query-optimization

Layout

opencode-orca/
├── worktrees/                  # Worktree container (gitignored)
│   ├── feat-login/             # Branch: feat/login
│   └── fix-build/              # Branch: fix/build
├── src/
└── ...

Commands

CommandDescription
bun run wt:new <branch> [base]Create worktree (auto bun install)
bun run wt:listList all worktrees
bun run wt:rm <dirname>Remove worktree and prune

Examples

# Create new feature branch from main
bun run wt:new feat/auth

# Create hotfix from production tag
bun run wt:new hotfix/urgent v1.2.0

# Attach to existing branch
bun run wt:new existing-branch

# List worktrees
bun run wt:list

# Remove worktree (by folder name)
bun run wt:rm feat-auth

Updating a Worktree from Main

When main has new commits you want in your feature branch:

cd worktrees/feat-login

# Fetch latest
git fetch origin

# Merge
git merge origin/main

Or from anywhere using -C:

git -C worktrees/feat-login fetch origin
git -C worktrees/feat-login merge origin/main

Notes

  • Branch names are sanitized: feat/loginfeat-login folder
  • Dependencies are installed automatically on creation
  • Each worktree is independent — no shared node_modules with the main repo

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon