Agent skill

Dashboard Templates

by openshift-eng in openshift-eng/ai-helpers

Reference components for generating Kubernetes operator CRD dashboards

Apache-2.0Auto-check passedDevOps & Cloud

Install Dashboard Templates

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill dashboard-templates -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers dashboard-templates --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ai-operator-dashboard-generator/skills/dashboard-templates .claude/skills/dashboard-templates && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dashboard-templates
GitHub stars
120
Token cost
~2.4k tokens
SKILL.md length
996 words
Files
10
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Reference components for generating Kubernetes operator CRD dashboards

  • Works in 3 steps: Replace CRD kind and API group/version… → Build columns from the target CRD: Name,… → Build rows from the list: name link…
  • Tasks that involve Container orchestration
  • SKILL.md covers When to Use This Skill, CRD Model Files (.ts files), UI Component Files (.tsx files) and Shared Patterns, plus 1 more section
  • Runs TypeScript scripts from its folder

What it does

Dashboard Templates is an agent skill from openshift-eng/ai-helpers. Reference components for generating Kubernetes operator CRD dashboards

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `Certificate.ts`, `Events.ts` and `ExternalSecret.ts`).

It sits in DevOps & Cloud, covering Container orchestration and React components. It works with Kubernetes. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Container orchestration
  • Tasks that involve React components

Example prompts

  • “/dashboard-templates”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Replace CRD kind and API group/version in the table’s useK8sWatchResource (use the corresponding .ts model).
  2. Build columns from the target CRD: Name, Namespace (if namespaced), then additionalPrinterColumns or fallback (Status, Age), then Actions.
  3. Build rows from the list: name link (Link to inspect href), namespace, status Label, timestamp, ResourceTableRowActions. Use…

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dashboard Templates loads about 2.4k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 996 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 996 words, ~2,382 tokens.

Download SKILL.mdSave it as .claude/skills/dashboard-templates/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
dashboard-templates
description
Reference components for generating Kubernetes operator CRD dashboards

Dashboard Template Components

Read this before generating any dashboard component. It explains which template file to use for each component type and how to adapt it to a new operator's CRDs.

When to Use This Skill

Use this skill when:

  • Generating a list view for a CRD kind (use ResourceTable.tsx)
  • Generating a detail/inspect view for a single CR (use ResourceInspect.tsx)
  • Defining the TypeScript model for a specific CRD kind (use the matching .ts file)
  • Adapting any reference component to a new operator's CRD schema

CRD Model Files (.ts files)

These files define the TypeScript types and K8sGroupVersionKind models for each CRD kind. Use them as the starting point when modelling a new CRD's API group, version, kind, and optional spec/status interfaces.

Certificate.ts

Purpose: Exports the K8sGroupVersionKind model for cert-manager's Certificate CRD. Used for operator detection and for useK8sWatchResource / useK8sModel.

Key interfaces: None (model only).

Model:

ts
export const CertificateModel: K8sGroupVersionKind = {
  group: 'cert-manager.io',
  version: 'v1',
  kind: 'Certificate',
};

Fields to adapt: Replace group, version, and kind with the target operator's values from oc api-resources (APIVERSION and KIND columns).

Events.ts

Purpose: Core v1 Event model and a map from resource type (plural) to Kind for event involvedObject lookups; provides getInvolvedObjectKind(resourceType) for filtering events by resource.

Key interfaces:

ts
export interface K8sEvent {
  apiVersion?: string;
  kind?: string;
  metadata?: {
    name?: string;
    namespace?: string;
    creationTimestamp?: string;
    [key: string]: unknown;
  };
  type?: string;
  reason?: string;
  message?: string;
  count?: number;
  firstTimestamp?: string;
  lastTimestamp?: string;
  involvedObject?: {
    kind?: string;
    name?: string;
    namespace?: string;
    [key: string]: unknown;
  };
}

Fields to adapt: Extend RESOURCE_TYPE_TO_KIND with plural: 'Kind' for each new resource type so events are filtered by the matching involvedObject kind on the inspect page.

ExternalSecret.ts

Purpose: K8sGroupVersionKind models for ExternalSecret and ClusterExternalSecret (external-secrets operator).

Key interfaces: None (models only).

Models: ExternalSecretModel, ClusterExternalSecretModel — group external-secrets.io, version v1beta1.

Fields to adapt: Replace group/version/kind with target operator's CRD. Use two models when the operator has both namespaced and cluster-scoped variants of the same kind.

Issuer.ts

Purpose: K8sGroupVersionKind models for Issuer and ClusterIssuer (cert-manager).

Key interfaces: None (models only).

Models: IssuerModel, ClusterIssuerModel — group cert-manager.io, version v1.

Fields to adapt: Same as Certificate.ts; use for any operator that exposes namespaced and cluster-scoped kinds.

PushSecret.ts

Purpose: K8sGroupVersionKind models for PushSecret and ClusterPushSecret (external-secrets operator).

Key interfaces: None (models only).

Fields to adapt: Replace group/version/kind with the target operator's API from cluster verification.

