gh-pr

gh-pr is a skill for Claude Code, Codex from mir-am/skills-agents-ai-coding. It costs 16 tokens per session (2,090 once invoked), scanned A, original, MIT.

A GitHub pull-request creation workflow that builds a title and description from the current feature branch's commits and session work. A pull request is a request to review and merge branch changes into the main codebase.

In plain words
What is it for?
Use it to create a pull request from a feature branch, link a related issue, assign it to the authenticated GitHub user, and include a concise summary of the changes.
Why use it?
It removes repetitive checks and writing when turning completed branch work into a pull request. It can also push the branch and update the root changelog when required.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a pull request from a feature branch, link a related issue, assign it to the authenticated GitHub user, and include a concise summary of the changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mir-am/skills-agents-ai-coding/gh-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mir-am/skills-agents-ai-coding --skill gh-pr
Clone the repo
git clone --depth 1 https://github.com/mir-am/skills-agents-ai-coding

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-pr/github.svg)](https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-pr)
Your own site
<a href="https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-pr"><img src="https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/gh-pr"><img src="https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/gh-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02090
Opus 5.5 $0.00006 $0.00836
Sonnet 5.5 $0.00003 $0.00418
Haiku 4.5 $0.00002 $0.00209

Measured 5d ago against content hash ca4655c69bd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gh-pr/SKILL.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

  • Validate feature branch has commits ahead of master/main
  • Push branch to remote if needed
  • Generate PR title summarizing all commits + session work (no type prefix)
  • Create concise PR description with summary and 3-5 key changes
  • Link GitHub issue if working on one in current session
  • Create GitHub PR using gh CLI and self-assign it to the authenticated GitHub user
  • Update root CHANGELOG.md when present with one PR-linked unreleased bullet using the PR URL, then commit and push that changelog update back to the same branch

When to use me

Use this skill when the user asks to create a GitHub pull request from the current feature branch.

Prerequisites

  • Must be on a feature branch (not master/main)
  • Branch must have commits ahead of base branch
  • GitHub CLI (gh) must be installed and authenticated
  • If gh not installed → error: "GitHub CLI not found. Install: https://cli.github.com/"

Validation Workflow

  1. Check current branch: git branch --show-current
  2. If on master or main → error message and exit
  3. Check for commits ahead of base:
    • Try: git log master..HEAD --oneline
    • Fallback: git log main..HEAD --oneline
  4. If no commits ahead → warn user and exit

Push Workflow

  1. Check if branch exists on remote: git ls-remote --heads origin <branch-name>
  2. If not on remote: git push -u origin <branch-name>
  3. If exists on remote: git push
  4. If a follow-up changelog sync creates a new CHANGELOG.md commit after PR creation, push that commit to the same branch as well

PR Title Generation

  • Analyze all commit messages in the branch
  • Analyze agent's session context and work completed
  • Summarize into one cohesive title (no type prefix)
  • If commits use conventional format (feat:, fix:), strip type prefixes
  • Capitalize first letter
  • Examples:
    • Add CSV export functionality and update documentation
    • Resolve NPE in call graph builder
    • Implement parallel test execution

PR Description Generation

Read the full file on GitHub · 202 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 202 lines · 16 tokens per session scan A ca4655c69bd3

Subscribe to this mod's changes

gh-pr is a skill published in the GitHub repository mir-am/skills-agents-ai-coding (2 stars, last pushed 6d ago), licensed MIT. It adds 16 tokens to every session and 2,090 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.