smithery.ai

create-github-pr

Create a GitHub pull request with generated description

First seen Apr 25, 2026

Installation

$ npx skills add https://smithery.ai

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 smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

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

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,657 B
  • docs SUMMARY.md 79 B

History

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

SKILL.md

Create GitHub PR

Create a GitHub pull request with an auto-generated description based on branch commits.

Instructions

Extract the agf_id parameter to use as a prefix for the PR title.

  1. Generate PR Title: Create a PR title prefixed with <agf_id> - followed by a descriptive title based on the changes
  2. Generate PR Body:

- IF the project contains .github/PULLREQUESTTEMPLATE.md: - Use the template to structure the PR body - Fill in sections based on all commits on the current branch that are not in main/master branch - ELSE: - Generate a brief but precise description - Include summary of all commits on the current branch that are not in main/master branch

  1. Verify Clean State: Use git status --porcelain to check for uncommitted changes

- If any uncommitted changes exist, exit with an error message

  1. Push Changes: Push all changes to remote branch using git push --set-upstream origin $(git branch --show-current)
  2. Create or Display PR:

- Check if PR already exists using gh pr view - IF PR exists: Print "PR already exists" - ELSE: Create draft PR using gh pr create --draft --title "<prtitle>" --body "<prbody>"

Report

Print the result of the gh pr view command to display the PR URL and details.

Example

agf_id: agf-001
PR Title: agf-001 - Add user authentication feature
PR URL: https://github.com/owner/repo/pull/123