Rayden Code Skill
Generate production-quality React code using the Rayden UI component library.
Every output must use documented components with correct props, follow design
token classes, and produce premium, minimal, clean UI.
Task: $ARGUMENTS
Before Writing Any Code
Read the complete rules file — it contains every component, every prop, every
token, and every design pattern you need:
- RAYDEN_RULES.md — Full component API reference, design philosophy, layout patterns, anti-patterns, color tokens, typography scale, and final checklist
Do not skip this step. The rules file is the source of truth. If a component
or prop is not in that file, it does not exist.
Workflow
Step 1 — Understand the Request
Parse the user's request:
- What type of page or feature? (dashboard, landing, auth, settings, table, form, etc.)
- Is there a Figma reference or screenshot to match?
- What components will be needed?
- What's the data model?
Step 2 — Load Rules
Read RAYDEN_RULES.md from this skill's directory. Pay attention to:
- Core Rules (section 2) — what you must and must not do
- Design Philosophy (section 3) — the 5 pillars of Rayden UI design
- Component API (sections 7+) — exact props for each component
- Anti-Patterns (section 6) — explicitly banned patterns
- Design Patterns by Context — reference layouts for common page types
Step 3 — Plan the Layout
Before writing code, state your plan:
- Page structure (shell, sections, content areas)
- Components you'll use (from the documented list only)
- Design decisions (spacing, color strategy, elevation strategy)
Step 4 — Generate Code
Write React + Tailwind CSS code following these rules:
Imports:
import { /* only components you use */ } from '@raydenui/ui';
import '@raydenui/ui/styles.css';
Design token classes — use Tailwind classes, not hex values:
- Colors:
bg-primary-500, text-grey-900, border-grey-200
- Typography:
text-h3, text-body-md, text-caption-sm
- Shadows:
shadow-soft-xs, shadow-soft-sm
- Spacing:
p-6, space-y-8, gap-4
Layout principles:
- Generous whitespace (
p-6+ containers, space-y-6+ sections)
- Clear visual hierarchy (title → subtitle → body → meta)
- Color restraint (one primary action per section, neutral base)
- Consistent radius and elevation per section
- Content width always constrained (
max-w-*)
- Responsive breakpoints (
sm:, md:, lg:)
Step 5 — Self-Validation
Run through the Final Checklist from RAYDEN_RULES.md before presenting code:
Correctness:
- Every component exists in the rules file
- Every prop is documented for that component
- Using token classes, not hex values
- Compound components nest correctly
- Icon-only buttons have
aria-label
Design Quality:
- Generous whitespace
- Clear visual hierarchy
- Color used with restraint
- Consistent radius and elevation
- Content width constrained
- Headings use
tracking-tight, descriptions use leading-relaxed
- Numbers formatted with separators
Hard Rules (never break these)
- Only documented components — if it's not in RAYDEN_RULES.md, it doesn't exist
- Only documented props — never invent props
- Token classes only —
bg-primary-500 not #EB5017
- One primary action per section — rest are outlined or text
- No colored container backgrounds — cards are always
bg-white
- No gradient text — never use
bg-clip-text text-transparent
- Content width always constrained — use
max-w-*
- Compound components nest correctly — Table → TableHeader → TableRow → TableHead
1---2name: rayden-code3description: Generate React code using Rayden UI components with correct props, design tokens, and premium layout patterns. Use when building pages, features, or prototypes with the Rayden UI component library. Prevents hallucinated components and props.4---56# Rayden Code Skill78Generate production-quality React code using the Rayden UI component library.9Every output must use documented components with correct props, follow design10token classes, and produce premium, minimal, clean UI.1112**Task:** `$ARGUMENTS`1314---1516## Before Writing Any Code1718Read the complete rules file — it contains every component, every prop, every19token, and every design pattern you need:2021- **[RAYDEN_RULES.md](RAYDEN_RULES.md)** — Full component API reference, design philosophy, layout patterns, anti-patterns, color tokens, typography scale, and final checklist2223**Do not skip this step.** The rules file is the source of truth. If a component24or prop is not in that file, it does not exist.2526---2728## Workflow2930### Step 1 — Understand the Request3132Parse the user's request:33- What type of page or feature? (dashboard, landing, auth, settings, table, form, etc.)34- Is there a Figma reference or screenshot to match?35- What components will be needed?36- What's the data model?3738### Step 2 — Load Rules3940Read `RAYDEN_RULES.md` from this skill's directory. Pay attention to:411. **Core Rules** (section 2) — what you must and must not do422. **Design Philosophy** (section 3) — the 5 pillars of Rayden UI design433. **Component API** (sections 7+) — exact props for each component444. **Anti-Patterns** (section 6) — explicitly banned patterns455. **Design Patterns by Context** — reference layouts for common page types4647### Step 3 — Plan the Layout4849Before writing code, state your plan:50- Page structure (shell, sections, content areas)51- Components you'll use (from the documented list only)52- Design decisions (spacing, color strategy, elevation strategy)5354### Step 4 — Generate Code5556Write React + Tailwind CSS code following these rules:5758**Imports:**59```tsx60import { /* only components you use */ } from '@raydenui/ui';61import '@raydenui/ui/styles.css';62```6364**Design token classes** — use Tailwind classes, not hex values:65- Colors: `bg-primary-500`, `text-grey-900`, `border-grey-200`66- Typography: `text-h3`, `text-body-md`, `text-caption-sm`67- Shadows: `shadow-soft-xs`, `shadow-soft-sm`68- Spacing: `p-6`, `space-y-8`, `gap-4`6970**Layout principles:**71- Generous whitespace (`p-6`+ containers, `space-y-6`+ sections)72- Clear visual hierarchy (title → subtitle → body → meta)73- Color restraint (one primary action per section, neutral base)74- Consistent radius and elevation per section75- Content width always constrained (`max-w-*`)76- Responsive breakpoints (`sm:`, `md:`, `lg:`)7778### Step 5 — Self-Validation7980Run through the Final Checklist from RAYDEN_RULES.md before presenting code:8182**Correctness:**83- Every component exists in the rules file84- Every prop is documented for that component85- Using token classes, not hex values86- Compound components nest correctly87- Icon-only buttons have `aria-label`8889**Design Quality:**90- Generous whitespace91- Clear visual hierarchy92- Color used with restraint93- Consistent radius and elevation94- Content width constrained95- Headings use `tracking-tight`, descriptions use `leading-relaxed`96- Numbers formatted with separators9798---99100## Hard Rules (never break these)1011021. **Only documented components** — if it's not in RAYDEN_RULES.md, it doesn't exist1032. **Only documented props** — never invent props1043. **Token classes only** — `bg-primary-500` not `#EB5017`1054. **One primary action per section** — rest are outlined or text1065. **No colored container backgrounds** — cards are always `bg-white`1076. **No gradient text** — never use `bg-clip-text text-transparent`1087. **Content width always constrained** — use `max-w-*`1098. **Compound components nest correctly** — Table → TableHeader → TableRow → TableHead