autopilot-batch
Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model…
Merge a pull request with status checks, squash merge, and branch cleanup. Handles worktree contexts.
$ npx -y skills add joshukraine/dotfiles --skill merge-pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/merge-prContext preview
The summary Claude sees to decide when to auto-load this skill.
Merge a pull request with status checks, squash merge, and branch cleanup. Handles worktree contexts.
name: merge-pr description: Merge a pull request with status checks, squash merge, and branch cleanup. Handles worktree contexts. disable-model-invocation: true argument-hint: "[PR-number]"
Merge a pull request with consistent practices: verify checks, squash merge, clean up the branch, and pull the latest base branch.
Check each of the following and report status:
If CI has not passed, **stop and report**. Do not proceed with the merge.
Before updating local state, determine whether you are inside a git worktree:
git rev-parse --git-dir git rev-parse --git-common-dir
After `gh pr merge` completes:
Then skip to Step 6.
When inside a worktree, `git switch` to the base branch will fail because it is checked out in another worktree. Handle this differently:
1. **Find the primary worktree** on the base branch:
git worktree list --porcelain
Parse the output to find the worktree entry whose `branch` matches `refs/heads/<base-branch>`. Extract its path.
2. **Pull the base branch** from the primary worktree:
git -C <primary-worktree-path> pull
3. **Do not delete the branch or remove the worktree automatically.** The branch cannot be deleted while it is checked out in a worktree, and removing the worktree would destroy the user's current working directory. Instead, provide the cleanup commands in the completion report.
**Normal repo** — report:
## Merge Complete - PR: #N — [title] - Remote branch: deleted - Local branch: deleted (or kept — reason) - Local <base-branch>: up to date
**Worktree** — report:
## Merge Complete
- PR: #N — [title]
- Remote branch: deleted
- Local <base-branch>: up to date (pulled in primary worktree)
## Worktree cleanup (run from outside this directory)
git worktree remove <this-worktree-path>
git branch -D <branch-name>:round_pushpin: My dotfiles for macOS using Neovim, Zsh, and Ghostty + Tmux
Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model…
Vet open issues for autonomous resolution and queue the qualifying ones with the autopilot-queued label — the start-of-day "fill…
Carry a well-scoped GitHub issue through the full dev loop autonomously, stopping at a per-run tier boundary (PR-ready, or…
Set up PRD-driven development infrastructure for a new project, including directory structure, templates, and roadmap.
Quick 2-minute status update on current phase, completed work, blockers, and health check.
Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.