Skip to content

Commit c58afa1

Browse files
authored
Merge pull request #27 from redhat-developer/fix/skill-audit-fixes
fix: skill audit fixes — broken refs, descriptions, fallbacks
2 parents d4898dc + 99c1790 commit c58afa1

12 files changed

Lines changed: 126 additions & 33 deletions

File tree

skills/create-plugin/SKILL.md

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,60 @@ description: >
88
"configure mount points", "create dynamic route", "add entity card", "scaffold
99
RHDH plugin", "publish plugin to registry", "create tgz archive", or mentions
1010
creating, exporting, packaging, or wiring a Backstage plugin for Red Hat Developer
11-
Hub. Covers backend plugins (APIs, scaffolder actions, processors), frontend plugins
11+
Hub. Also use when asked to "build a plugin from scratch", "dynamic plugin
12+
tutorial", "RHDH plugin from scratch", or "build Backstage plugin for RHDH".
13+
Covers backend plugins (APIs, scaffolder actions, processors), frontend plugins
1214
(pages, cards, themes), export/packaging (OCI, tgz, npm), and frontend wiring
1315
configuration (mount points, routes, entity tabs, themes).
1416
compatibility: "Node.js 22+, Yarn, podman or docker. Windows, macOS, Linux."
1517
---
1618

19+
<essential_principles>
20+
1721
## Prerequisites
1822

1923
- Node.js 22+ and Yarn
2024
- Container runtime (`podman` or `docker`) for OCI packaging
2125
- Access to a container registry (e.g., quay.io) for publishing
2226

23-
## Commands
27+
</essential_principles>
28+
29+
<intake>
30+
31+
## What would you like to do?
32+
33+
| # | Category | Command | Description |
34+
|---|----------|---------|-------------|
35+
| 1 | Create | `backend` | Scaffold and implement a backend dynamic plugin |
36+
| 2 | Create | `frontend` | Scaffold and implement a frontend dynamic plugin |
37+
| 3 | Package | `export` | Export, package, and push a plugin for RHDH deployment |
38+
| 4 | Configure | `wiring` | Analyze a frontend plugin and generate wiring config |
39+
40+
Single source of truth for command descriptions: `scripts/command-metadata.json`
2441

25-
| Command | Category | Description | Reference |
26-
|---------|----------|-------------|-----------|
27-
| `backend` | Create | Scaffold and implement a backend dynamic plugin | [references/backend.md](references/backend.md) |
28-
| `frontend` | Create | Scaffold and implement a frontend dynamic plugin | [references/frontend.md](references/frontend.md) |
29-
| `export` | Package | Export, package, and push a plugin for RHDH deployment | [references/export.md](references/export.md) |
30-
| `wiring` | Configure | Analyze a frontend plugin and generate wiring config | [references/wiring.md](references/wiring.md) |
42+
**Wait for response before proceeding.**
3143

32-
### Routing rules
44+
</intake>
3345

34-
1. **No argument**: Show the command table. Ask what the user wants to do.
35-
2. **First word matches a command**: Load its reference file and follow it.
36-
3. **First word doesn't match**: Infer intent from context. "Create a new API plugin" → `backend`. "Package my plugin as OCI" → `export`. "Generate mount points" → `wiring`.
46+
<routing>
47+
48+
| Response | Reference |
49+
|----------|----------|
50+
| 1, "backend", "create backend", "API plugin", "scaffolder action" | [references/backend.md](references/backend.md) |
51+
| 2, "frontend", "create frontend", "page", "card", "theme" | [references/frontend.md](references/frontend.md) |
52+
| 3, "export", "package", "OCI", "tgz", "publish", "push" | [references/export.md](references/export.md) |
53+
| 4, "wiring", "mount points", "routes", "entity tabs" | [references/wiring.md](references/wiring.md) |
54+
| First word doesn't match | Infer intent from context. "Create a new API plugin" → `backend`. "Package my plugin as OCI" → `export`. "Generate mount points" → `wiring`. |
55+
56+
</routing>
3757

3858
## Shared Knowledge
3959

4060
> **Script paths:** All `scripts/` and `references/` paths below are relative to this SKILL.md file's directory. Resolve them against the skill directory before invoking.
4161
4262
### RHDH Version Resolution
4363

