Loading...
Loading...
Use when starting feature work that needs isolation - creates a temporary branch for implementation work with safety verification
npx skill4agent add mowgliph/everything-agents-skills using-git-worktrees# Format: feature/<task-name> or fix/<issue-name>
branch_name="feature/$(echo "$TASK" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | cut -c1-50)"# Check for uncommitted changes
git status --porcelain# Create new branch from current HEAD
git checkout -b "$branch_name"# Confirm current branch
git branch --show-currentTemporary branch created: $branch_name
Ready to implement: $TASK| Situation | Action |
|---|---|
| Clean working directory | Create branch directly |
| Uncommitted changes | Stash/commit first OR warn and proceed |
| Branch exists | Append timestamp or ask for different name |
git status --porcelaingit branch --show-currentYou: I'm using the using-git-worktrees skill to create a temporary branch.
[Check git status - clean]
[Create branch: git checkout -b feature/subscription-user-id-uuid]
[Verify: git branch --show-current outputs "feature/subscription-user-id-uuid"]
Temporary branch created: feature/subscription-user-id-uuid
Ready to implement: Fix SubscriptionPlan user_id from int to UUID