setup-repo

Create a multi-worktree Git repository layout with main, reviews, and feature branches.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/ghpworkuse-web/train --skill setup-repo-ghpworkuse-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-repo
Source: https://github.com/ghpworkuse-web/train/tree/main/AutoGPT/.claude/skills/setup-repo
Command: npx skills add https://github.com/ghpworkuse-web/train --skill setup-repo-ghpworkuse-web

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize a multi-worktree repo layout from a freshly cloned repository. Creates a main worktree, a reviews worktree for PR reviews, and N numbered work branches, streamlining parallel development and environment bootstrap.

Core Features & Use Cases

  • Automated workspace layout: sets up main, reviews, and N branches as separate worktrees.
  • Branch and environment bootstrap: creates and tracks branches, configures branchlet, and optionally prepares .env setups.
  • On-demand environment setup: assists with env copy from source repo to worktrees and dependency installation steps.
  • Use Case: When starting a new feature, bootstrap a dedicated worktree and branch to work in parallel without disrupting main.

Quick Start

Instruct the AI to bootstrap a multi-worktree repo layout from a freshly cloned repository.

Frequently Asked Questions about setup-repo

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

FAQPage Schema
How do I set up a Git worktree layout for parallel development?

To set up a Git worktree layout, you can automate the creation of a main worktree, a reviews worktree, and N feature branches from a fresh clone. This streamlines parallel development by allowing you to work on branches independently without disrupting the main branch.

What is the best way to bootstrap multiple Git branches and environments from a fresh clone?

Bootstrapping multiple Git branches involves creating and tracking numbered work branches, configuring branchlet settings, and optionally preparing .env setups. This process configures separate worktrees and installs dependencies to establish isolated development environments on demand.

Can I restructure an existing repository to support PR reviews using worktrees?

Yes, you can restructure an existing repository to support PR reviews by detecting existing worktrees and creating a dedicated reviews worktree. This allows you to review pull requests in an isolated directory without interfering with your current feature branches.

Does this multi-worktree setup include environment configuration and dependency installation?

Yes, the multi-worktree setup includes environment configuration and dependency installation. It copies env templates from the source repository to the newly created worktrees and executes dependency bootstrap steps to ensure each worktree is ready for development.

How do I create numbered work branches and apply branchlet config in Git?

Creating numbered work branches and applying branchlet config is automated during the repository setup process. The system prompts for the number of branches and the base branch, then automatically creates the branches, generates worktrees, and applies the branchlet configuration.