用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nathanvale/claude-code-config --skill worktree命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Creating or changing tests, fixtures, mocks, snapshots, test helpers, or test harnesses; require a pre-write Test Design Brief.
Browser tasks through Warm Chrome; no Chrome for Testing.
Explicit whole-suite test architecture review, visual candidates, or proof-boundary improvements.
正在显示 SKILL.md
| name | worktree |
| description | WorkTree: inspect, render, and open shared git worktree projects. |
| role | tool-workflow |
Triggers: render/sync/focus/color/open VS Code workspaces across git worktrees.
Triggers: open Codex App projects from shared repo-local worktrees.
Triggers: create/remove/prune worktrees through the worktree workflow entry point.
Triggers: inspect current WorkTree state or choose the next worktree action.
Do not hand-edit the generated .code-workspace. Edit the registry; let worktree render.
Do not shell out to old worktree wrappers. worktree calls the shared runtime/agent-worktree library.
<repo>.code-workspace (rendered output — never hand-edit).worktree.config.json at the main worktree root (branch-keyed prefs).defaults.ignoredWorktrees path globs, e.g. ["**/fallow-audit-base-cache-*"].skills/worktree/src/.runtime/agent-worktree/src/index.ts.skills/worktree/package.json.skills/worktree/src/.@side-quest/cli-command-facade: hard dependency (facade-backed contract). Registered in root package.json workspaces.runtime/agent-worktree: hard dependency for live worktree discovery, main-owner resolution, lifecycle verbs, cleanup preview, and recovery vocabulary.code on PATH (or defaults.codeBin): needed only by worktree open <name>. Other verbs do not launch VS Code.codex on PATH: needed by worktree app <branch> and best-effort thread archival during worktree rm. App launch absence → codex_app_not_found; removal still completes with partial cleanup metadata.gh on PATH: optional; needed only for push-tracking PR attach. Missing state: degraded with gh_not_found; omit tracking or install gh, then retry. Contract owner: runtime/agent-worktree/src/.bun install --frozen-lockfile from the repository root after new or attach, following AGENTS.md.cli-author: hard dependency before changing the CLI contract surface.clean with dirty worktrees: preserve first. Commit uncommitted changes
to a new branch, stash them, or ask the user. Only remove after the work is
explicitly saved or the user confirms it is throwaway.rm with dirty worktrees: the runtime blocks with reason: "dirty".
Do not bypass with --force unless the user has reviewed the dirty files and
explicitly approved loss.git log main..<branch> first. If commits
exist that were never PR'd or merged, ask before deleting.attach_isolation_unavailable or new_isolation_unavailable (exit 4): stop. Use the harness
blocking-question tool with two choices: work in the current checkout, or
stop and resolve the environment. If unavailable, ask the same numbered
options in chat.
Proceed in the current checkout only after explicit user confirmation. The
CLI never prompts. Recovery owner: skills/worktree/src/.cd skills/worktree && bun run --silent worktree <verb> ....status when state is fuzzy; use worktree with no args for the layman front door.status/sync/open) and worktree CRUD (new/attach/status/sync/rm).new), attach an existing ref or PR (attach), read (status), update (sync/focus/color), delete (rm), launch (open/app), or preview cleanup (clean).new or attach, run status when checkout isolation is uncertain. Read the runtime-owned RepoDiscovery.isolation; never nest a worktree from a linked worktree. Owner: runtime/agent-worktree/src/.worktree call runtime/agent-worktree, register/deregister Codex app sidebar on new/attach/rm/sync, then re-render when state changes.drift_blocked, review the diff; port real changes into worktree.config.json, then rerun with --force.clean with dirty worktrees, follow the Safety rules above — preserve
uncommitted work before removal.bun --filter worktree-scripts test.bun --filter worktree-scripts typecheck.