SecretProviderClass.ts

Purpose: Models for SecretProviderClass and SecretProviderClassPodStatus (CSI secrets store); includes an interface for the pod status subresource used on the inspect page.

Key interfaces:

ts
export interface SecretProviderClassPodStatus {
  apiVersion?: string;
  kind?: string;
  metadata?: {
    name?: string;
    namespace?: string;
    creationTimestamp?: string;
    [key: string]: unknown;
  };
  status?: {
    secretProviderClassName?: string;
    podName?: string;
    mounted?: boolean;
    [key: string]: unknown;
  };
}

Fields to adapt: Group/version/kind for both models. If the target operator has a similar “status” or pod-binding resource, add a parallel interface and model.

SecretStore.ts

Purpose: K8sGroupVersionKind models for SecretStore and ClusterSecretStore (external-secrets operator).

Key interfaces: None (models only).

Fields to adapt: Replace group/version/kind with values from oc api-resources.

UI Component Files (.tsx files)

ResourceTable.tsx

Purpose: Shared table for listing CRs of a given kind. Renders loading (three-dot loader), error Alert, empty EmptyState, or a plain table with thead/tbody. Accepts columns and rows (cells as React nodes).

Use when: Displaying a list of CRs of a given kind in a table on the operator dashboard.

Key patterns:

  • Columns: array of { title, width? }; last column is typically Actions.
  • Rows: array of { cells: React.ReactNode[] }; build from useK8sWatchResource list; Name cell uses <Link to={inspectHref}>, Actions cell uses ResourceTableRowActions (so useDeleteModal is per row).
  • Loading: show three-dot loader when loading is true; error: show Alert; empty: show EmptyState with titleText and EmptyStateBody; selectedProject used for project-aware empty message.

Props interface:

ts
interface Column {
  title: string;
  width?: number;
}
interface Row {
  cells: React.ReactNode[];
}
interface ResourceTableProps {
  columns: Column[];
  rows: Row[];
  loading?: boolean;
  error?: string;
  emptyStateTitle?: string;
  emptyStateBody?: string;
  selectedProject?: string;
  'data-test'?: string;
}

How to adapt:

  1. Replace CRD kind and API group/version in the table’s useK8sWatchResource (use the corresponding .ts model).
  2. Build columns from the target CRD: Name, Namespace (if namespaced), then additionalPrinterColumns or fallback (Status, Age), then Actions.
  3. Build rows from the list: name link (Link to inspect href), namespace, status Label, timestamp, ResourceTableRowActions. Use plugin-prefixed CSS classes (e.g. console-plugin-template__table) and PatternFly variables; do not use co-m-* or inline styles in the consuming plugin.
Show full SKILL.md (399 more words)Show less
ResourceInspect.tsx

Purpose: Shared resource detail (inspect) page: Card + Grid layout with back button, Metadata, Labels, Annotations, Specification, Status, Events (and optional Pod Statuses for SecretProviderClass). Parses URL for resourceType, namespace, name; uses getResourceModel(resourceType) and getPagePath(resourceType); supports optional “Show/Hide sensitive data” for spec/status.

Use when: Displaying the full detail view for a single CR instance at /<operator-short-name>/inspect/<plural>/[namespace/]<name>.

