一键导入
worktree
Worktree lifecycle management scripts — setup, teardown, heartbeat, pin, GC, merge
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Worktree lifecycle management scripts — setup, teardown, heartbeat, pin, GC, merge
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate throughput and quality reports from coordinator audit data and episodic memory
Execute roadmap items iteratively with policy-aware vendor routing and learning feedback
Orchestrate the full plan-review-implement-validate-PR lifecycle with multi-vendor review convergence
Merge approved PR, migrate open tasks, archive OpenSpec proposal, and cleanup branches
Ingest raw session transcripts from coding-agent harnesses via vendor-specific adapters, normalize to a common event schema, triage for struggle signals, and write structured findings to episodic memory
HTTP fallback bridge for coordinator when MCP transport is unavailable
| name | worktree |
| description | Worktree lifecycle management scripts — setup, teardown, heartbeat, pin, GC, merge |
| category | Infrastructure |
| tags | ["worktree","git","infrastructure","merge"] |
| user_invocable | false |
Non-user-invocable infrastructure skill that bundles worktree lifecycle management scripts. Referenced by SDLC skills via sibling-relative paths.
Git worktree lifecycle manager for the launcher invariant (shared checkout is read-only).
Usage:
python3 "<skill-base-dir>/scripts/worktree.py" <command> [args]
Commands:
| Command | Arguments | Description |
|---|---|---|
setup | <change-id> [--agent-id ID] | Create worktree at .git-worktrees/<change-id>/ |
teardown | <change-id> [--agent-id ID] | Remove worktree and clean branch |
status | <change-id> [--agent-id ID] | Print worktree path and branch |
detect | Auto-detect if CWD is inside a worktree | |
heartbeat | <change-id> [--agent-id ID] | Update last-active timestamp (prevents GC) |
list | List all registered worktrees | |
pin | <change-id> | Protect worktree from GC |
unpin | <change-id> | Remove GC protection |
gc | [--force] | Garbage collect stale worktrees (24h default) |
Stdout (setup): WORKTREE_PATH=<path>, BRANCH_CREATED=<branch>, CREATED=true|false
Exit codes: 0 = success, 1 = error
Merges parallel agent branches into the feature branch.
Usage:
python3 "<skill-base-dir>/scripts/merge_worktrees.py" <change-id> <pkg-id>... [--json]
Arguments:
<change-id> — Feature change ID<pkg-id>... — One or more package IDs to merge--json — Output merge results as JSONExit codes: 0 = all merged, 1 = conflict or error
Configures local git for parallel agent development (rerere, zdiff3, histogram diff).
Usage:
bash "<skill-base-dir>/scripts/git-parallel-setup.sh"