44-
Before scaffolding, determine the target RHDH version. Consult `../rhdh/references/versions.md` for the compatibility matrix. Ask the user if not specified.
64+
Before scaffolding, determine the target RHDH version. Consult `../rhdh/references/versions.md` for the compatibility matrix. If that file is not found (skill installed standalone), ask the user for the target RHDH version directly.
4565

4666
### Scaffold Script
4767

@@ -79,6 +99,8 @@ The typical workflow chains these commands:
7999

80100
Each reference file is self-contained. Load only the one you need.
81101

102+
<reference_index>
103+
82104
## Reference Index
83105

84106
### Command References
@@ -107,6 +129,8 @@ Each reference file is self-contained. Load only the one you need.
107129
| `examples/dynamic-plugins.yaml` | Backend, frontend, multi-plugin, tgz, npm, and local config patterns |
108130
| `examples/frontend-wiring.yaml` | All frontend wiring patterns — tabs, cards, search, themes, scaffolder |
109131

132+
</reference_index>
133+
110134
## Common Issues
111135

112136
### Plugin Not Loading
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"backend": {
3-
"description": "Scaffold and implement a backend dynamic plugin for RHDH. Use when creating a new backend API plugin, backend module, scaffolder action, catalog processor, or authentication module for Red Hat Developer Hub.",
4-
"argumentHint": "[plugin description or name]"
3+
"description": "Scaffold and implement a backend dynamic plugin (API, scaffolder action, processor).",
4+
"argumentHint": "[plugin description or plugin ID]"
55
},
66
"frontend": {
7-
"description": "Scaffold and implement a frontend dynamic plugin for RHDH. Use when creating a new page, entity card, sidebar item, theme, scaffolder field extension, or TechDocs addon for Red Hat Developer Hub.",
8-
"argumentHint": "[plugin description or name]"
7+
"description": "Scaffold and implement a frontend dynamic plugin (page, card, theme).",
8+
"argumentHint": "[plugin description or plugin ID]"
99
},
1010
"export": {
11-
"description": "Export and package a Backstage plugin as an RHDH dynamic plugin. Use when exporting as OCI image, tgz archive, or npm package, pushing to a container registry, or bundling multiple plugins.",
12-
"argumentHint": "[plugin directory or packaging options]"
11+
"description": "Export, package, and push a plugin for RHDH deployment (OCI, tgz, npm).",
12+
"argumentHint": "[plugin directory or plugin ID]"
1313
},
1414
"wiring": {
15-
"description": "Analyze an existing Backstage frontend plugin and generate the RHDH dynamic plugin wiring configuration. Use when generating dynamic-plugins.yaml config, mount points, routes, entity tabs, or theme config.",
16-
"argumentHint": "[plugin directory to analyze]"
15+
"description": "Analyze a frontend plugin and generate dynamic-plugins.yaml wiring config.",
16+
"argumentHint": "[plugin directory or plugin ID]"
1717
}
1818
}

skills/overlay/SKILL.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
22
name: overlay
3-
description: Manages the rhdh-plugin-export-overlays repository — onboards plugins to the Extensions Catalog, updates plugin versions, fixes overlay build failures, triages and analyzes PRs, triggers publishes, and manages plugin workspaces. Use when working with overlays, importing plugins, debugging CI, checking PRs, or bumping versions.
3+
description: >-
4+
Manages the rhdh-plugin-export-overlays repository — onboards plugins to the
5+
Extensions Catalog, updates plugin versions, fixes overlay build failures,
6+
triages and analyzes PRs, triggers publishes, and manages plugin workspaces.
7+
Use when working with overlays, importing plugins, debugging CI, checking PRs,
8+
bumping versions, or mentions "Extensions Catalog", "overlay build failed",
9+
"plugin registry", "overlay PR", "overlay doctor", "plugin import",
10+
"add plugin to catalog", "onboard plugin", or "plugin workspace".
411
---
512

613
<cli_setup>
@@ -136,7 +143,7 @@ gh pr view <number> --repo $REPO --json statusCheckRollup \
136143
2. No `do-not-merge` label
137144
3. Publish check not already successful
138145

