pr
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Context
- Current branch: !
git branch --show-current - Default branch candidates: !
git branch -r | grep -E 'origin/(main|master)' - PR for this branch: !
gh pr view --json number,title,url 2>/dev/null || echo "NO_PR"
Your task
Create or update a pull request for the current branch.
Pre-flight checks
- Detect the base branch by running:
git rev-parse --verify origin/main >/dev/null 2>&1 && echo main || echo master. Use this as<base>. - If the current branch is the base branch, stop and tell the user to switch to a feature branch first. Do nothing else.
- Run
git log <base>..HEAD --oneline. If there are no commits ahead of the base branch, stop and tell the user to commit changes first. Do nothing else. - Never run
git addorgit commit. Only manage the PR.
Analysis
More from derogab/agent-kit
commit
Create a git commit following the Conventional Commits specification. Use when the user asks to commit staged changes or create a commit message.
71worktree
Resolve missing gitignored files in a git worktree by symlinking them from the main repository.
11reply
Reply to unresolved PR review comments that clearly relate to the current conversation. Use when the user asks to respond to PR review feedback without resolving threads or editing code.
10review-council
Run all code review tools in parallel and aggregate results into a comprehensive review report.
8redis
Read the Redis Patterns for Coding Agents documentation before answering Redis questions or making Redis changes.
1