Skip to content
Back to skills

Rhdh Context

ASecurity

Resolves the environment the other RHDH skills start from and hands back one JSON document: which RHDH repositories are checked out and where — rhdh, rhdh-operator, rhdh-plugins, rhdh-plugin-export-overlays, rhdh-plugin-catalog, rhdh-cli, rhdh-chart, rhdh-local, backstage and the rest — which tools are on PATH, and the target RHDH and Backstage versions with the source that produced them. Also owns the `rhdh` CLI behind workspace status, worklogs, and todos. Use for RHDH orientation, "where i...

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
toolspythongobashgitfrontendbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add redhat-developer/rhdh-skill --skill rhdh-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rhdh Context?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rhdh Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/redhat-developer-rhdh-context/badge)](https://www.skillsdirectory.com/skills/redhat-developer-rhdh-context)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rhdh-context
description: >-
  Resolves the environment the other RHDH skills start from and hands back one
  JSON document: which RHDH repositories are checked out and where — rhdh,
  rhdh-operator, rhdh-plugins, rhdh-plugin-export-overlays, rhdh-plugin-catalog,
  rhdh-cli, rhdh-chart, rhdh-local, backstage and the rest — which tools are on
  PATH, and the target RHDH and Backstage versions with the source that produced
  them. Also owns the `rhdh` CLI behind workspace status, worklogs, and todos.
  Use for RHDH orientation, "where is my rhdh checkout", "which Backstage version
  goes with RHDH 1.10", `rhdh status`, `rhdh doctor`, `rhdh config`,
  `rhdh workspace`, `rhdh log`, `rhdh todo`, and for the read-only context
  another RHDH skill needs before it starts. Read-only — implementation work
  belongs to the domain skill that owns the requested outcome.
compatibility: "Python 3.9+ and uv. git optional; the CLI reports a repository as unconfigured rather than failing."
---

# 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:

```bash
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.

## Preserved CLI

Run the CLI from this skill directory as `uv run scripts/rhdh <command>`. It is a
bundled wrapper, not an installed executable: `npx skills add` copies skill
directories and installs no console script. The wrapper declares no
dependencies — the `rhdh` package beside it is stdlib-only.

| Outcome | Interface |
|---|---|
| Environment orientation and diagnostics | `uv run scripts/rhdh status`, `uv run scripts/rhdh doctor` |
| Layered project/user configuration | `uv run scripts/rhdh config ...` |
| Repository submodule setup | `uv run scripts/rhdh setup submodule ...` |
| Overlay workspace inspection | `uv run scripts/rhdh workspace ...` |
| Worklog state | `uv run scripts/rhdh log ...` |
| Todo state | `uv run scripts/rhdh todo ...` |

Config, worklog, todo, JSON output shapes, exit codes, and existing `.rhdh` state remain compatible.
Local runtime actions belong to `/rhdh-local`. The compatibility command
`uv run scripts/rhdh local ...` delegates to the standalone `rhdh-local` executable; this skill
does not import or locate another skill's files.

## Handoffs

Handoffs stay in the conversation. This skill prints its context as JSON; the caller reads it and
carries what it needs.

When the human needs context to survive into a *later session*, tell them to run `/handoff`, which
writes a summary to the operating system temporary directory. That is a human-invoked skill and a
deliberate action, not something this skill does on their behalf.

## Conditional references

- Read [references/rhdh-repos.md](references/rhdh-repos.md) when identifying an RHDH repository or
  explaining ecosystem relationships.

## Completion

Complete when the answer names the resolved repositories and their paths, the tool status, the
target RHDH and Backstage versions with the source that produced them, and every capability the
caller still has to set up. A repository that is not configured is reported with a null path, never
guessed. The caller receives the facts themselves, not a path to a file it has to open.

Files in this skill

  • SKILL.md4.4 KB
  • agents/openai.yaml117 B
  • references/rhdh-repos.md35.1 KB
  • references/versions.md5.8 KB
  • rhdh/__init__.py434 B
  • rhdh/__main__.py122 B
  • rhdh/cli.py50.8 KB
  • rhdh/config.py34.7 KB
  • rhdh/formatters.py10.6 KB
  • rhdh/todo.py9.8 KB
  • rhdh/worklog.py4.6 KB
  • rhdh/workspace.py3.4 KB
  • scripts/context.py5.4 KB
  • scripts/rhdh679 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.