Auto-Claude workspace and git worktree management. Use when reviewing changes, merging builds, managing branches, or understanding isolation strategy.
Install
npx skillscat add adaptationio/skrillz/auto-claude-workspace Install via the SkillsCat registry.
The skill manages isolated git worktrees for Auto-Claude, allowing developers to review, test, merge, or discard changes in separate workspaces without affecting the main branch. It is used when handling multiple feature specifications, merging builds, or verifying isolation before committing.
Auto-Claude Workspace Management
Git worktree isolation, branch management, and merge operations.
Workspace Architecture
Git Worktree Strategy
Auto-Claude uses git worktrees for complete isolation:
project-root/
├── .git/ # Main git directory
├── src/ # Your project files
├── .auto-claude/ # Auto-Claude data
│ └── specs/ # Spec definitions
└── .worktrees/ # Isolated workspaces
└── auto-claude/
└── 001-feature/ # Feature worktree
├── src/ # Copy of project
└── ... # Changes made hereBranch Strategy
main (or your current branch)
└── auto-claude/{spec-name} # Isolated branch per specKey Principles:
- ONE branch per spec
- All changes in isolated worktree
- NO automatic pushes to remote
- User controls when to merge/push
Workspace Operations
Review Changes
cd apps/backend
# Review what was built
python run.py --spec 001 --reviewOutput shows:
- Files changed
- Additions/deletions
- Commit history
Test in Worktree
# Navigate to worktree
cd .worktrees/auto-claude/001-feature/
# Run your project
npm run dev
# or
python manage.py runserver
# or your project's run command
# Test the feature
# ...
# Return to backend
cd ../../apps/backendMerge Changes
# Merge completed build into your project
python run.py --spec 001 --mergeThis:
- Checks for conflicts
- Merges
auto-claude/001-featureinto current branch - Uses AI resolver for conflicts (if any)
- Cleans up worktree
Discard Build
# Discard if you don't want the changes
python run.py --spec 001 --discardThis:
- Asks for confirmation
- Deletes worktree
- Deletes branch
- Keeps spec for reference (optional)
Manual Worktree Operations
Create Worktree Manually
# Create new worktree
git worktree add .worktrees/experiment -b experiment-branch
# Work in it
cd .worktrees/experiment
# make changes...
# Return and cleanup
cd ../..
git worktree remove .worktrees/experimentList Worktrees
git worktree listPrune Stale Worktrees
# Remove worktrees for deleted directories
git worktree pruneConflict Resolution
AI-Powered Merge
Auto-Claude uses AI to resolve merge conflicts:
- Detection: Identifies conflicting files
- Analysis: Understands both versions
- Resolution: Merges intelligently
- Verification: Validates result
Manual Resolution
If AI merge fails:
# Navigate to worktree
cd .worktrees/auto-claude/001-feature/
# Attempt manual merge
git merge main
# Resolve conflicts in your editor
code .
# Complete merge
git add .
git commit -m "Resolved merge conflicts"
# Return and complete
cd ../../apps/backend
python run.py --spec 001 --mergeBranch Management
View Branches
# List all branches
git branch -a
# See auto-claude branches
git branch | grep auto-claudeDelete Old Branches
# Delete local branch
git branch -d auto-claude/old-feature
# Delete remote branch (if pushed)
git push origin --delete auto-claude/old-featureSwitch Base Branch
# Set default base branch in .env
echo "DEFAULT_BRANCH=develop" >> apps/backend/.envWorkspace Data
Worktree Metadata
# View worktree info
cat .auto-claude/specs/001-feature/worktree.json{
"worktree_path": ".worktrees/auto-claude/001-feature",
"branch_name": "auto-claude/001-feature",
"base_branch": "main",
"created_at": "2024-01-01T10:00:00Z",
"status": "active"
}Build Isolation
Each worktree is completely isolated:
- Separate working directory
- Own git index
- Independent node_modules (if needed)
- No interference with main branch
Best Practices
Before Merging
Review changes thoroughly
python run.py --spec 001 --reviewTest in worktree
cd .worktrees/auto-claude/001-feature/ npm test npm run buildCheck for conflicts
git diff main...auto-claude/001-feature
After Merging
Run full test suite
npm testVerify functionality
npm run dev # Test manuallyCommit and push when ready
git push origin main
Cleanup Old Worktrees
# List and remove old worktrees
git worktree list
git worktree remove .worktrees/auto-claude/old-feature
# Or use discard command
python run.py --spec old --discardTroubleshooting
Worktree Already Exists
# Remove existing worktree
git worktree remove .worktrees/auto-claude/001-feature
# Retry build
python run.py --spec 001Branch Already Exists
# Delete existing branch
git branch -D auto-claude/001-feature
# Retry build
python run.py --spec 001Merge Conflicts
# Manual resolution
cd .worktrees/auto-claude/001-feature/
git merge main --no-commit
# Resolve each file
git status
code path/to/conflicted/file
# Complete
git add .
git commit
cd ../../apps/backendCorrupted Worktree
# Remove and recreate
git worktree remove --force .worktrees/auto-claude/001-feature
git worktree prune
# Delete spec and restart
rm -rf .auto-claude/specs/001-feature
python spec_runner.py --task "Your task"Related Skills
- auto-claude-cli: CLI commands
- auto-claude-build: Build process
- auto-claude-troubleshooting: Debugging