用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dlt-hub/dlt --skill create-worktree命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | create-worktree |
| description | Create or reuse a git worktree for a pull request or branch so reviews and work happen in isolation |
| argument-hint | <name> [--pr <number>] [--branch <ref>] |
Set up an isolated git worktree.
Parse $ARGUMENTS to extract:
.worktrees/--pr <number> (optional) — checkout a GitHub PR into the worktree using gh pr checkout--branch <ref> (optional) — create the worktree from a specific branch or refThe worktree path is: <repo-root>/.worktrees/<name>
For example, if the repo root is /home/user/src/dlt and the name is review-pr-3584, the worktree path is /home/user/src/dlt/.worktrees/review-pr-3584.
Create the .worktrees directory if it does not exist:
mkdir -p <repo-root>/.worktrees
Check if a worktree already exists at that path:
git worktree list
--pr was given, run cd <worktree-path> && gh pr checkout <number> to make sure it is up to date.--branch was given, run git -C <worktree-path> checkout <ref>.--pr was given, first resolve the PR's branch name: gh pr view <number> --json headRefName -q .headRefName--pr or --branch was given, check git worktree list output for any other worktree that already has the same branch checked out. If found:
AskUserQuestion to ask the user: "Branch <branch> is already checked out in worktree <existing-path>. Use that worktree instead?"--branch was given: git worktree add .worktrees/<name> <ref>git worktree add .worktrees/<name> --detachgit checkout --no-track -b <new-branch>--pr was given, then also: cd <worktree-path> && gh pr checkout <number>gh pr checkout handles fetching, fork tracking, and branch setup automatically.cd <worktree-path>
Then verify the switch took effect:
pwd
If pwd does not show the worktree path, stop with an error — the cwd did not persist.
Worktree ready: <worktree-path>