一键导入
worktree
Generic git worktree boundary guidance. For ADV-managed worktrees, defer to Advance's adv-worktree skill and adv_worktree_* tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generic git worktree boundary guidance. For ADV-managed worktrees, defer to Advance's adv-worktree skill and adv_worktree_* tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | worktree |
| description | Generic git worktree boundary guidance. For ADV-managed worktrees, defer to Advance's adv-worktree skill and adv_worktree_* tools. |
| keywords | ["worktree","git-worktree","branch-isolation","feature-branch","parallel-experiment","merge-before-delete","adv-worktree"] |
| license | MIT |
| metadata | {"priority":"medium","replaces":"adv-worktree for ADV-managed flows"} |
Load this skill for generic git worktree boundary guidance in OCA contexts.
For any ADV-managed change or ADV worktree lifecycle action, load
skill("adv-worktree") and follow Advance-owned guidance instead. Advance owns
ADV worktree registry, lifecycle gates, deletion safety, and multi-session
coordination.
| Context | Owner | Use |
|---|---|---|
| ADV-managed change worktree | Advance | skill("adv-worktree") |
| ADV worktree create/delete/triage | Advance | adv_worktree_create, adv_worktree_delete, adv_worktree_cleanup, adv_worktree_triage |
| Generic non-ADV git isolation | OCA guidance only | Manual git worktree flow, user-approved |
Backward-compatible aliases such as worktree_create may exist, but
adv_worktree_* names are canonical for ADV workflows.
Do not switch branches in the main checkout during cleanup. Resolve the main checkout path, verify it is already on the default branch and clean, then merge in place:
MAIN="$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")"
git -C "$MAIN" branch --show-current
git -C "$MAIN" status --porcelain
git -C "$MAIN" merge --ff-only change/{change-id}
git -C "$MAIN" log --oneline trunk..change/{change-id}
If the branch is not merged, do not delete the worktree.
For ADV-managed worktrees, use Advance-owned tools:
adv_worktree_create
adv_worktree_delete
adv_worktree_cleanup
adv_worktree_triage
Then continue with workdir set to the returned path. If details matter, load
skill("adv-worktree"); this OCA skill intentionally avoids duplicating that
workflow.
worktree, git worktree, branch isolation, parallel development, merge before delete, adv-worktree, adv_worktree_create, adv_worktree_delete, worktree cleanup
MCP tool selection guide — use when choosing between Kagi, Context7, gh_grep, Firecrawl, Playwright, or other MCP tools for a task. Provides decision matrix and anti-patterns.
Context-aware tradeoff analysis — researches codebase and domain to draft criteria questions for user prioritization. Use when facing 2+ viable approaches with meaningful tradeoffs.
PREFERRED: Dual-engine code intelligence (semantic search + symbol lookup). Use INSTEAD of built-in Grep/Glob for code exploration, concept search, and finding implementations by intent. Semantic engine: 92% retrieval quality. Symbol engine: exact function/class lookup, no API key needed.
Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject <=50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.
Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.