worktree-resolve
SolidResolve and merge git worktrees after swarm completion
AI & Automation 18 stars
5 forks Updated 2 days ago MIT
Install
Quality Score: 83/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Worktree Resolution
**Recommended model tier:** balanced (sonnet) - this skill performs straightforward operations
Merge all swarm worktrees back into the main branch after testing.
## Workflow
### 1. List Active Worktrees
```bash
git worktree list
```
Check the AIDE worktree state file for metadata and status:
```bash
cat .aide/state/worktrees.json
```
**Worktree Status Values:**
- `active` - Agent is still working on this worktree
- `agent-complete` - Agent finished, ready for merge review
- `merged` - Successfully merged to main
**Only merge worktrees with status `agent-complete`.**
Example state file:
```json
{
"active": [
{
"name": "story-auth",
"path": ".aide/worktrees/story-auth",
"branch": "feat/story-auth",
"taskId": "story-auth",
"agentId": "agent-auth",
"status": "agent-complete",
"createdAt": "2026-02-07T...",
"completedAt": "2026-02-07T..."
}
],
"baseBranch": "main"
}
```
### 2. For Each Worktree Branch
Run these steps for every `feat/*` branch from swarm:
#### a) Test the Branch
```bash
# Checkout the worktree
cd .aide/worktrees/<name>
# Run tests
npm test # or appropriate test command
# Run linting
npm run lint # or appropriate lint command
# Check build
npm run build # if applicable
```
#### b) Review Changes
```bash
# Back in main repo
git log main..feat/<name> --oneline
git diff main...feat/<name> --stat
```
#### c) Check Merge Compatibility
```bash
# Dry-run merge chec...
Details
- Author
- jmylchreest
- Repository
- jmylchreest/aide
- Created
- 7 months ago
- Last Updated
- 2 days ago
- Language
- Go
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
worktree-merge
Cleans up a worktree after its branch has been merged: removes the worktree directory and deletes the local branch. Use when the user says '/worktree-merge' or asks to clean up a merged worktree.
17 Updated today
domengabrovsek AI & Automation Solid
squad-worktree-lifecycle
Handle ai-agent-board git worktree and merge flows safely.
60 Updated 6 days ago
DanWahlin