github-pr-manager
π―Skillfrom edanstarfire/claudecode_webui
Automates GitHub pull request workflows by tracking, reviewing, and managing PRs across repositories with intelligent filtering and status updates
Installation
npx skills add https://github.com/edanstarfire/claudecode_webui --skill github-pr-managerSkill Details
Create, view, and merge GitHub pull requests with validation. Use when creating PRs from branches, checking PR status, or merging approved PRs with cleanup.
Overview
# GitHub PR Manager
Instructions
When to Invoke This Skill
- Creating a pull request after implementing changes
- Checking status of an existing PR (mergeable, checks, reviews)
- Merging an approved PR
- Validating PR state before operations
Capabilities
- Create Pull Request
- Generate PR from current branch
- Create descriptive title and body
- Link to related issues
- Add appropriate labels
- View PR Status
- Check if PR is open/closed/merged
- Verify mergeable state
- Review CI check status
- Check review approvals
- Merge Pull Request
- Squash merge with single commit
- Validate before merging
- Branch cleanup handled externally
Standard Workflows
#### Creating a PR
- Verify Current Branch
```bash
git branch --show-current
```
Ensure you're on a feature branch, not main/master
- Push Branch (if not already pushed)
```bash
git push -u origin HEAD
```
- Create PR
```bash
gh pr create --title "
## Summary
Resolves #
## Changes Made
-
## Testing
-
π€ Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
```
#### Checking PR Status
- Fetch PR Information
```bash
gh pr view
```
- Interpret Results
- state: "OPEN", "CLOSED", "MERGED"
- mergeable: "MERGEABLE", "CONFLICTING", "UNKNOWN"
- reviewDecision: "APPROVED", "CHANGES_REQUESTED", "REVIEW_REQUIRED"
#### Merging a PR
- Validate PR State
```bash
gh pr view
```
- Verify state is "OPEN"
- Verify mergeable is "MERGEABLE"
- Extract branch name for cleanup
- Perform Squash Merge
```bash
gh pr merge
```
This will:
- Squash all commits into one
- Merge to main/master
Important: Do NOT use --delete-branch flag and do NOT switch back to main. Branch cleanup and worktree disposal are handled by the orchestrator after the PR is merged.
Error Handling
Authentication Issues:
- Run:
gh auth status - If not authenticated:
gh auth login
PR Not Mergeable:
- Check for conflicts: Inform user to resolve merge conflicts
- Check for failing CI: Wait for checks to pass
- Check for required reviews: Request reviews from team
Worktree Environment:
- Workers operate in isolated git worktrees
- Do NOT attempt to delete branches or switch to main after merging
- Worktree cleanup is handled by the orchestrator after PR merge
- Focus only on the merge operation itself
PR Title and Body Standards
Title Format:
```
```
Types: feat, fix, chore, docs, refactor, test, perf
Body Format:
```markdown
Summary
Resolves #
<1-2 sentence description>
Changes Made
Testing
Screenshots (if UI changes)
π€ Generated with [Claude Code](https://claude.com/claude-code)
```
Examples
Example 1: Create PR from feature branch
```
User: "Create a PR for this feature"
Action:
- Verify on feature branch
- Push if needed
- Create PR with structured body linking to issue
Output: PR URL and number
```
Example 2: Check PR status before merging
```
User: "Is PR #123 ready to merge?"
Action:
- Fetch PR status
- Check mergeable state, CI status, reviews
Output: "PR #123 is ready to merge" or list blockers
```
Example 3: Merge approved PR
```
User: "Merge PR #123"
Action:
- Validate PR state (gh pr view 123 --json headRefName,state,mergeable)
- Squash merge (gh pr merge 123 --squash)
Output: "PR #123 merged successfully. Worktree cleanup will be handled by orchestrator."
```
More from this repository10
Retrieves recent issues related to login, presents most relevant issue ``` Reads and analyzes GitHub issues to provide comprehensive context and implementation details.
Manages Git branches by safely creating, switching, and cleaning up branches with intelligent handling of uncommitted changes.
Synchronizes local main branch with remote, pulling latest changes and ensuring a clean, up-to-date base for new worktrees.
Generates well-structured, semantic git commit messages by guiding developers through a standardized commit message composition process.
requirement-validator skill from edanstarfire/claudecode_webui
Explores codebases systematically by identifying relevant files, tracing functionality, and understanding architectural patterns through targeted search techniques.
Generates comprehensive, step-by-step implementation plans with clear technical details, testing strategies, and risk assessment for complex software features.
process-manager skill from edanstarfire/claudecode_webui
Analyzes code changes by tracing direct and indirect dependencies, identifying potential impacts and risks before implementing modifications.
Validates git repository state by checking working directory status, branch conflicts, and repository health before critical git operations.