Run a separate Claude instance in a git worktree to handle long-running tasks in the background.

Install

mkdir -p .claude/skills/worktree-spawn && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3170" && unzip -o skill.zip -d .claude/skills/worktree-spawn && rm skill.zip

Installs to .claude/skills/worktree-spawn

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Spawn an independent Claude instance in a git worktree to work on a task in parallel. Use when the user wants to delegate a task to run independently while continuing the current conversation.
192 chars✓ has a “when” trigger
Advanced

Key capabilities

  • →Create git worktrees
  • →Spawn independent agent instances
  • →Execute parallel tasks
  • →Manage branch-based task isolation

How it works

The skill creates a new git worktree and initializes a separate agent instance, allowing the user to delegate tasks to run in parallel while maintaining the current session.

Inputs & outputs

You give it
Task description
You get back
Independent agent process in a worktree

When to use worktree-spawn

  • →Delegate bug investigation
  • →Run background refactoring
  • →Parallelize feature development

About worktree-spawn

This skill creates a new git worktree and initializes a separate agent instance to perform a task. This allows the user to continue working in their current session while the background task completes.

Spawn an independent Claude instance in a git worktree to work on a task in parallel. Use when the user wants to delegate a task to run independently while continuing the current conversation.

When not to use it

  • →Tasks requiring interaction with the current session

Prerequisites

git

Limitations

  • →Requires git worktree support
  • →Task must be independent of current session

How it compares

It enables true parallel task execution by isolating the agent environment in a separate git worktree.

Compared to similar skills

worktree-spawn side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
worktree-spawn (this skill)17moReviewAdvanced
tmux204moReviewIntermediate
jira118moNo flagsBeginner
triaging-issues54moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry