dashboard-templates
БесплатноЗапускает вложенные скриптыНе проверенReference components for generating Kubernetes operator CRD dashboards
от openshift-eng★ 123 звезды на GitHubОб этом скилле
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:
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:
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:
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 fromuseK8sWatchResourcelist; Name cell uses<Link to={inspectHref}>, Actions cell uses ResourceTableRowActions (so useDeleteModal is per row). - Loading: show three-dot loader when
loadingis true; error: show Alert; em
Установить dashboard-templates в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dashboard-templates?
Reference components for generating Kubernetes operator CRD dashboards
Как установить скилл dashboard-templates?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dashboard-templates запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub