Agent skill
ac-workspace-manager
Manage git worktrees for isolated development. Use when creating isolated workspaces, managing parallel development, handling worktree lifecycle, or merging completed work.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/ac-workspace-manager
SKILL.md
AC Workspace Manager
Manage git worktrees for isolated autonomous development.
Purpose
Provides workspace isolation using git worktrees, enabling parallel development and safe rollback without affecting the main branch.
Quick Start
from scripts.workspace_manager import WorkspaceManager
manager = WorkspaceManager(project_dir)
worktree = await manager.create_worktree("feature-auth")
await manager.merge_completed(worktree)
Worktree Strategy
main branch (stable)
│
├── .worktrees/
│ ├── build-001/ ← Isolated worktree
│ ├── build-002/ ← Another build
│ └── build-003/ ← Parallel work
│
└── project files
Workflow
- Create: New worktree from main branch
- Develop: All changes in isolated workspace
- Review: Review changes before merge
- Merge: Merge back to main
- Cleanup: Remove worktree
API
# Create new worktree
worktree = await manager.create_worktree("build-001")
# Get current worktree
current = await manager.get_current_worktree()
# List all worktrees
worktrees = await manager.list_worktrees()
# Merge completed work
await manager.merge_completed(worktree)
# Cleanup worktree
await manager.cleanup_worktree(worktree)
Integration
- Used by:
ac-session-managerfor session isolation - Uses:
ac-checkpoint-managerfor rollback points
API Reference
See scripts/workspace_manager.py for full implementation.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?