AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Using Git Worktrees

skill-himmelreich-it-agent-skill-converter-using-git-worktrees · by himmelreich-it

Use when starting feature work that needs isolation or before executing implementation plans. Creates isolated git worktrees with safety verification.

— No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-himmelreich-it-agent-skill-converter-using-git-worktrees

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-himmelreich-it-agent-skill-converter-using-git-worktrees)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
○ 6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Using Git Worktrees? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Using Git Worktrees

Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.

Core principle: Systematic directory selection + safety verification = reliable isolation.

Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."

Directory Selection Process

Follow this priority order:

1. Check Existing Directories

Check for .worktrees (preferred) or worktrees in the project root. If found, use that directory.

2. Check Guidelines

Check CLAUDE.md or other project guidelines for worktree preferences. If specified, use it.

3. Ask User

If no directory is found and no preference is specified, ask the user: "No worktree directory found. Where should I create worktrees?

  1. .worktrees/ (project-local, hidden)
  2. ~/.config/junie/worktrees// (global location)

Which would you prefer?"

Safety Verification

For Project-Local Directories

MUST verify directory is ignored before creating worktree: git check-ignore -q .worktrees

If NOT ignored:

  1. Add the directory to .gitignore.
  2. Commit the change with the Junie co-authored trailer.
  3. Proceed with worktree creation.

Why critical: Prevents accidentally committing worktree contents to the repository.

Creation Steps

1. Create Worktree

  1. Determine the branch name.
  2. Create the worktree: git worktree add -b
  3. Change directory to the new worktree: cd

2. Run Project Setup

Auto-detect and run appropriate setup (e.g., npm install, pip install -e ., uv sync).

Key Benefits

  • Isolation - No accidental changes to your current branch.
  • Speed - No need to stash/unstash when switching tasks.
  • Parallelism - Work on multiple tasks at once in different worktrees.

Remember

  • Always check .gitignore first.
  • Follow project setup conventions in the new worktree.
  • Inform the user of the new worktree path.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.