rhdh-pr-mr

rhdh-pr-mr is a skill for Claude Code, Codex from redhat-developer/rhdh-skills. It costs 118 tokens per session (848 once invoked), scanned A, original, Apache-2.0.

A shell-based workflow that pushes a topic branch and opens a GitHub pull request or GitLab merge request. It can link the request to Jira when a known issue key and token are provided.

In plain words
What is it for?
Use it to publish a branch, create a PR or MR with a title and body, optionally add labels, and link it to an existing Jira issue.
Why use it?
It removes repetitive branch-pushing and pull-request or merge-request setup after a code change. It avoids inventing a Jira issue when no key is available and supports a dry run or no-browser operation.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the CI plugin — 11 skills shipped together

Good fit Use it to publish a branch, create a PR or MR with a title and body, optionally add labels, and link it to an existing Jira issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redhat-developer/rhdh-skills/rhdh-pr-mr
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 redhat-developer/rhdh-skills --skill rhdh-pr-mr
Clone the repo
git clone --depth 1 https://github.com/redhat-developer/rhdh-skills

Made for: Claude Code, Codex.

Or install CI, the plugin that ships this one along with the rest of its 11 skills.

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 rhdh-pr-mr

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-pr-mr/github.svg)](https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-pr-mr)
Your own site
<a href="https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-pr-mr"><img src="https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-pr-mr/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 rhdh-pr-mr

Your own site · 80×15
<a href="https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-pr-mr"><img src="https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-pr-mr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 848 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00118 $0.00848
Opus 5.5 $0.00047 $0.00339
Sonnet 5.5 $0.00024 $0.00170
Haiku 4.5 $0.00012 $0.00085

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

Security

Grade A, and why

rhdh-pr-mr scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/create-pr-mr.sh, tests/smoke.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: "bash, git, jq, curl; gh for GitHub; PRIVATE_TOKEN (and optional glab) for GitLab CEE; JIRA_API_TOKEN when linking."
skills/ci/rhdh-pr-mr/SKILL.md · 80 lines

How it starts

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

RHDH PR / MR opener

Shared script for push + open. Caller owns the commit and /mutation-gate approval when an agent is driving. Weekly bots may call the script unattended.

Boundaries

  • Not /rhdh-pr-create (plugin changesets, recordings, monorepo publish).
  • Does call /rhdh-jira-link link-pr-mr.js when --issue or JIRA_ISSUE is set.
  • Skips Jira when no key is known — never invent one.
  • Midstream createPR.sh (distgit) stays for updateBaseImages.sh until a later migration.

Script

SKILL=<this skill's directory>
"$SKILL/scripts/create-pr-mr.sh" \
  --cwd /path/to/checkout \
  --base main \
  --head chore/my-topic \
  --title 'chore: short summary' \
  --body-file /tmp/body.md \
  [--issue RHIDP-12345] \
  [--label ok-to-test] \
  [--dry-run]

Default is --no-open (no browser). Pass --open only for interactive agent runs. GITLAB_PIPELINE=true forces no browser.

The script appends [<base>] to --title when that suffix is missing, including for main (chore: short summary becomes chore: short summary [main]). A title that already ends with the base branch is left as-is.

Stdout includes url: …. Exit 0 if a PR/MR already exists for --head.

Jira

Condition Behavior
--issue KEY or JIRA_ISSUE set + JIRA_API_TOKEN After open, invoke /rhdh-jira-link (link-pr-mr.js link). The Jira comment is PR: <url> or MR: <url> (plus optional Adjusted fields).
Issue set but no token / missing link script Warn; PR/MR still succeeds
No issue [INFO] no Jira issue; skip link

Override the link scripts directory with RHDH_JIRA_LINK_SCRIPTS when the sibling skill is not next to this one in the pack checkout.

Agents

  1. Follow /mutation-gate for push + open (+ link if issuing).
  2. Invoke /rhdh-pr-mr by name (or run the script path when already inside a skill clone). Pass --issue when the conversation already has a Jira key.
  3. Report the url: line.

Tests

Read the full file on GitHub · 80 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · +4 lines 53583358a6f2
  2. 15d ago First seen · 76 lines · 118 tokens per session scan A 52380d815999

Subscribe to this mod's changes

rhdh-pr-mr is a skill published in the GitHub repository redhat-developer/rhdh-skills (18 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 848 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.