devpilot-pr-creatorlisted
Install: claude install-skill SiyuQian/devpilot
# Pull Request / Merge Request Skill
**Core principle:** Read the actual diff before writing anything. Every sentence in the description
must come from code you read, not from branch names or assumptions.
**Operating mode: automatic by default.** Do not stop to confirm routine choices (branch name, commit message, draft body) — derive them from the diff and execute. Only stop for the destructive / ambiguous cases listed under [Hard Stops](#hard-stops). Showing a draft "for approval" before creating is **not** a hard stop; the user can `gh pr edit` after the fact.
## Quick Reference
| Action | GitHub | GitLab |
|--------|--------|--------|
| Create | `gh pr create --title "..." --body "..."` | `glab mr create --title "..." --description "..."` |
| Update | `gh pr edit <number> --title "..." --body "..."` | `glab mr update <number> --title "..." --description "..."` |
| Mark ready | `gh pr ready <number>` | `glab mr update <number> --draft=false` |
| Base branch | `--base <branch>` | `--target-branch <branch>` |
| Draft | `--draft` | `--draft` |
| Push | `git push -u origin HEAD` | `git push -u origin HEAD` |
## Worktree / autonomous invocation
Detect both up front — they change preflight rules.
```bash
git rev-parse --git-dir # contains "/worktrees/" → you are in a linked worktree
git worktree list # confirms which worktree is which
```
**You are in autonomous mode** when this skill was invoked by a parent skill (e.g. `devpilot-resolve-issue