一键导入
git-worktree
Create a git worktree with an appropriate branch name (location configured via git config wt.basedir, defaults to ../{gitroot}-wt)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a git worktree with an appropriate branch name (location configured via git config wt.basedir, defaults to ../{gitroot}-wt)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
| name | git-worktree |
| disable-model-invocation | true |
| description | Create a git worktree with an appropriate branch name (location configured via git config wt.basedir, defaults to ../{gitroot}-wt) |
Proposes a worktree path and conventionally named branch from the current changes, gets approval, and creates it. Self-contained: this skill reads git and creates the worktree directly from the top-level session. Do NOT spawn a subagent.
<type>/<short-description> — type is one of feat, fix, refactor, docs, test, chore.<basedir>/<branch-name>, where basedir comes from git config --get wt.basedir (fall back to ../<gitroot-basename>-wt — a sibling of the repo root — when unset).Analyze (read-only) - git rev-parse --show-toplevel, git config --get wt.basedir, git branch --show-current, git worktree list, git status --short, git diff --stat origin/main. Determine the basedir — the wt.basedir config value, or else $(dirname <repo-root>)/$(basename <repo-root>)-wt (a ../<gitroot-basename>-wt sibling) — and a branch name, then propose:
Branch: <type>/<short-description>
Path: <basedir>/<type>/<short-description>
Reason: <brief explanation>
Approve - Present the proposal with AskUserQuestion, options: "Approve", "Edit" (let the user modify), "Cancel".
Create - If approved, run directly via Bash and confirm. Resolve basedir to an absolute path first (a relative wt.basedir is relative to the repo root):
mkdir -p <resolved-basedir>
git worktree add <resolved-basedir>/<branch-name> -b <branch-name>
(Never use git stash.)