139-
See `../rhdh/references/github-reference.md` for full patterns.
146+
See `../rhdh/references/github-reference.md` for full patterns. If unavailable, use standard `gh` CLI patterns.
140147
</inline_publish_trigger>
141148

142149
<reference_index>
@@ -146,7 +153,7 @@ See `../rhdh/references/github-reference.md` for full patterns.
146153
**PR label priorities:** references/label-priority.md
147154
**RHDH Local testing:** references/rhdh-local.md
148155

149-
**For GitHub/JIRA patterns:** See `../rhdh/references/`
156+
**For GitHub/JIRA patterns:** See `../rhdh/references/` (if unavailable, use standard `gh` / `acli` patterns)
150157
</reference_index>
151158

152159
<workflows_index>

skills/rhdh-jira/SKILL.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ description: |
55
compatibility: "acli (Atlassian CLI) on PATH. Python 3 for scripts. Windows, macOS, Linux."
66
---
77

8+
<essential_principles>
9+
810
# RHDH Jira
911

1012
Foundational skill for interacting with RHDH's Jira instance via the Atlassian CLI (`acli`). Covers all four active projects, issue types, workflows, custom fields, and JQL patterns.
1113

14+
</essential_principles>
15+
16+
<intake>
17+
1218
## Commands
1319

1420
| Command | Description | Reference |
@@ -25,12 +31,20 @@ Foundational skill for interacting with RHDH's Jira instance via the Atlassian C
2531

2632
Single source of truth for command descriptions: `scripts/command-metadata.json`
2733

34+
**Wait for response before proceeding.**
35+
36+
</intake>
37+
38+
<routing>
39+
2840
### Routing rules
2941

3042
1. **No argument**: Show the command menu. Ask what to do.
3143
2. **First word matches a command**: Load its reference file and follow it.
3244
3. **First word doesn't match**: General Jira invocation using the full argument as context — use the reference files table below to decide what to load.
3345

46+
</routing>
47+
3448
## Prerequisites
3549

3650
Run `scripts/setup.py` to verify everything is configured:
@@ -95,6 +109,8 @@ RHDHPAI (Plugins and AI) is **archived** — JQL queries against it will fail.
95109
- **Sub-task** — child of any issue type above
96110
- **Vulnerability** — CVE tracking in RHIDP (Product Security)
97111

112+
<reference_index>
113+
98114
## Reference Files
99115

100116
Load only what the current task requires.
@@ -123,6 +139,8 @@ Load only what the current task requires.
123139
| `references/grill.md` | Shared challenging behavior for issue creation grills: sizing, completeness, scope, risks, cross-referencing. |
124140
| `references/sizing.md` | T-shirt sizing guide for Features/Epics and Fibonacci story points for Stories/Tasks. Used during grills and refinement. |
125141

142+
</reference_index>
143+
126144
## Common Gotchas
127145

128146
1. **`acli auth status` lies.** It checks OAuth, not API token auth. Always returns "unauthorized" with token auth even when Jira works fine. Use `acli jira project list --recent 1` as a smoke test instead.

skills/rhdh-local/SKILL.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
22
name: rhdh-local
3-
description: Skill for testing RHDH plugins locally using the rhdh-local-setup customization system. Covers enabling/disabling plugins, switching modes, running end-to-end plugin tests, starting/stopping RHDH (up/down), health checks, troubleshooting errors (504, startup failures), and backup/restore of configurations.
3+
description: >-
4+
Test RHDH plugins locally using the rhdh-local-setup customization system.
5+
Covers enabling/disabling plugins, switching modes, running end-to-end plugin
6+
tests, starting/stopping RHDH (up/down), health checks, troubleshooting errors
7+
(504, startup failures), and backup/restore of configurations. Use when asked
8+
to "test plugin locally", "local RHDH setup", "start local Developer Hub",
9+
"rhdh-local-setup", "local development environment", "podman compose RHDH",
10+
or "run RHDH on my machine".
411
---
512

