一键导入
worktree-manager
Manage git worktrees for isolated issue work. Create, list, and remove worktrees safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage git worktrees for isolated issue work. Create, list, and remove worktrees safely.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a versioned release of claudecode_webui — bump version fields, update CHANGELOG.md, tag the commit, push, and create the GitHub Release.
Project-specific build process for the Builder workflow. Builds frontend assets for claudecode_webui.
Navigate to the Claude Code WebUI application, verify it loads, and optionally select a project and/or session by name. Use when starting any UI test, opening the app, verifying the app is loaded, switching projects, or selecting sessions.
Detect and respond to a permission prompt in the Claude Code WebUI. Use when approving or denying tool permissions, handling permission modals, responding to Claude asking for approval, or unblocking a paused session.
Create a new project in the Claude Code WebUI via the UI. Use when creating a project, adding a project, opening the new project modal, or testing project creation flow.
Delete a project via the Claude Code WebUI. Use when deleting a project, removing a project, testing project deletion, or cleaning up test projects.
| name | worktree-manager |
| description | Manage git worktrees for isolated issue work. Create, list, and remove worktrees safely. |
| allowed-tools | ["Bash(~/.claude/skills/worktree-manager/scripts/create.sh :*)","Bash(~/.claude/skills/worktree-manager/scripts/list.sh)","Bash(~/.claude/skills/worktree-manager/scripts/remove.sh :*)","Bash(git status:*)"] |
~/.claude/skills/worktree-manager/scripts/create.sh <issue_number>
~/.claude/skills/worktree-manager/scripts/create.sh <issue_number> --prefix fix # Branch prefix (default: feat)
~/.claude/skills/worktree-manager/scripts/create.sh <issue_number> --branch main # Override default branch detection
The script creates worktrees/issue-<N>/ with branch <prefix>/issue-<N> based on the latest origin/<default-branch>.
| Field | Meaning |
|---|---|
CREATE_STATUS | success or error |
WORKTREE_PATH | Path to the created worktree |
BRANCH_NAME | Branch created for the worktree |
DEFAULT_BRANCH | Base branch used |
BASE_COMMIT | Commit the worktree is based on |
ERROR_CODE | already_exists, no_default_branch, fetch_failed, create_failed |
Choosing the prefix: Analyze the issue to determine the work type:
feat — new features (default)fix — bug fixeschore — maintenance, toolingdocs — documentationrefactor — code refactoringtest — test additions/fixesExit 1 — already exists: Ask user if they want to remove and recreate, or reuse the existing worktree.
Exit 2 — no default branch: Re-run with --branch main or --branch master.
Exit 3 — fetch failed: Network issue. Suggest retry.
Exit 4 — create failed: Usually means the branch name already exists. Suggest removing the stale branch first (git branch -D <branch>) or using a different prefix.
~/.claude/skills/worktree-manager/scripts/list.sh
Outputs one block per worktree (separated by ---), plus a summary count at the end.
| Field | Meaning |
|---|---|
WORKTREE_PATH | Absolute path |
WORKTREE_BRANCH | Branch name |
WORKTREE_CLEAN | true / false / unknown |
WORKTREE_MODIFIED | Number of changed files |
WORKTREE_FILES | git status --short output (only if dirty) |
WORKTREE_LAST_COMMIT | Latest commit oneline |
WORKTREE_AHEAD | Commits ahead of upstream |
WORKTREE_COUNT | Total issue worktrees (in final block) |
Format this into a readable summary for the user.
~/.claude/skills/worktree-manager/scripts/remove.sh <issue_number>
~/.claude/skills/worktree-manager/scripts/remove.sh <issue_number> --force # Discard uncommitted changes
| Field | Meaning |
|---|---|
REMOVE_STATUS | success or error |
BRANCH_NAME | Branch that was in the worktree |
ERROR_CODE | not_found, uncommitted_changes, remove_failed |
DETAILS | Changed files (if uncommitted) or error message |
Exit 1 — not found: Worktree doesn't exist. Inform user, no action needed.
Exit 3 — uncommitted changes: Show the user the DETAILS (modified files) and ask:
--force to discard changesExit 4 — removal failed: Worktree may be locked (process using it). Suggest checking for running processes, or re-run with --force.