From company
Git worktree decision framework for parallel feature development. Use when planning sprints or engineering work with independent features.
How this skill is triggered — by the user, by Claude, or both
Slash command
/company:worktreeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Goal**: Single sentence description of what this skill provides or enables.
Goal: Single sentence description of what this skill provides or enables.
Inputs:
Steps:
Checks:
Stop Conditions:
Recovery:
Reference for agents that coordinate parallel feature development.
Suggest worktrees when ANY of these conditions apply:
Multi-feature sprints with independent tasks - Features that don't share code paths or dependencies
Large refactors with decoupled subsystems - Different subsystems can be modified in isolation
Phased work with parallel opportunities - Early phases could run simultaneously
Multiple engineers or agent instances - Concurrent work on different features
Look for these patterns in plans or requests:
┌─────────────────────────────────────────────────────┐
│ Is there more than one independent feature? │
│ │
│ NO → Standard single-branch workflow │
│ YES ↓ │
├─────────────────────────────────────────────────────┤
│ Do features share code paths or dependencies? │
│ │
│ YES → Sequential work (resolve conflicts early) │
│ NO ↓ │
├─────────────────────────────────────────────────────┤
│ Is isolation worth the setup overhead? │
│ │
│ < 2 features → Probably not worth it │
│ >= 2 features → Suggest worktrees ✓ │
└─────────────────────────────────────────────────────┘
When suggesting worktrees to the user:
"This plan has N parallel tasks with no dependencies between them.
Set up worktrees for isolated development?"
If user agrees, provide commands:
# First time setup
mkdir -p .worktrees
grep -q "^.worktrees/$" .gitignore || echo ".worktrees/" >> .gitignore
# Create worktrees for each feature
git worktree add .worktrees/[feature-1] -b feat/[feature-1]
git worktree add .worktrees/[feature-2] -b feat/[feature-2]
| Action | Command |
|---|---|
| List worktrees | git worktree list |
| Create worktree | git worktree add .worktrees/[name] -b feat/[name] |
| Remove worktree | git worktree remove .worktrees/[name] |
| Prune stale | git worktree prune |
This skill is loaded by:
Worktree management itself (creation, listing, removal) should be handled directly by the agent using Bash commands. This skill only provides the decision framework for when to suggest worktrees.
npx claudepluginhub oh-context-design/workspace-company-marketplace --plugin companyCreates isolated Git worktrees for parallel development, risky refactoring, or multi-feature work without branch switching or conflicts.
Creates isolated git worktrees for parallel development without disrupting the main workspace. Includes safety verification to prevent accidental commits of worktree contents.
Manages git worktrees for parallel feature development. Automates creation, switching, and merging of worktrees for multi-feature workflows.