用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill create-worktree-from-issue命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | create-worktree-from-issue |
| description | >- Use when this capability is needed. |
Find a GitHub issue and create a dedicated worktree + tmux window via workmux add.
The user provides either an issue number or descriptive text.
By number:
gh issue view NUMBER --json number,title,labels,body,state
By text (fuzzy search):
gh issue list --search "USER_TEXT" --state all --json number,title,labels,state --limit 10
If the search returns exactly one result, proceed automatically with that issue without asking for additional confirmation.
If the search returns multiple results, present them to the user and ask which one to use.
If no results, try broadening the search or ask the user to refine their query.
If the issue is open, signal that work is starting. Skip this step for closed issues.
Self-assign:
gh issue edit NUMBER --add-assignee @me
Ensure the label exists, then add it:
gh label create "in progress" --description "Work is actively being done" --color FBCA04 2> /dev/null || true
gh issue edit NUMBER --add-label "in progress"
The gh label create command is safe to run even if the label already exists — 2>/dev/null suppresses the "already exists" error and || true ensures a zero exit code so the subsequent command always runs. This ensures the label is available before gh issue edit --add-label attempts to use it, since gh does not auto-create labels.
Self-assignment is idempotent — safe to re-run if the assignee already exists.
If any command fails, warn the user but continue with worktree creation. Status marking is best-effort and must never block the primary workflow.
Construct a branch name in the format TYPE/SLUG where:
fix for labels containing "bug" or "fix". Use feature for everything else (including when no labels match).Examples:
feature/add-dark-mode-supportfix/login-fails-with-special-charsfeature/update-readmeBuild a prompt from the issue data retrieved in step 1. Format:
Work on issue #NUMBER: TITLE
Labels: LABEL1, LABEL2
BODY_CONTENT
gh issue view NUMBER for full details.)"Use the Write tool to create a temporary prompt file at /tmp/workmux-prompt-BRANCH_NAME.md with the composed prompt from step 4. Using the Write tool avoids shell escaping issues with arbitrary issue body content.
Important: The workmux add command must be fully detached from the Claude Code process. workmux creates tmux windows and spawns new Claude sessions, which cannot initialize while the parent Claude Code process is alive. The launch-workmux script handles backgrounding, detaching, waiting, and outputting the log.
Locating the script: At the start of your session, locate the script by searching for **/create-worktree-from-issue/scripts/launch-workmux. Note the absolute path and use it with bash as the command prefix in all subsequent invocations. Do not use a shell variable, since shell state does not persist between commands.
In the example below, SCRIPTS_DIR/launch-workmux is a placeholder for the script's quoted absolute path (e.g., "/absolute/path/to/plugins/create-worktree-from-issue/scripts/launch-workmux"). Always invoke via bash followed by the quoted path. This ensures the command token is bash, which matches stable allowlist patterns regardless of the plugin's installed path or version.
Important: Do not delete the prompt file immediately after launching. workmux runs asynchronously and may not read the file for several seconds. Wait and verify success before cleaning up.
Do not specify a --base branch. Let workmux use its default.
bash "SCRIPTS_DIR/launch-workmux" "BRANCH_NAME" "/tmp/workmux-prompt-BRANCH_NAME.md"
The script outputs the workmux log directly and cleans up its own log file. Verify success:
git worktree list
If the log shows success and the worktree appears in the list, clean up the prompt file:
rm -f /tmp/workmux-prompt-BRANCH_NAME.md
If the log shows an error (e.g., "Failed to read prompt file"), the prompt file may have been deleted too early or another issue occurred. Check the log output for details.
After confirming the worktree exists in git worktree list, report:
gh is not authenticated, instruct the user to run gh auth loginworkmux is not installed, inform the userSource: cboone/cboone-cc-plugins — distributed by TomeVault.