613
<essential_principles>
@@ -58,7 +65,7 @@ What would you like to do with your local RHDH instance?
5865
**Environment variables (.env reference):** `references/env-reference.md`
5966
**Troubleshooting & comparative testing:** `references/troubleshooting.md`
6067
**Container lifecycle, startup scripts, network namespace:** `references/troubleshooting.md` — restart patterns, 504 debugging, network namespace rules
61-
**Dynamic plugin YAML format, OCI references:** `../overlay/references/rhdh-local.md` section `<dynamic_plugins_config>`
68+
**Dynamic plugin YAML format, OCI references:** `../overlay/references/rhdh-local.md` section `<dynamic_plugins_config>` (if unavailable, see `rhdh-plugin-export-overlays` repo README for YAML format)
6269
</reference_index>
6370

6471
<skills_index>

skills/rhdh-pr-review/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This skill uses the orchestrator CLI for activity tracking. **Set up first:**
99
```bash
1010
RHDH=../rhdh/scripts/rhdh
1111
```
12+
1213
</cli_setup>
1314

1415
<essential_principles>
@@ -66,9 +67,8 @@ Both paths preserve existing Backstage CRs, config, and Keycloak state — only
6667
| Reference | Purpose | Path |
6768
|-----------|---------|------|
6869
| operator-pr-images | CI image extraction and validation | `references/operator-pr-images.md` |
69-
| github-reference | gh CLI patterns, PR queries | `../rhdh/references/github-reference.md` |
70-
| rhdh-repos | RHDH ecosystem repository map | `../rhdh/references/rhdh-repos.md` |
71-
70+
| github-reference | gh CLI patterns, PR queries | `../rhdh/references/github-reference.md` (if unavailable, use standard `gh` CLI patterns) |
71+
| rhdh-repos | RHDH ecosystem repository map | `../rhdh/references/rhdh-repos.md` (if unavailable, see CONTEXT.md for repo list) |
7272

7373
</reference_index>
7474

skills/rhdh-test-plan-review/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Provide a Jira ticket ID or URL (e.g., `RHIDP-8994`) to begin.
5959
|-----------|---------|------|
6060
| sources | Lifecycle URLs and extraction guidance per platform/integration | `references/sources.md` |
6161
| google-sheets-setup | One-time gcloud auth setup for schedule sheet access | `references/google-sheets-setup.md` |
62-
| rhdh-jira auth | Jira REST API token setup and curl patterns | `~/.claude/skills/rhdh-jira/references/auth.md` |
62+
| rhdh-jira auth | Jira REST API token setup and curl patterns | `../rhdh-jira/references/auth.md` |
6363

6464
</reference_index>
6565

skills/rhdh-test-plan-review/scripts/gcloud_token.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
"""Shared gcloud access token helper for rhdh-test-plan-review scripts."""
1+
"""Shared gcloud access token helper for rhdh-test-plan-review scripts.
2+
3+
Library module — imported by check_gsheets.py and fetch_schedule.py.
4+
Not a CLI script; do not invoke directly.
5+
"""
26

37
import shutil
48
import subprocess

skills/rhdh/SKILL.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
22
name: rhdh
3-
description: Handles all RHDH-related work — "RHDH", "Red Hat Developer Hub", or "Developer Hub". Primary entry point for 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.
3+
description: >-
4+
Handles all RHDH-related work — "RHDH", "Red Hat Developer Hub", or "Developer
5+
Hub". Primary entry point for plugin development, overlay management,
6+
environment setup, repo navigation, version compatibility, CI/CD,
7+
configuration, debugging, and general RHDH ecosystem knowledge. Routes to
8+
specialized sub-skills as needed. Use when asked about RHDH version
9+
compatibility, RHDH CI pipeline, RHDH configuration, which RHDH repo to use,
10+
RHDH release status, RHDH debugging, or any Developer Hub question.
411
---
512

613
<cli_setup>
@@ -112,7 +119,7 @@ What would you like to do?
112119

113120
### Test Plan Tasks
114121

115-
*For rhdh test plan review in jira*
122+
*For rhdh test plan review in jira*
116123

117124
9. **Review Test Plan content** — Reviews an RHDH test plan Jira ticket and suggests platform/integration version updates based on support lifecycle pages and RHDH release milestones
118125

skills/skill-maker/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ What do you need to do?
1515
2. **Create a new skill** — Interview, draft, and review from scratch
1616
3. **Consolidate skills** — Merge multiple skills into fewer
1717

18+
**Wait for response before proceeding.**
1819
</intake>
1920

2021
<routing>

0 commit comments

Comments
 (0)