rhdh-context

rhdh-context is a skill for Claude Code, Codex from redhat-developer/rhdh-skills. It costs 218 tokens per session (1,264 once invoked), scanned A, original, Apache-2.0.

A tool that reports the local Red Hat Developer Hub and Backstage setup: checked-out repositories, available command-line tools, versions, and configuration locations. Red Hat Developer Hub is a developer portal built on Backstage.

In plain words
What is it for?
Use it as the starting context for work on RHDH repositories, plugins, operators, charts, command-line tools, or Backstage configuration.
Why use it?
Other RHDH tasks need to know which repositories, tools, versions, and settings are actually available before they begin.

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 meta plugin — 9 skills shipped together , and of jira

Good fit Use it as the starting context for work on RHDH repositories, plugins, operators, charts, command-line tools, or Backstage configuration.

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

Made for: Claude Code, Codex.

Or install meta, the plugin that ships this one along with the rest of its 9 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-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/redhat-developer/rhdh-skills/rhdh-context"><img src="https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/rhdh-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 218 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,264 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 46
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00218 $0.01264
Opus 5.5 $0.00087 $0.00506
Sonnet 5.5 $0.00044 $0.00253
Haiku 4.5 $0.00022 $0.00126

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

Security

Grade A, and why

rhdh-context 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 2d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (rhdh/__init__.py, rhdh/__main__.py, rhdh/cli.py, …), 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.

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/reference/rhdh-context/SKILL.md · 94 lines

How it starts

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

RHDH Context

The environment facts every other RHDH skill starts from: which repositories are checked out and where, which tools are on PATH, which RHDH and Backstage versions this checkout targets, and where its configuration lives. Callers invoke this skill by name and read what it reports; they never inspect its files or import its Python package.

What this skill hands back

Run this before another skill needs repository, tool, version, or configuration facts:

python scripts/context.py --project-root <repo> --json

It prints one JSON object and nothing else: repositories is an array of {name, path}, tools maps each probed tool to installed, missing, or not-probed, and configuration carries the config paths plus targetRhdh, targetBackstage, and source. Without an explicit target, read the checkout's backstage.json and leave the RHDH version unset. For --target-rhdh X.Y, read backstage.json from release-X.Y in the configured RHDH clone, then try the same upstream branch if needed. Use main for next. The source identifies the checkout, ref, or URL that supplied the pin. For an explicit target, ref names the branch that was tried and errors says why no pin resolved, so a null Backstage version is diagnosable rather than silent.

Pass --packages with --target-rhdh to resolve the package versions at that ref instead of leaving them to a lookup. It adds a packages object holding ref, backstage, createApp, and the @backstage/* versions declared in packages/app (as frontend) and packages/backend (as backend). Each entry carries its declared spec, the shipping version, and resolvedFrom: manifest for an exact pin, patch-spec when a Yarn patch descriptor wraps one. Specs that resolve to neither land in unresolved, and unreadable refs in errors, never in a guessed number.

Consume the whole object. Reuse it within the session unless configuration or repository state changes. When a required capability is missing, name that capability and tell the human to run /setup-rhdh-skills; a model skill cannot invoke that human-only entry point.

Read the full file on GitHub · 94 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. 2d ago Changed · +8 lines a57c434477fa
  2. 3mo ago First seen · 86 lines · 218 tokens per session scan A 86a0be4af685

Subscribe to this mod's changes

rhdh-context is a skill published in the GitHub repository redhat-developer/rhdh-skills (21 stars, last pushed today), licensed Apache-2.0. It adds 218 tokens to every session and 1,264 once invoked, about $0.0009 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-08-30.

Related

rhdh-context compared with skills from other repositories

rhdh-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rhdh-contextredhat-developer/rhdh-skillsSkill21todayApache-2.0A218Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code