How this command is triggered — by the user, by Claude, or both
Slash command
/dev-flow:checkout <pr-number>azdo/pr/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
## Context
- Current branch: !`git branch --show-current`
- Git status: !`git status --short`
## Task
Check out the source branch of an Azure DevOps pull request.
**Arguments (`$ARGUMENTS`):**
- PR number (e.g., `123`) → fetch and checkout that PR's source branch
- PR URL → extract PR number and checkout
**Workflow:**
1. **Get PR details**: `az repos pr show --id <pr-number> --query '{sourceBranch: sourceRefName, title: title}' -o json`
2. **Extract branch**: Strip `refs/heads/` prefix from sourceBranch
3. **Fetch**: `git fetch origin <branch>`
4. **Checkout**: `git checkout <branch>...git branch --show-currentgit status --shortCheck out the source branch of an Azure DevOps pull request.
Arguments ($ARGUMENTS):
123) → fetch and checkout that PR's source branchWorkflow:
az repos pr show --id <pr-number> --query '{sourceBranch: sourceRefName, title: title}' -o jsonrefs/heads/ prefix from sourceBranchgit fetch origin <branch>git checkout <branch>Error handling:
npx claudepluginhub lttr/claude-marketplace --plugin df/checkoutChecks out a PR or branch into an isolated Git worktree for parallel development without disrupting the main workspace.
/syncSynchronizes local Git branch with GitHub PR: fetches remotes, parses PR number or URL, uses gh CLI to view/checkout branch (handles forks).
/workspace-PRCreates a PR from the workspace branch, synthesizing title and body from commits, workspace files, and optional user notes.
/ghprOpens existing or creates new GitHub pull request for current branch. Checks PR status, drafts conventional commit title/body from branch/commits, confirms with user, then creates and opens.
/vprOpens the current branch's pull request in the default web browser by running `gh pr view --web`.