git-worktree
SolidAuto-create git worktrees for workflows. Isolate changes, merge on success, discard on failure.
Code & Development 24 stars
3 forks Updated 1 weeks ago MIT
Install
Quality Score: 83/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
> **AI-consumed reference.** Optimized for Claude to read during execution.
> Human-readable explanation: see [docs/architecture/HIERARCHICAL_PLANNING.md](../../../docs/architecture/HIERARCHICAL_PLANNING.md)
> or [docs/getting-started/](../../../docs/getting-started/) depending on topic.
# Git Worktree Integration
Auto-create git worktree when starting a workflow. All changes on isolated branch. Discard on failure -- zero damage to main.
---
## When to Use
- **Auto:** `/run` when `AF_WORKTREE=true`
- **Manual:** User says "use a worktree"
- **Skip:** Quick fixes, config changes, single-file edits
---
## Lifecycle
```toon
worktree_lifecycle[5]{event,action}:
run:start,"git worktree add .worktrees/[id] -b af/[id]"
Phase 1 approved,All edits in worktree directory
Phase 5 complete,"Offer: merge / create PR / keep branch / discard"
run:cancel,"git worktree remove .worktrees/[id]"
run failed,Discard worktree — main untouched
```
---
## Configuration
```bash
export AF_WORKTREE=true
export AF_WORKTREE_DIR=".worktrees" # default
```
Add `.worktrees/` to `.gitignore`.
---
## Safety
```toon
safety[4]{rule,reason}:
Never force-delete with uncommitted changes,User may lose work
Always offer merge/PR/keep/discard,User decides
Auto-discard only on explicit cancel/failure,Don't assume
Checkpoint commits before discarding,Last chance to recover
```
Works with `phase-checkpoint.cjs` -- checkpoints are commits on worktree branch, main never affected until exp...
Details
- Author
- nguyenthienthanh
- Repository
- nguyenthienthanh/aura-frog
- Created
- 9 months ago
- Last Updated
- 1 weeks ago
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Solid
git-worktree
Manage Git worktrees for isolated parallel development. Use when creating, listing, switching, or cleaning up git worktrees, or when needing isolated branches for concurrent reviews or feature work.
41 Updated 3 days ago
iliaal AI & Automation Featured
git-worktree
Create isolated git worktrees for feature development without switching branches
5,950 Updated yesterday
FlorianBruniaux AI & Automation Listed
git-worktrees
Using git worktrees for parallel development. Trigger when the user wants to work on multiple branches simultaneously, do parallel dev, or manage worktrees.
5 Updated today
christopherlouet