一键导入
worktree-start
Bootstrap isolated git worktree under ./worktrees/<task-id>. Verifies non-empty path, branch created, deps linked. Prevents working directly on main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bootstrap isolated git worktree under ./worktrees/<task-id>. Verifies non-empty path, branch created, deps linked. Prevents working directly on main.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open a PR with MirrorBuddy checklist — ci:summary green, conventional commit, issue link, wait CI, require explicit user approval before merge.
Gate before claiming any task complete. Runs health-check.sh + ci:summary, pastes output, only then allows "done" claim.
Comprehensive localization verification for MirrorBuddy features via npm run i18n:check
Pre-release validation for MirrorBuddy via app-release-manager subagent
CI verification and build validation for MirrorBuddy. Use when running checks, validating builds, or verifying code quality before commits.
Release readiness verification for MirrorBuddy. Use when preparing releases, checking deployment readiness, or running pre-release validation.
| name | worktree-start |
| description | Bootstrap isolated git worktree under ./worktrees/<task-id>. Verifies non-empty path, branch created, deps linked. Prevents working directly on main. |
| allowed-tools | ["Read","Glob","Bash"] |
| context | inline |
| user-invocable | true |
Creates isolated worktree. Enforces "never on main" rule.
Message contains /worktree-start or /worktree-start {task-id}.
<type>/<task-id>-<slug> (e.g., fix/720-csp-nonce).test "$(git branch --show-current)" = "main" && echo "on main — will create worktree" || echo "already on branch"
git status --short # must be clean before worktree from main
TASK_ID="${1:-$(date +%s)}"
SLUG="<short-descriptor>"
BRANCH="feat/${TASK_ID}-${SLUG}"
WT_PATH="./worktrees/${TASK_ID}"
mkdir -p ./worktrees
git worktree add -b "$BRANCH" "$WT_PATH" main
# Verify non-empty
test -d "$WT_PATH" && test -n "$(ls "$WT_PATH")" || { echo "ABORT: worktree empty"; exit 1; }
cd "$WT_PATH"
npm install --prefer-offline --no-audit
npx prisma generate
Return to user: worktree path, branch name, next command hint.
git worktree remove ./worktrees/<task-id>
git branch -d <branch> # only if merged
main directlygit worktree list first)/pr — open PR from worktree/verify-done — pre-completion check