rhdh-pr-mr
Pushes a topic branch and opens a GitHub pull request or GitLab CEE merge request for CI and agent automation, then links Jira via /rhdh-jira-link only when…
Skill by redhat-developer
Chalk Labs
Need help deploying rhdh-pr-mr?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/redhat-developer-rhdh-pr-mr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rhdh-pr-mr
What's inside
- Skill name
rhdh-pr-mr- Description
- Pushes a topic branch and opens a GitHub pull request or GitLab CEE merge request for CI and agent automation, then links Jira via /rhdh-jira-link only when an issue key is known. Use for "open a PR", "create the merge request", "push and open PR/MR after a yarn or base-image bump", or when another CI skill needs a shared opener. Not for plugin changeset publish (/rhdh-pr-create) and not a replacement for midstream createPR.sh inside updateBaseImages.sh.
- License
- Apache-2.0
- Compatibility
- bash, git, jq, curl; gh for GitHub; PRIVATE_TOKEN (and optional glab) for GitLab CEE; JIRA_API_TOKEN when linking.
- Instructions
- 69 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- SKILL.md
- openai.yaml · agents/
- create-pr-mr.sh · scripts/
- smoke.sh · tests/
SKILL.md (first lines)
# 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). - **Requires** a known Jira key and calls `/rhdh-jira-link` after opening. Stop before pushing when no issue is known; never invent one. - **Requires** an attribution trailer on the commit and in the description. The payload is open: name the tool, then add only the agent, model, provider and thinking level that are actually known. - Midstream `createPR.sh` (distgit) stays for `updateBaseImages.sh` until a later migration. ## Script ```bash 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 \ --attribution '<tool> (<agent> + <model> (<provider>), thinking: <level>)' \ [--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. Resolve the `--attribution` value from the current work, filling in whatever is known and stopping there: | Known | Value | | --- | --- | | tool + agent + model + provider + thinking | `paseo (pi + DeepSeek V4.1 Flash (EnMaaS), thinking: off)` | | tool + model + thinking | `pi (GLM 5.3, thinking: high)` | | tool only | `pi` | - **Tool** is where the agent ran: `paseo`, `pi`, `cursor`, a CI bot script. - **Agent, provider, thinking level** are optional and go in that order; `thinking:` is a labelled field, not a third model word. - **Never guess and never emit a placeholder.** A missing model is dropped, not filled with a stand-in string that the next agent will copy verbatim. No `Unknown AI`, no invented version numbers, no borrowed IDE name. - If `--attribution` is omitted, the script falls back to `PI_MODEL` and `PI_REASONING_LEVEL` (`pi (<model>, thinking: <level>)`) before failing. - The trailer key written is `Assisted-By:`; `Generated-by:` is accepted on read, so older callers and existing commits keep working. A value that already starts with either key is used verbatim. - `--assisted-by` and `RHDH_ASSISTED_BY` remain accepted as aliases of `--attribution` and `RHDH_ATTRIBUTION`. Before pushing, the script verifies that the latest commit carries an attribution trailer. Any payload satisfies it — the commit trailer and the `--attribution` value do not have to match, so a caller can pass less detail than the commit has. The script adds the resolved line (when the description has none) and `Related Jira: [KEY](https://redhat.atlassian.net/browse/KEY)` to the PR/MR description. GitLab MRs set `remove_source_branch: true` so merging deletes the topic branch. 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` | Add the linked issue to the description, then invoke `/rhdh-jira-link` (`link-pr-mr.js link`). The Jira comment links the PR/MR title (`repo #id: title [base]`) to the URL (plus optional Adjusted fields). | | Issue set but no token / missing link script | The linked description remains; warn that the Jira backlink was skipped. | 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. Resolve the most specific available attribution from the table above — fill in what you know, stop at the tool name — and add that `Assisted-By:` trailer to the commit. 2. Resolve the Jira key from the conversation. Stop before pushing when none is known; never turn a plain issue key in the description into an unlinked label. 3. Follow `/mutation-gate` for push + open + Jira link. 4. Invoke `/rhdh-pr-mr` by name (or run the script path when already inside a skill clone), passing `--issue` and `--attribution`. 5. Report the `url:` line. ## Tests ```bash bash -n "$SKILL/scripts/create-pr-mr.sh" shellcheck --severity=warning "$SKILL/scripts/create-pr-mr.sh" "$SKILL/scripts/create-pr-mr.sh" --help "$SKILL/tests/smoke.sh" ``` ## Completion Done when the topic branch is pushed; the latest commit and PR/MR description carry an attribution trailer whose payload names every part that was actually known; the description contains the Markdown Jira link; a Jira Web link was updated or its missing credential was reported; and a GitLab MR is configured to delete its source branch after merge.
From redhat-developer/rhdh-skills, Apache-2.0.
More from redhat-developer/rhdh-skills
- 0.641score
rhdh-plugin-nfs-migration
redhat-developer
Converts a legacy Backstage frontend plugin used by Red Hat Developer Hub to the New Frontend System (NFS): replace createPlugin and createRoutableExtension…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-local
redhat-developer
Operates a local Red Hat Developer Hub environment with the rhdh-local-setup customization system: enable or disable dynamic plugins, apply configuration…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-overlay
redhat-developer
Manages the rhdh-plugin-export-overlays repository and Extensions Catalog: onboard plugins, update upstream versions, repair export or publish failures…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-plugin-bug-fix
redhat-developer
Reproduces, diagnoses, and fixes a defect in a Backstage plugin inside the rhdh-plugins or community-plugins repositories: resolve the report from a RHIDP…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-plugin-catalog-index-status-and-update-flow
redhat-developer
Reports Red Hat Developer Hub plugin catalog index status for a release branch or x.y.z and updates the downstream quay.io/rhdh/plugin-catalog-index after you…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-jira-create
redhat-developer
Opens new work in RHDH Jira and decides what kind of work it is — Feature or Feature Request in RHDHPLAN, Epic, Story, Task, Spike or Vulnerability in RHIDP…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-jira-link
redhat-developer
Ties a GitHub pull request or GitLab merge request to an RHDH Jira issue in RHIDP, RHDHPLAN, RHDHBUGS, or RHDHSUPP: attach the Jira Web link titled `repo #N…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-konflux-tasks
redhat-developer
Bumps Konflux Tekton task bundle digests in `.tekton` and `.tekton-templates`, applies each task's MIGRATION.md, regenerates PipelineRuns, and checks pins…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-base-images
redhat-developer
Analyzes and updates the `FROM` base images, Node headers, Go toolchain, and `rpms.lock.yaml` files in rhdh, rhdh-operator, and rhdh-must-gather; pin…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-backport
redhat-developer
Automate the RHDH plugin backport process from PR cherry-pick to changelog.
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-yarn-bump
redhat-developer
Bumps Yarn Berry across the RHDH repos — rhdh-plugins, rhdh midstream, rhdh-plugin-export-overlays, rhdh-cli, and GitLab CEE rhidp/rhdh and…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-forge
redhat-developer
Reads GitHub and GitLab and constructs unexecuted forge payloads for the other RHDH skills: parse an issue, pull request, or merge request reference, fetch…
SkillAFreshness: A★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 40
- Open issues
- 1
- Last commit (this folder)
- Oct 8, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/redhat-developer/rhdh-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from redhat-developer
- 0.641score
rhdh-base-images
redhat-developer
Analyzes and updates the `FROM` base images, Node headers, Go toolchain, and `rpms.lock.yaml` files in rhdh, rhdh-operator, and rhdh-must-gather; pin…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-konflux-tasks
redhat-developer
Bumps Konflux Tekton task bundle digests in `.tekton` and `.tekton-templates`, applies each task's MIGRATION.md, regenerates PipelineRuns, and checks pins…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-plugin-catalog-index-status-and-update-flow
redhat-developer
Reports Red Hat Developer Hub plugin catalog index status for a release branch or x.y.z and updates the downstream quay.io/rhdh/plugin-catalog-index after you…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-yarn-bump
redhat-developer
Bumps Yarn Berry across the RHDH repos — rhdh-plugins, rhdh midstream, rhdh-plugin-export-overlays, rhdh-cli, and GitLab CEE rhidp/rhdh and…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-jira-create
redhat-developer
Opens new work in RHDH Jira and decides what kind of work it is — Feature or Feature Request in RHDHPLAN, Epic, Story, Task, Spike or Vulnerability in RHIDP…
SkillAFreshness: A★ 18Claude Code +9 - 0.641score
rhdh-jira-link
redhat-developer
Ties a GitHub pull request or GitLab merge request to an RHDH Jira issue in RHIDP, RHDHPLAN, RHDHBUGS, or RHDHSUPP: attach the Jira Web link titled `repo #N…
SkillAFreshness: A★ 18Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get rhdh-pr-mr running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
rhdh-pr-mr skill. Agent Mart. https://agentmart.dev/skills/redhat-developer-rhdh-pr-mr (last updated 2026-10-24)