tmchow/tmc-marketplace/git-worktree

Claude Code and agent skill by tmchow/tmc-marketplace

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Internal skill for workspace isolation. Detects current git state and offers worktree/branch options. Called by iterative:implementing, not user-invocable.

Install

npx vskill@latest install tmchow/tmc-marketplace/git-worktree

SKILL.md

Git Worktree (Workspace Isolation)

Ensures agent has an isolated workspace to avoid conflicts with human work.

When Called

  • At the start of iterative:implementing skill
  • At the start of feature work requiring isolation from the current branch
  • When workspace isolation is needed
  • Not directly invocable by users

Workflow

  1. Sync with remote. Pull latest from default branch.
  2. Detect current state. Check if in worktree (git rev-parse --git-dir contains /worktrees/), get current branch (git branch --show-current), get default branch (git remote show origin | grep "HEAD branch").
  3. Choose workspace based on current state:
  • Already in worktree: confirm it's for this feature, then proceed
  • On default branch: ask the user — A) Create worktree (recommended), B) Create branch, C) Continue on main (requires explicit consent)
  • On feature branch: ask the user — A) Continue on this branch, B) Create new worktree
  1. Execute choice. If worktree: git worktree add ../[repo]-[branch] -b [branch]. If new branch: git checkout -b [branch-name]. If continue: proceed.
  2. Verify. Report: "Ready on branch [name] in [directory]"

Worktree Creation

When creating a worktree:

  1. Generate branch name from feature/task context
  2. Create worktree: git worktree add ../[repo]-[branch] -b [branch]
  3. Copy necessary files (.env, etc.) if they exist
  4. Verify worktree is functional

Output

Returns to calling skill:

  • Branch name
  • Directory path (if worktree created)
  • Isolation status confirmed

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tmchow/tmc-marketplace/git-worktree/badge)](https://verified-skill.com/skills/tmchow/tmc-marketplace/git-worktree)

Something wrong with this skill or its page? Tell us.