"Use for isolating substantial changes or new features by creating git worktree feature branches, Draft PRs, and sandbox testing before merging."
Install
npx skillscat add farstax/agent-bridge/git-sandbox Install via the SkillsCat registry.
SKILL.md
Git Sandbox and Feature Branch Isolation Workflow
Use this workflow to isolate large or complex changes from the main workspace to keep the working tree clean and enable validation before merging.
Workflow Steps
- Isolate Workspace: Create a feature branch and isolate the workspace using
git worktreeor framework-specific workspace branching.git worktree add ../worktree-name -b feature/name cd ../worktree-name - Commit Incremental Changes: Follow TDD by splitting test reproduction and implementation commits.
- Commit 1:
test: write failing test - Commit 2:
feat: implement fix
- Commit 1:
- Open Draft PR: Push the branch and open a Draft Pull Request using GitHub CLI (
gh).git push -u origin feature/name gh pr create --draft --fill - Merge and Cleanup: Once verified, merge the PR (squash-merge preferred), clean up the local worktree, and delete the branch.
gh pr merge --squash --delete-branch git checkout main git pull # Remove the worktree directory when done git worktree remove ../worktree-name