Key patterns:

  • Parse path: find segment after inspect for resourceType; then either namespace + name (namespaced) or name only (cluster-scoped).
  • getResourceModel(resourceType): switch returning the K8sGroupVersionKind for the resource (from crds/*.ts).
  • useK8sWatchResource for the single resource; for Events, use EventModel and fieldSelector by involvedObject name/kind/namespace; getInvolvedObjectKind(resourceType) from Events.ts.
  • Render: Metadata (DescriptionList), Labels/Annotations (Cards), Spec/Status (YAML dump with optional sensitive-data toggle), Events table, and optional kind-specific block (e.g. SecretProviderClassPodStatus).

Props interface: None (component uses URL and hooks only).

How to adapt:

  1. Add DISPLAY_NAMES entries for each new plural (plural → display name).
  2. Add cases in getResourceModel(resourceType) returning the new kind’s K8sModel.
  3. Add case in getPagePath(resourceType) returning the operator page path (e.g. '/cert-manager').
  4. Add plural → Kind in Events.ts RESOURCE_TYPE_TO_KIND so events are filtered by the matching involvedObject kind.
  5. Do not change the overall Card + Grid layout or back button; extend only the maps and model lookups.

Shared Patterns

Data fetching
  • List view: useK8sWatchResource({ groupVersionKind, namespace?, isList: true }); use loaded and loadError for loading/error; build rows from the list.
  • Detail view: useK8sWatchResource({ groupVersionKind, name, namespace?, isList: false }); same loading/error handling.
  • Operator detection: useK8sModel({ group, version, kind }); returns [model, inFlight]; check if (inFlight) return 'loading'.
Status display
  • Use PatternFly <Label> with status prop for status/conditions: status="success" (green), status="danger" (red), status="warning" (orange). Do not use variant for status colors.
  • Status value often comes from status.conditions (e.g. type=Ready); map to success/danger/warning as appropriate.
TypeScript model → UI column mapping
  • Each CRD kind has a .ts file exporting a K8sGroupVersionKind (and optionally an interface). Table components import that model and pass it to useK8sWatchResource. Columns are derived from CRD additionalPrinterColumns (jsonPath, type) or fallback (Name, Namespace, Status, Age, Actions). Map jsonPath to row cells (e.g. Timestamp for dates, Label for status).

Which File to Use

What you needUse this file
Type model for a known CRD kindThe matching .ts file (e.g. Certificate.ts)
Type model for a new/unknown CRD kindUse the most structurally similar .ts file as a base (same group/version pattern or namespaced+cluster pair)
List view of CRsResourceTable.tsx
Detail view of a single CRResourceInspect.tsx

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files in plugins/ai-operator-dashboard-generator/skills/dashboard-templates of openshift-eng/ai-helpers.

  • SKILL.md
  • Certificate.ts
  • Events.ts
  • ExternalSecret.ts
  • Issuer.ts
  • PushSecret.ts
  • ResourceInspect.tsx
  • ResourceTable.tsx
  • SecretProviderClass.ts
  • SecretStore.ts

Open the folder on GitHubat commit a627176

Compare with similar skills

Dashboard Templates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dashboard Templates compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dashboard Templates this skillopenshift-eng/ai-helpers120—~2.4kAutomated safety check: PassApache-2.0
Kubeshark Installerkubeshark/kubeshark12k—~3.6kAutomated safety check: NotesApache-2.0
KubeSphere Multi-Tenant Managementkubesphere/kubesphere17k—~3.1kAutomated safety check: PassCustom licence
Sim Helmsimstudioai/sim30k—~2.2kAutomated safety check: PassApache-2.0
Helm Chart ScaffoldingCybereason-Public/owLSM28013 repos~381Automated safety check: PassGPL-2.0
Kubeshark KFL2 Filter Referencekubeshark/kubeshark12k—~3.6kAutomated safety check: PassApache-2.0

Similar skills

  • Kubeshark Installer

    kubeshark/kubeshark

    Installs and configures Kubeshark on a Kubernetes cluster, choosing between the quick CLI path and a Helm install with custom values.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Creates and queries KubeSphere users, workspaces and projects and assigns built-in roles, defaulting to least privilege and never deleting anything.

    17k GitHub stars~3.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Sim Helm

    simstudioai/sim

    Install, upgrade, and operate the Sim Helm chart on Kubernetes.

    30k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Helm Chart Scaffolding

    Cybereason-Public/owLSM

    Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications.

    280 GitHub starsUsed in 13 repos~381 tokens
    DevOps & CloudAuto-check passed
  • Syntax reference for KFL2, the CEL-based display filter language used to search Kubernetes network traffic captured by Kubeshark, loaded before any filter is written.

    12k GitHub stars~3.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • KubeSphere ServiceMesh Manager

    kubesphere/kubesphere

    Installs, checks and troubleshoots the KubeSphere ServiceMesh extension (Istio, Kiali, Jaeger), including grayscale release, sidecar injection, topology and tracing issues.

    17k GitHub stars~2.4k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Categorize Activity Types

    openshift-eng/ai-helpers

    Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

    120 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Dashboard Templates

What does Dashboard Templates do?

Reference components for generating Kubernetes operator CRD dashboards. Dashboard Templates is an agent skill from openshift-eng/ai-helpers.

When should I use Dashboard Templates?

Dashboard Templates fits situations like: tasks that involve Container orchestration; tasks that involve React components.

How do I install Dashboard Templates in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill dashboard-templates -a claude-code`. Or copy the skill folder (plugins/ai-operator-dashboard-generator/skills/dashboard-templates in openshift-eng/ai-helpers) into .claude/skills/dashboard-templates in your project. Claude Code loads it when a task matches its description.

How do I install Dashboard Templates in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill dashboard-templates -a codex`. Or copy the skill folder (plugins/ai-operator-dashboard-generator/skills/dashboard-templates in openshift-eng/ai-helpers) into .agents/skills/dashboard-templates in your project. Codex loads it when a task matches its description.

Can I use Dashboard Templates in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill dashboard-templates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dashboard-templates, .gemini/skills/dashboard-templates, .github/skills/dashboard-templates and .opencode/skills/dashboard-templates in your project.

What does Dashboard Templates need to run?

Going by SKILL.md and its folder, Dashboard Templates needs TypeScript for the scripts in its folder. Our summary lists: Node.js.

Does Dashboard Templates access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dashboard Templates safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dashboard Templates use?

Dashboard Templates is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dashboard Templates use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dashboard Templates?

Skills that share tags, products or a category with Dashboard Templates: Kubeshark Installer (kubeshark/kubeshark, 12k stars), KubeSphere Multi-Tenant Management (kubesphere/kubesphere, 17k stars), Sim Helm (simstudioai/sim, 30k stars) and Helm Chart Scaffolding (Cybereason-Public/owLSM, 280 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dashboard Templates?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.