mindgames/skills · Archived

github-pull-request

Use when the user asks to create a pull request. Build a complete PR using best-practice structure with rich details on changes, verification, QA evidence, risks, and rollout notes. Include issue linkage and clear testing commands/results in the PR body.

First seen Mar 9, 2026

Installation

$ npx skills add mindgames/skills --skill github-pull-request

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mindgames/skills · top by installs.

npx skills add mindgames/skills

Browse all from mindgames/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,194 B
  • docs SUMMARY.md 281 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Github Pull Request

Path Resolution (avoid missing-skill errors)

  • Always open this skill using the absolute path from the active session skills list (for example <agent-skills-root>/github-pull-request/SKILL.md).
  • Do not try guessed repo-relative skill paths unless the session explicitly lists that exact path.
  • If you hit a missing-skill error from an old path, re-open this skill from the active session skills list and continue (do not retry repo paths).

Workflow

  1. Confirm branch and scope

- Run git branch --show-current. - If branch looks wrong for the requested work, ask for correction.

  1. Gather change context

- Run git status -sb. - Run git diff --stat origin/$(git rev-parse --abbrev-ref @{upstream}..HEAD) when upstream exists. - If no upstream exists, use git diff --stat and git diff against the likely target branch.

  1. Decide PR title

- Follow type(scope): short imperative summary format. - Keep title under 72 chars where possible.

  1. Build PR body from required sections:

- Summary - Why this change - What changed (bullets grouped by feature/file area) - Files changed - QA / testing (exact commands + outcomes) - Risk and impact - Rollback plan - Related issues - Checklist

  1. Identify related issue(s)

- Parse issue number from branch if present (examples: 123, issue-123, fix/123-...). - Add Fixes #<issue> or Closes #<issue> in the PR body when confirmed.

  1. Push branch if needed

- If branch has no upstream, run git push -u origin <branch>.

  1. Pre-create guards (avoid gh pr create hard failures)

- Check whether an open PR already exists for this branch: - gh pr list --head <branch> --state open --json number,url - If one exists, stop and report the existing PR link instead of creating a duplicate. - Check commit delta against intended base branch before create: - git rev-list --count <base>..HEAD - If count is 0, stop and report "no commits to open PR against <base>" with next action: - verify current repo/branch, or - push the intended commits, or - switch to the correct branch.

  1. Create PR

- If user requested draft, pass --draft. - Write the PR body to a temp file and use --body-file to avoid shell quoting/interpolation bugs with Markdown/backticks. - Preferred pattern: - BODYFILE=$(mktemp) - cat > "$BODYFILE" <<'EOF' ... EOF - gh pr create --title "<title>" --body-file "$BODYFILE" - rm -f "$BODYFILE" - If gh auth is unavailable or user is not in GitHub environment, output the prepared title and body text for manual submission.

  1. Report back

- Include PR link if created, target branch, and review expectations. - Ask explicitly what should be prioritized in review.

PR body template

## Summary
- ...

## Why
- ...

## What changed
- ...

## Files changed
- ...

## QA / Testing
- Command: `...` — Result: ...
- Command: `...` — Result: ...

## Risks and impacts
- ...

## Rollback plan
- ...

## Related issues
- Fixes #123 (optional)

## Checklist
- [ ] Tests pass
- [ ] No obvious regressions
- [ ] Documentation updated where needed
- [ ] Rollback path documented

Hard rules

  • Never submit a PR without a QA/testing section.
  • Never claim tests passed without listing exact commands and outputs.
  • Do not include secrets, credentials, or internal URLs in the PR description.
  • Ask before adding reviewers/labels if not already provided.
  • Never merge a PR automatically; only merge when the user explicitly instructs it.

Optional metadata enrichment with gh

  • Use gh pr create and gh pr view for consistency checks.
  • If labels are requested, add after creation:

- gh pr edit <number> --add-label <label>

  • If reviewers are requested:

- gh pr edit <number> --add-reviewer <users>