github-pr-workflow

Automates the GitHub pull request lifecycle from branch creation through CI monitoring and merge.

1|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/specdog/collar --skill github-pr-workflow-specdog
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-pr-workflow
Source: https://github.com/specdog/collar/tree/main/skills/github/github-pr-workflow
Command: npx skills add https://github.com/specdog/collar --skill github-pr-workflow-specdog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing pull requests involves repetitive manual steps across branching, committing, PR creation, CI monitoring, failure diagnosis, and merging, often requiring different tooling depending on whether the GitHub CLI is installed. ## Core Features & Use Cases - Full PR Lifecycle Automation: Covers branch creation, conventional commits, PR opening, CI status polling, and squash merging with both gh CLI and git + curl API fallbacks. - CI Failure Diagnosis and Auto-Fix Loop: Reads failed workflow logs, identifies common failure patterns (tests, lint, types, build, permissions), applies fixes, and re-verifies up to three attempts. - PR Templates and Commit Standards: Ships bugfix and feature PR body templates plus a Conventional Commits reference for consistent commit messages. - Use Case: After making code changes, ask the agent to push the branch, open a PR, watch CI, automatically fix a failing lint check, and squash-merge once checks pass. ## Quick Start Create a pull request for my current branch, monitor its CI checks, fix any failures, and merge it when green.

Frequently Asked Questions about github-pr-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub pull request from the command line?▼

Push your branch with git push -u origin HEAD, then run gh pr create with a title and body. Without the gh CLI, send a POST request to the GitHub API pulls endpoint with your token, head branch, and base branch.

How to automatically fix failing CI checks on a pull request?▼

Fetch the failed run logs with gh run view --log-failed or the API logs endpoint, identify the error pattern (test, lint, type, or build failure), patch the code, commit, push, and re-check status. Repeat up to three attempts before asking the user.

Can I manage GitHub PRs without the gh CLI installed?▼

Yes, every operation has a git plus curl fallback using the GitHub REST API with a GITHUB_TOKEN. This covers PR creation, status checks, log downloads, merging, and even auto-merge via the GraphQL API.

How do I check CI status for a pull request from the terminal?▼

Run gh pr checks or gh pr checks --watch to poll until completion. With curl, query the commits status endpoint and check-runs endpoint for the branch HEAD SHA, optionally looping every 30 seconds until the state resolves.

What commit message format does this workflow use?▼

It follows Conventional Commits: type(scope): description, with types like feat, fix, refactor, docs, test, ci, chore, and perf. Bodies wrap at 72 characters and can link issues with Closes #42 or mark breaking changes with an exclamation mark.

Why does my CI fail with permission or auth errors on GitHub Actions?▼

Permission failures usually mean the workflow lacks required token scopes or secrets are missing. Add a permissions block to the workflow YAML, verify secrets exist in repo settings, and note that fork PRs cannot access some secrets by design.