Back to list
Async-IO

create-worktree

by Async-IO

MCP/A2A/Rest Fitness Intelligence platform.

16🍴 2📅 Jan 24, 2026

SKILL.md


name: create-worktree description: Creates a git worktree with branch and copies environment files (.envrc, .mcp.json) argument-hint: [branch-name] user-invocable: true

Create Worktree Skill

CLAUDE: When this skill is invoked with /create-worktree <branch-name>, immediately run:

./.claude/skills/create-worktree.sh <branch-name>

Purpose

Creates a new git worktree with a feature branch, automatically copying environment files that are not tracked in git.

Usage

/create-worktree feature/my-new-feature

What It Does

  1. Creates a new git worktree at ../pierre_mcp_server-<branch-name>
  2. Creates a new branch with the specified name
  3. Copies .envrc from main worktree
  4. Copies .mcp.json if present
  5. Runs direnv allow to activate the environment

Commands

Using the script directly:

./.claude/skills/create-worktree.sh <branch-name> [optional-path]

# Examples:
./.claude/skills/create-worktree.sh feature/new-api
./.claude/skills/create-worktree.sh fix/bug-123 /tmp/quick-fix

Manual steps (if script unavailable):

BRANCH="feature/my-feature"
WORKTREE="../pierre_mcp_server-${BRANCH//\//-}"

git worktree add -b "$BRANCH" "$WORKTREE"
cp .envrc "$WORKTREE/"
cp .mcp.json "$WORKTREE/" 2>/dev/null || true
cd "$WORKTREE" && direnv allow

Cleanup

When done with a worktree:

git worktree remove ../pierre_mcp_server-feature-my-feature
git branch -d feature/my-feature  # if merged
  • finish-worktree - Completes feature branch work with rebase and merge

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon