What problem does it solve?
This Skill prevents accidental code contamination and ensures a clean, isolated environment for feature development, bug fixes, and refactoring, safeguarding the main branch.
Core Features & Use Cases
- Git Worktree Management: Creates isolated, branch-specific workspaces that share the same repository.
- Smart Directory Selection: Intelligently chooses where to create worktrees based on project conventions or user preference.
- Safety Verification: Ensures worktree directories are ignored by Git before creation to prevent accidental commits.
- Automated Project Setup: Runs necessary dependency installations (npm, pip, cargo, etc.) within the new worktree.
- Baseline Test Verification: Executes project tests to confirm a clean starting state.
- Use Case: Before starting a new feature like "user authentication," you'd use this Skill to set up a dedicated, clean workspace, ensuring your work doesn't interfere with ongoing development or the main branch.
Quick Start
Use the workspace-isolation skill to set up an isolated workspace for the 'feature/user-profile' branch.