KubeStellar Console development Cursor rules
KubeStellar Console Development Rules is a Cursor rule file for contributors to the KubeStellar Console, a multi-cluster Kubernetes dashboard. It teaches Cursor the project layout and house rules, so new dashboard cards, hooks and Go backend code fit the existing codebase.
What it does
The frontend is React and TypeScript in /web/, the backend Go with Fiber v2. Cards live in web/src/components/cards/ and fetch data only through useCache hooks, with demo data never shown while loading. It bans unguarded .map() or .join() on possibly undefined values, magic numbers and raw hex colors in favor of semantic Tailwind classes.
How to use it
The globs target .ts, .tsx and .go files, including web/src and pkg paths.
Requirements and limits
Before each commit the rules expect cd web, npm run build and npm run lint.
More in Rules and the Cursor library.
What it covers
- Project Structure
- Card Development
- Array Safety
- No Magic Numbers
- Styling
- Internationalization
- Go Backend
- Cluster Deduplication
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/kubestellar-console.mdc
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.