From rhdh
Use for ANY work related to "RHDH", "Red Hat Developer Hub", or "Developer Hub". This is the primary entry point for all RHDH tasks — plugin development, overlay management, environment setup, repo navigation, version compatibility, CI/CD, configuration, debugging, and general RHDH ecosystem knowledge. Routes to specialized sub-skills as needed.
npx claudepluginhub redhat-developer/rhdh-skill --plugin rhdhThis skill uses the workspace's default tool permissions.
<cli_setup>
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
<cli_setup> Locate and set the CLI variable:
The CLI script is at scripts/rhdh relative to this SKILL.md file (not the working directory).
When you read this file, note its path and derive the script location:
/path/to/skills/rhdh/SKILL.md/path/to/skills/rhdh/scripts/rhdhRHDH="/path/to/skills/rhdh/scripts/rhdh" # Use the actual path
Get oriented (run first):
$RHDH
This shows environment status, discovered repos, and available tools. </cli_setup>
<essential_principles>
Use `$RHDH log` and `$RHDH todo` to maintain context across sessions. Log milestones with tags. Create todos when blocked on external input. This enables resuming work without re-explaining context and builds an audit trail. See the `` section for details. **Before using JIRA or GitHub CLI**, read the corresponding reference file: - **GitHub:** `references/github-reference.md` — PR queries, CI analysis, `/publish` triggers - **JIRA:** `references/jira-reference.md` — JQL queries, issue creation, comment formatThese contain critical gotchas (jq escaping, JQL limitations, assignee format) that prevent common errors.
**Before any RHDH-related work**, consult `references/rhdh-repos.md` for a reference of all RHDH-related repositories, what each one is used for, and how they relate to each other. Use this when navigating between projects or understanding the overall RHDH ecosystem. Use `$RHDH config set` to set the path to the local checkout of the RHDH repositories.</essential_principles>
<context_scan> Run on invocation to understand current state:
$RHDH
This checks:
If repos not found: Run $RHDH config init to auto-detect or configure paths.
</context_scan>
$RHDH
If needs_setup: true: Stop and run $RHDH doctor to fix setup issues.
What would you like to do?
For working with the rhdh-plugin-export-overlays repository
For creating new RHDH dynamic plugins from scratch
For testing plugins in a local RHDH instance using rhdh-local-setup
Wait for response before proceeding.
### Doctor Route (Priority)| Condition | Action |
|---|---|
needs_setup: true in CLI output | Run $RHDH doctor |
Always check this first.
| Response | Skill |
|---|---|
| 1-5, "onboard", "update", "fix", "triage", "PR", "overlay", "plugin", "workspace" | Route to @overlay skill |
To route: Read ../overlay/SKILL.md and follow its intake process.
| Response | Skill |
|---|---|
| 6, "backend plugin", "create backend", "new backend plugin" | Route to @create-backend-plugin skill |
| 7, "frontend plugin", "create frontend", "new frontend plugin" | Route to @create-frontend-plugin skill |
| 8, "export", "package", "OCI", "publish plugin" | Route to @export-and-package skill |
| 9, "wiring", "mount points", "routes", "entity tabs" | Route to @generate-frontend-wiring skill |
To route: Read the corresponding skill file in ../ and follow its workflow.
| Response | Action |
|---|---|
| 10, "jira", "jira projects", "issue types", "RHIDP", "RHDHPLAN", "RHDHBUGS", "RHDHSUPP" | Read references/jira-structure.md and use it as context |
| Response | Skill |
|---|---|
| 11, "local", "test locally", "enable plugin", "disable plugin", "local testing", "rhdh-local-setup" | Route to @rhdh-local skill |
To route: Read ../rhdh-local/SKILL.md and follow its intake process.
| Response | Action |
|---|---|
| 12, "doctor", "setup", "config" | Use CLI commands below |
| 13, "log", "todo", "activity" | Use tracking commands below |
<cli_commands> Environment status (no args):
$RHDH
Shows overlay repo, rhdh-local, tools status, and next steps.
Full environment check:
$RHDH doctor
Configuration:
$RHDH config init # Create config with auto-detection
$RHDH config show # Show resolved paths
$RHDH config set overlay /path # Set rhdh-plugin-export-overlays location
$RHDH config set local /path # Set rhdh-local location
$RHDH config set rhdh /path # Set main rhdh repo location
$RHDH config set downstream /path # Set rhdh-downstream location
$RHDH config set cli /path # Set rhdh-cli location
$RHDH config set plugins /path # Set rhdh-plugins location
$RHDH config set operator /path # Set rhdh-operator location
$RHDH config set chart /path # Set rhdh-chart location
$RHDH config set catalog /path # Set rhdh-plugin-catalog location
Workspace operations:
$RHDH workspace list # List all plugin workspaces
$RHDH workspace status <name> # Show workspace details
</cli_commands>
<tracking_system>
The CLI includes worklog and todo tracking to maintain context across sessions. Use is recommended but not required.
Append-only activity log stored in .rhdh/worklog.jsonl:
# Log activity with tags for searchability
$RHDH log add "Started onboard: aws-appsync" --tag onboard --tag aws-appsync
$RHDH log add "PR #1234 merged" --tag aws-appsync --tag pr
# View recent entries
$RHDH log show --limit 10
# Search past activity
$RHDH log search "aws-appsync"
$RHDH log search "onboard"
Section-based markdown todos stored in .rhdh/TODO.md:
# Create todo when blocked
$RHDH todo add "Check license with legal" --context "aws-appsync"
$RHDH todo add "Follow up on stale PR #1234" --context "triage"
# List and manage
$RHDH todo list # All todos
$RHDH todo list --pending # Only open items
# Update progress
$RHDH todo note <slug> "Sent email to legal@redhat.com"
$RHDH todo done <slug>
# View raw file
$RHDH todo show
Log these milestones:
Create todos for:
Todos must be self-contained—a new session should understand the task without re-investigating.
| ❌ Too vague | ✅ Actionable |
|---|---|
| Fix #1875 version mismatch | Fix #1875 (lightspeed): bump 1.3.0→1.4.0 in workspace.yaml like #1903 |
| Add /ok-to-test to #1921 | Add /ok-to-test to #1921 (techdocs) — smoke tests ready, needs external trigger |
| Review #1906 SonarCloud | Review #1906 (catalog): SonarCloud blocked on coverage — check if test file missing |
Include: PR number, plugin name, specific action, and why it's needed.
</tracking_system>
<reference_index> RHDH Repos: references/rhdh-repos.md — repository map, ecosystem relationships, key paths GitHub CLI (PRs, CI, workflows): references/github-reference.md JIRA CLI (issues, JQL, comments): references/jira-reference.md JIRA Structure (projects, issue types, filing rules): references/jira-structure.md </reference_index>
<skills_index>
| Skill | Purpose | Path |
|---|---|---|
| overlay | Manage plugins in rhdh-plugin-export-overlays | ../overlay/SKILL.md |
| create-backend-plugin | Bootstrap new RHDH backend dynamic plugins | ../create-backend-plugin/SKILL.md |
| create-frontend-plugin | Bootstrap new RHDH frontend dynamic plugins | ../create-frontend-plugin/SKILL.md |
| export-and-package | Export and package plugins as OCI/tgz/npm | ../export-and-package/SKILL.md |
| generate-frontend-wiring | Configure frontend mount points, routes, tabs | ../generate-frontend-wiring/SKILL.md |
| rhdh-local | Enable/disable/test plugins in local RHDH | ../rhdh-local/SKILL.md |
| Reference | Purpose | Path |
|---|---|---|
| rhdh-repos | Repository map, ecosystem relationships, key paths | references/rhdh-repos.md |
| versions | RHDH/Backstage version compatibility matrix | references/versions.md |
| jira-structure | RHDH Jira projects, issue types, filing rules | references/jira-structure.md |
</skills_index>