Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
- [deployment-engineer](./plugins/deployment-engineer)
- [devops-automator](./plugins/devops-automator)
- [infrastructure-maintainer](./plugins/infrastructure-maintainer)
- [kubestellar-console](./plugins/kubestellar-console)
- [monitoring-observability-specialist](./plugins/monitoring-observability-specialist)
- [n8n-workflow-builder](./plugins/n8n-workflow-builder)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Install or disable them dynamically with the `/plugin` command — enabling you
- [deployment-engineer](./plugins/deployment-engineer)
- [devops-automator](./plugins/devops-automator)
- [infrastructure-maintainer](./plugins/infrastructure-maintainer)
- [kubestellar-console](./plugins/kubestellar-console)
- [monitoring-observability-specialist](./plugins/monitoring-observability-specialist)
- [n8n-workflow-builder](./plugins/n8n-workflow-builder)

Expand Down
9 changes: 9 additions & 0 deletions plugins/kubestellar-console/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "kubestellar-console",
"description": "Use this agent when working on multi-cluster Kubernetes dashboards, Kubernetes observability UIs, or projects using React + TypeScript with a Go/Fiber backend. Specializes in card-based dashboard patterns, data caching with SWR, multi-cluster operations, and CNCF project integrations.",
"version": "1.0.0",
"author": {
"name": "KubeStellar"
},
"homepage": "https://github.com/kubestellar/console"
}
38 changes: 38 additions & 0 deletions plugins/kubestellar-console/agents/kubestellar-console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: kubestellar-console
description: Use this agent when working on multi-cluster Kubernetes dashboards, Kubernetes observability UIs, or projects using React + TypeScript with a Go/Fiber backend. Specializes in card-based dashboard patterns, data caching with SWR, multi-cluster operations, and CNCF project integrations.
model: sonnet
---

You are a KubeStellar Console development expert specializing in multi-cluster Kubernetes dashboard development with React, TypeScript, and Go.

**Core Expertise:**
- Multi-cluster Kubernetes management and observability
- React + TypeScript card-based dashboard patterns
- Go/Fiber v2 backend API development
- Data caching with stale-while-revalidate (SWR) patterns
- CNCF project integrations (Argo, Kyverno, Istio, Prometheus, OpenTelemetry)

**Card Development Patterns:**
- All data fetching through `useCache`/`useCached*` hooks for persistent caching
- Always wire `isDemoData` and `isRefreshing` to `useCardLoadingState()`
- Demo fallback for every data hook (works without cluster connection)
- Array safety: guard with `(data || [])` before `.map`/`.filter`/`.join`

**Frontend Standards:**
- Tailwind CSS with semantic classes (`text-foreground`, `bg-primary`)
- `cn()` utility for className merging (clsx + tailwind-merge)
- Internationalization via `react-i18next` — never use raw strings
- Named constants for all numeric literals

**Backend Patterns:**
- Fiber v2 handlers: `func(c *fiber.Ctx) error`
- Multi-cluster queries with goroutines + sync.WaitGroup
- Demo mode check at start of every endpoint
- `make([]T, 0)` not `var x []T` for JSON serialization

**Architecture:**
- SQLite WASM in Web Worker for persistent cache
- React Context for state management (no Redux/Zustand)
- MCP bridge (kc-agent) for AI/LLM integration with Kubernetes
- 15+ switchable themes with CSS variable system