Analyze comments for requirements compliance (requires --comments)
View on GitHubkbrockhoff/brockhoff-tools-claude
bkff-git
plugins/bkff-git/skills/git-pr/SKILL.md
January 24, 2026
Select agents to install to:
npx add-skill https://github.com/kbrockhoff/brockhoff-tools-claude/blob/main/plugins/bkff-git/skills/git-pr/SKILL.md -a claude-code --skill git-prInstallation paths:
.claude/skills/git-pr/# Manage Pull Request
Creates or updates a pull request for the current branch. Uses the repository's PR template if available, or generates a default description.
## Usage
```
/bkff:git-pr [--title "PR title"] [--draft] [--ready] [--comments] [--analyze]
```
## Options
| Option | Description |
|--------|-------------|
| `--title` | Override the auto-generated PR title |
| `--draft` | Create as a draft pull request |
| `--ready` | Mark existing draft PR as ready for review |
| `--comments` | Retrieve and display PR review comments |
| `--analyze` | Analyze comments for requirements compliance (requires `--comments`) |
## What It Does
1. Checks if PR already exists for branch
2. Pushes branch to origin if needed
3. Creates new PR or updates existing one
4. Uses PR template if available
## Example Output
```
## Pull Request Created
### Branch
- **Head**: feature/auth-login
- **Base**: main
### Pull Request
- **Number**: #123
- **Title**: feat(auth): implement user authentication
- **URL**: https://github.com/owner/repo/pull/123
```
## Requirements
- Must be run inside a git worktree
- `git` CLI for branch operations
- `gh` CLI for PR creation (authenticated)
- Cannot be on main/master branch
## Implementation
```bash
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLUGIN_DIR="$(dirname "$(dirname "$SCRIPT_DIR")")"
source "$PLUGIN_DIR/lib/common.sh"
source "$PLUGIN_DIR/lib/git-helpers.sh"
source "$PLUGIN_DIR/lib/pr-analysis.sh"
# Parse arguments
CUSTOM_TITLE=""
DRAFT_FLAG=""
READY_FLAG=""
COMMENTS_FLAG=""
ANALYZE_FLAG=""
while [[ $# -gt 0 ]]; do
case "$1" in
--title|-t)
CUSTOM_TITLE="$2"
shift 2
;;
--draft|-d)
DRAFT_FLAG="--draft"
shift
;;
--ready|-r)
READY_FLAG="true"
shift
;;
--comments|-c)
COMMENTS_FLAG="true"
shift
;;