claude-worktree-manager

Automates Git worktree creation, setup, and cleanup for Claude Code.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/orient-bot/orient --skill claude-worktree-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-worktree-manager
Source: https://github.com/orient-bot/orient/tree/main/.claude/skills/claude-worktree-manager
Command: npx skills add https://github.com/orient-bot/orient --skill claude-worktree-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation, setup, and cleanup of isolated development environments (worktrees) specifically for Claude Code, streamlining the workflow for AI-assisted coding tasks.

Core Features & Use Cases

  • Automated Worktree Creation: Generates new Git worktrees with smart naming, automatically fetching the latest code.
  • Environment Setup: Copies .env and Claude settings, and optionally runs pnpm install and database seeding in the background.
  • Model Configuration: Allows specifying Claude models (opus, sonnet, haiku) for each worktree and includes verification steps.
  • Isolated Databases: Supports creating isolated SQLite databases for testing schema changes or migrations.
  • Cleanup: Automatically removes stale worktrees to keep the development environment tidy.
  • Ghostty Integration: Seamlessly opens new worktrees in Ghostty terminal tabs with pre-filled Claude commands.
  • Discovery-First Workflow: Integrates with a /discover skill to create implementation plans and then generate worktrees based on those plans.

Quick Start

Use the claude-worktree-manager skill to create a new worktree named 'feature-x' with the 'opus' model.

Frequently Asked Questions about claude-worktree-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up isolated Git worktrees for AI-assisted development sessions?

You can set up isolated Git worktrees by using an automation tool that generates new worktrees, copies `.env` and Claude settings, and optionally runs `pnpm install` and database seeding in the background.

Can I specify different Claude models like opus or sonnet for each worktree?

Yes, you can specify Claude models such as `opus`, `sonnet`, or `haiku` for each worktree during creation, and the setup includes verification steps to ensure the selected model is configured correctly.

How do I create isolated SQLite databases for testing schema changes in a worktree?

Isolated SQLite databases for testing schema changes or migrations are created automatically during the worktree setup process, ensuring your testing environment remains completely separate from your main development database.

Does Git worktree automation work with the Ghostty terminal?

Yes, Git worktree automation integrates seamlessly with Ghostty, automatically opening new worktrees in dedicated terminal tabs with pre-filled Claude commands to start your AI coding session immediately.

How do I automatically clean up stale Git worktrees?

Stale Git worktrees are automatically removed through the cleanup feature, which detects and deletes outdated isolated environments to keep your development workspace tidy and prevent disk clutter.

What is a discovery-first workflow for AI coding tasks?

A discovery-first workflow integrates with a `/discover` skill to create detailed implementation plans first, then automatically generates Git worktrees based on those plans to guide your AI-assisted coding sessions.