Reads GitHub and GitLab to construct unexecuted forge payloads for RHDH skills: parse issues/PRs/MRs, fetch details, resolve plugin workspaces, inspect checks/pipelines, read repo files, and build gh/glab commands for writes.
Ships in plugins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One home for reading a forge and constructing its write payloads. Issue parsing,
issue fetch, workspace resolution, check and pipeline reads, repository content
reads, and the gh and glab behaviours that mislead a caller who has not met
them before all live here. Otherwise, every skill that touches a forge keeps its
own drifting copy.
This skill reads. It never executes a write.
GitHub work runs through gh. GitLab work — rhidp/rhdh and
rhidp/rhdh-plugin-catalog on gitlab.cee.redhat.com — runs through glab,
which is only needed when a GitLab host is in play.
| Outcome | Load and follow |
|---|---|
| Turn a GitHub issue reference into structured context | Run uv run scripts/fetch_issue_context.py <reference> |
| Parse a GitHub or GitLab reference without a network call | references/issue-context.md |
| Resolve the plugin workspace an issue belongs to | references/issue-context.md |
| Read PR state, labels, assignees, files, or check status | references/gh-cli.md |
| Explain a failing, stale, or missing check | references/gh-cli.md |
| Read a file from a repository or a PR branch | references/gh-cli.md |
| Read a GitLab issue, MR state, pipeline status, or file | references/glab-cli.md |
| Prepare a GitHub pull-request creation payload | references/gh-cli.md, then the caller's mutation gate |
| Prepare a GitLab merge-request creation payload | references/glab-cli.md, then the caller's mutation gate |
Prepare a comment, label, assignee, or /publish payload | references/issue-context.md, then the caller's mutation gate |
| Prepare a GitLab comment, label, or approval payload | references/glab-cli.md, then the caller's mutation gate |
Callers invoke this skill by name and consume what it returns. Do not load its files from another skill.
/rhdh-jira-api for the detail.gh pr checks and statusCheckRollup are cached views and go stale. Confirm
a check verdict against gh run list --branch before acting on it.gh auth status or glab auth status fails,
stop and report the missing capability.The command patterns in the references are payloads, not authorization. This skill builds the command and hands it back unexecuted, which is what leaves the decision with the user rather than with the module that knows the syntax.
Before any pull request, merge request, comment, label, assignee, review,
approval, or /publish write, the calling skill invokes /mutation-gate and
follows it. This skill returns the exact argument vector and a shell-safe
rendering, the canonical host and repository, the target object or base and head
branches, the title when applicable, and the absolute body-file path. It also
returns the body-file contents for preview and a read-only verification command.
It never runs the write command.
For PR and MR creation, reject a missing or multiline title, a relative or
unreadable body file, an unresolved repository, or an empty base or head branch.
Treat each value as one argument. Do not interpolate a title or body into shell
syntax, use eval, or replace the body file with a heredoc.
A request to fetch, triage, or analyze is intent to read. It approves no write.
scripts/fetch_issue_context.py prints one JSON object and nothing else. There
is no envelope: the issue fields are the whole document.
{
"key": "owner/repo#607",
"summary": "issue title",
"source": "github",
"url": "https://github.com/owner/repo/issues/607",
"repository": "owner/repo",
"number": 607,
"state": "OPEN",
"labels": [],
"description": "full issue body",
"workspace": {"name": null, "strategy": "label"},
"comments": []
}
key is owner/repo#number, summary is the issue title, state is OPEN or
CLOSED, and workspace.strategy is one of label, body, title,
package, or unresolved.
/rhdh-jira-api returns the same issue shape with source: jira, and a GitLab
issue read through references/glab-cli.md fills the same fields with
source: gitlab, so a caller consumes any of the three without branching on
shape.
Keep an unresolved workspace null with strategy: unresolved rather than
inventing a name.
scripts/fetch_issue_context.py deterministically builds that document from a
GitHub issue URL, a bare #number, or owner/repo#number. A GitLab issue is
read with glab instead.references/issue-context.md covers reference parsing for both forges, field
extraction, workspace resolution, and the gated interaction payloads.references/gh-cli.md covers gh and jq read patterns, pull-request
creation payloads, check and workflow-run reads, repository content reads,
the failure table, and the overlay repository's /publish rules.references/glab-cli.md covers glab reads for merge requests, pipelines,
and repository content, GitLab merge-request creation payloads, the GitLab
field names that differ from GitHub's, and the other commands it constructs
but never runs.A fetch is complete when the JSON carries key, summary, and source, url
was rebuilt from the resolved namespace, repository, and number rather than
copied from the request, and workspace.strategy names the rule that resolved
it or reads unresolved with name: null. A check verdict is complete only
once gh run list --branch confirmed it on GitHub, or the pipeline for the MR
head SHA confirmed it on GitLab; a gh pr checks or statusCheckRollup value
alone is a cached view, not a verdict. A write payload is complete when it
is handed back unexecuted for the caller's mutation gate. An interaction payload
states the exact command, repository, issue, PR, or MR number, head SHA, and body
or label. A PR or MR creation payload carries the canonical repository, exact
base and head branches, one-line title, absolute body-file path, body preview,
argument vector, shell-safe command, and read-only verification command. A Jira
key found in the issue is reported to the caller, never resolved here.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
github, gitlab, forge, issue-parsing, pull-request, merge-request, gh-cli, glab-cli
19 skills in this plugin
/backstage-api-changesNames the breaking and notable changes between the early Backstage New Frontend System alpha and the current GA surface, for Red Hat Developer Hub plugins: NavItemBlueprint removed in favour of nav auto-discovery from PageBlueprint, config.schema replaced by top-level configSchema with direct zod/v4 imports, AppRootWrapperBlueprint Component renamed to component and moved to @backstage/plugin-app-react, defaultPath/defaultTitle/defaultGroup renamed, SubPageBlueprint added, useRouteRef returning undefined, and AppDrawerContentBlueprint taking element rather than loader. Use when NFS code that used to compile now fails, a Blueprint param produces a TypeScript error, or a plugin migrated against an older alpha needs bringing forward./mutation-gateSupplies the approval rule another RHDH skill applies when it is already about to change something outside the session: how to state each operation, what approval binds to, what to report afterwards, and how to keep credentials out of a plan preview. Cited by name from the skill doing the work. Not an entry point — it performs no forge, Jira, or repository action itself, and a request to open, comment, transition, push, or post belongs to the skill that owns that target./prose-editingEdits or audits prose that the caller supplies as text or a file, preserves its claims and voice, removes machine-writing patterns, and verifies the result with the bundled linter. Use for explicit requests such as "rewrite this draft", "edit this existing PR body", "make this sound human", or "audit this prose without changing it". It does not review code, decide what a pull request or Jira issue should say, or compose from a blank sheet./plugins:rhdh-forgefrom plugins
npx claudepluginhub redhat-developer/rhdh-skills --plugin pluginsOther plugins' skills for the same job