ワンクリックで
git-worktrees-worktree-management
Manage git worktrees - list active worktrees, prune stale ones, and merge work back into the main branch.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Manage git worktrees - list active worktrees, prune stale ones, and merge work back into the main branch.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when building modular Angular applications requiring dependency injection with providers, injectors, and services.
Use when handling async operations in Angular applications with observables, operators, and subjects.
Use when building Angular 16+ applications requiring fine-grained reactive state management and zone-less change detection.
Guides end-to-end feature development through 8 phases: discover requirements, explore codebase patterns, clarify ambiguities with the user, design architecture, implement with TDD, run multi-agent code review, validate all quality gates, and write a blog post. Use when asked to add a feature, implement a new capability, build functionality, or develop a feature end-to-end.
Use when creating or modifying Han plugins. Covers plugin structure, configuration, hooks, skills, and best practices.
Minimize token consumption through efficient tool usage patterns
| name | git-worktrees-worktree-management |
| description | Manage git worktrees - list active worktrees, prune stale ones, and merge work back into the main branch. |
| allowed-tools | ["Bash","Read","Glob","Grep"] |
git-worktrees:worktree-management - Manage git worktrees created by subagents
/worktree-management [list|prune|merge]
Manages git worktrees that were created by subagents for isolation. Provides commands to list active worktrees, prune stale ones, and merge completed work back into the current branch.
Show all active worktrees and their status:
git worktree list
For worktrees in the .worktrees/ directory, also show their commit status:
for wt in .worktrees/*/; do
if [ -d "$wt" ]; then
echo "=== $(basename "$wt") ==="
git -C "$wt" log --oneline -5
echo ""
fi
done
Remove worktrees that are no longer needed:
# Remove all worktrees in .worktrees/
git worktree list --porcelain | grep "^worktree " | grep ".worktrees/" | while read -r line; do
wt_path="${line#worktree }"
git worktree remove "$wt_path"
done
# Clean up any stale entries
git worktree prune
To merge a specific worktree's work into the current branch:
# From the main working tree:
WORKTREE_NAME="agent-xxx"
WORKTREE_BRANCH=$(git -C ".worktrees/${WORKTREE_NAME}" rev-parse HEAD)
# Cherry-pick the commits
git cherry-pick "${WORKTREE_BRANCH}"
# Or create a merge
git merge "${WORKTREE_BRANCH}" --no-ff -m "merge: integrate work from ${WORKTREE_NAME}"
# Clean up
git worktree remove ".worktrees/${WORKTREE_NAME}"
User: List my active worktrees
Agent:
$ git worktree list
/path/to/repo abc1234 [main]
/path/to/repo/.worktrees/agent-1707123456-12345 def5678 (detached HEAD)
/path/to/repo/.worktrees/agent-1707123789-67890 ghi9012 (detached HEAD)
=== agent-1707123456-12345 ===
def5678 feat: implement user authentication
abc1234 Initial commit
=== agent-1707123789-67890 ===
ghi9012 fix: resolve database connection issue
abc1234 Initial commit
User: Merge the auth worktree and clean up
Agent: Cherry-picks the auth commit, removes the worktree, and prunes stale entries.