worktree — for Claude Code worktree, usopc-athlete-support-agent, community, for Claude Code, ide skills, $ARGUMENTS, create <issue-number>, cleanup, Management, managing

v1.0.0

이 스킬 정보

효율적인 저장소 처리를 위해 고급 작업 트리 관리 기능이 필요한 Git 기반 AI 에이전트에 적합합니다. 현지화된 요약: Smart worktree management — create, list, and clean up git worktrees with automatic gotcha handling (pnpm install, hook script copy, issue validation). This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

기능

Smart Worktree Management
You are managing git worktrees for the USOPC Athlete Support Agent monorepo. The argument is
Parse the argument to determine the subcommand:
create <issue-number — Create a new worktree for an issue
list — List active worktrees with status

# Core Topics

rosinbum rosinbum
[0]
[0]
Updated: 3/23/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 8/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
8/11
Quality Score
36
Canonical Locale
en
Detected Body Locale
en

효율적인 저장소 처리를 위해 고급 작업 트리 관리 기능이 필요한 Git 기반 AI 에이전트에 적합합니다. 현지화된 요약: Smart worktree management — create, list, and clean up git worktrees with automatic gotcha handling (pnpm install, hook script copy, issue validation). This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

이 스킬을 사용하는 이유

에이전트가 Git 작업 트리를 효과적으로 관리할 수 있도록 하며, 'create', 'list', 'cleanup' 등의 하위 명령을 사용하여 워크플ロー를 간소화하고 Git 프로토콜을 사용하여 저장소와의 무결한 상호 작용을 구현합니다.

최적의 용도

효율적인 저장소 처리를 위해 고급 작업 트리 관리 기능이 필요한 Git 기반 AI 에이전트에 적합합니다.

실행 가능한 사용 사례 for worktree

특정 문제에 대해 새로운 작업 트리를 생성하여 개발을 분리합니다.
활성 작업 트리와 상태를 나열하여 프로젝트 진행 상황을 모니터링합니다.
분기점이 병합된 작업 트리를 정리하여 저장소 조직을 유지합니다.

! 보안 및 제한 사항

  • Git 작업 트리 기능이 필요합니다.
  • 하위 명령을 위한 특정 인수 구문 분석이 필요합니다.
  • 단일 모노레포 내의 작업 트리만 관리할 수 있습니다.

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is worktree?

효율적인 저장소 처리를 위해 고급 작업 트리 관리 기능이 필요한 Git 기반 AI 에이전트에 적합합니다. 현지화된 요약: Smart worktree management — create, list, and clean up git worktrees with automatic gotcha handling (pnpm install, hook script copy, issue validation). This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

How do I install worktree?

Run the command: npx killer-skills add rosinbum/usopc-athlete-support-agent. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for worktree?

Key use cases include: 특정 문제에 대해 새로운 작업 트리를 생성하여 개발을 분리합니다., 활성 작업 트리와 상태를 나열하여 프로젝트 진행 상황을 모니터링합니다., 분기점이 병합된 작업 트리를 정리하여 저장소 조직을 유지합니다..

Which IDEs are compatible with worktree?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for worktree?

Git 작업 트리 기능이 필요합니다.. 하위 명령을 위한 특정 인수 구문 분석이 필요합니다.. 단일 모노레포 내의 작업 트리만 관리할 수 있습니다..

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add rosinbum/usopc-athlete-support-agent. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use worktree immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

worktree

Install worktree, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Smart Worktree Management

You are managing git worktrees for the USOPC Athlete Support Agent monorepo. The argument is: $ARGUMENTS.

Parse the argument to determine the subcommand:

  • create <issue-number> — Create a new worktree for an issue
  • list — List active worktrees with status
  • cleanup — Remove worktrees whose branches have been merged

If no subcommand is provided or the argument is empty, print the usage:

Usage: /worktree <command> [args]
  create <issue-number>  — Create worktree for a GitHub issue
  list                   — List active worktrees with branch status
  cleanup                — Remove merged worktrees and prune refs

Subcommand: create <issue-number>

Step 1: Validate the issue exists

Run gh issue view <issue-number> --json number,title,state to confirm the issue exists and is open. If the issue doesn't exist or is closed, warn the user and stop.

Step 2: Determine paths

  • Get the main repo root: git rev-parse --show-toplevel (if in a worktree, use git worktree list to find the main repo)
  • Worktree path: ../usopc-issue-<number> relative to the main repo (i.e., a sibling directory)
  • Derive a short branch name from the issue title: feat/<kebab-case-summary> (max 50 chars, lowercase, hyphens only)

Step 3: Fetch latest main

Run git fetch origin main to ensure we branch from the latest main.

Step 4: Create the worktree

bash
1git worktree add <worktree-path> -b <branch-name> origin/main

If the worktree path already exists, warn and stop.

Step 5: Install dependencies

bash
1cd <worktree-path> && pnpm install

Step 6: Print summary

Worktree created:
  Path:   <worktree-path>
  Branch: <branch-name>
  Issue:  #<number> — <title>

Dependencies installed.
Navigate with: cd <worktree-path>

Subcommand: list

Step 1: List worktrees

Run git worktree list and parse the output.

Step 2: For each worktree (excluding bare/main)

  • Show the path, branch name
  • Run git -C <path> log --oneline -1 for latest commit
  • Run git -C <path> rev-list --left-right --count origin/main...<branch> for ahead/behind status

Step 3: Print formatted table

Active worktrees:
  ../usopc-issue-42  feat/add-auth        +3 / -0  (latest: abc1234 Add auth middleware)
  ../usopc-issue-55  fix/query-perf       +1 / -2  (latest: def5678 Fix slow query)

Subcommand: cleanup

Step 1: List worktrees

Run git worktree list and identify non-main worktrees.

Step 2: Check each branch

For each worktree branch, check if it has been merged into origin/main:

bash
1git branch --merged origin/main | grep <branch-name>

Step 3: Remove merged worktrees

For each merged worktree, remove it:

bash
1git worktree remove <path>

Print which worktrees were removed.

Step 4: Prune and clean up

bash
1git worktree prune 2git fetch --prune origin

Step 5: Print summary

Cleaned up:
  Removed: ../usopc-issue-42 (feat/add-auth — merged)
  Removed: ../usopc-issue-55 (fix/query-perf — merged)
  Pruned stale worktree references.

If no worktrees were eligible for cleanup, say so.

Important notes

  • Always use absolute paths when running git commands to avoid confusion between worktree and main repo.
  • The main repo root can be found via git worktree list — it's the first entry (the one without [branch] or with [main]).
  • scripts/update-hours.mjs and scripts/stamp-readme-hours.mjs are tracked in git, so they'll be available in worktrees automatically — no copying needed.

관련 스킬

Looking for an alternative to worktree or another community skill for your workflow? Explore these related open-source skills.

모두 보기

openclaw-release-maintainer

Logo of openclaw
openclaw

현지화된 요약: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
인공지능

widget-generator

Logo of f
f

현지화된 요약: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
인공지능

flags

Logo of vercel
vercel

현지화된 요약: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
브라우저

pr-review

Logo of pytorch
pytorch

현지화된 요약: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
개발자