rayden-code – skill Lập trình cho agent AI
Tạo code React với component Rayden UI, dùng đúng props, token và các mẫu layout cao cấp.
Cài skill rayden-code bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/rayden-code-f1b26.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /rayden-code – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/rayden-code-f1b26.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $rayden-code – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/rayden-code-f1b26.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /rayden-code – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/rayden-code-f1b26.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /rayden-code – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Rayden Code Skill
Overview
Generate production-quality React + Tailwind CSS code using the Rayden UI component library (34 components). The skill loads a complete API reference with every component, every prop, design tokens, layout patterns, and an explicit anti-pattern ban list — preventing hallucinated components and generic AI output. Built on the Rayna UI design system.
When to Use This Skill
- You're building a new page or feature using Rayden UI components
- You want to scaffold a dashboard, landing page, auth screen, settings page, or data table
- You need to generate React code that follows a specific design system precisely
- You want to prototype UI quickly with correct component usage and premium aesthetics
- You're vibe coding and want design-system-compliant output
Reference availability
This AAS tree contains only this guide; RAYDEN_RULES.md, the 16-point checklist and component implementation are not bundled. Locate a reviewed compatible upstream reference or installed package type declarations before generating imports/props/tokens. If absent, prepare a layout proposal and report the missing API reference; do not invent components or claim a reference was loaded. Package installation may contact the network and execute dependency scripts, so the no-network statement below describes direct text generation only.
How It Works
1. Parses the request — Identifies page type, required components, and data model
2. Loads RAYDEN_RULES.md — Complete reference: 34 components with full props, design philosophy, token classes, layout patterns, anti-patterns, and accessibility rules
3. Plans the layout — Decides page structure, component selection, spacing, color, and elevation strategy
4. Generates code — Writes React + Tailwind CSS using only documented components and token classes
5. Self-validates — Runs a 16-point checklist covering correctness (valid components/props, token usage, nesting) and design quality (whitespace, hierarchy, restraint, responsiveness)
Examples
Vibe code a SaaS dashboard
/rayden-code a dashboard with KPI cards, a recent orders table, and an activity feedUse case: You're building an internal analytics tool and need a full dashboard page with MetricsCard grid, sortable Table, and ActivityFeed sidebar — all with correct Rayden imports and token classes.
Scaffold a login page
/rayden-code login page with email and passwordUse case: You need a centered auth form with Input components, a primary Button, and proper visual hierarchy — following Rayden's "Auth / Focused Form" pattern.
Build an admin settings page
/rayden-code settings page with profile section, notification toggles, and danger zoneUse case: You're adding a settings area to your app and need form sections with Toggle components, a destructive action zone, and a single-column constrained layout.
Create a pricing page
/rayden-code pricing page with 3 tiers and a feature comparison tableUse case: You need a marketing pricing section with Card components for each tier, Badge for the recommended plan, and a Table for feature comparison.
Build an e-commerce product grid
/rayden-code product catalog with filters, search, and a card gridUse case: You're building a storefront and need a responsive product grid with Chip filters, Input search, Pagination, and Cards with images — all using Rayden's layout and spacing rules.
Best Practices
- Describe what you want in plain language — the skill maps your request to the right components
- Install
@raydenui/uiin your project first (npm install @raydenui/ui) - Import
@raydenui/ui/styles.cssin your app entry point for design tokens to work - Review generated code for business logic — the skill handles UI, not data fetching
- Use alongside
/rayden-useif you also want the same design built in Figma
Security & Safety Notes
- This skill only reads its bundled rules file and writes code to your project
- No external network requests
- No secrets or credentials involved
- Generated code uses standard React patterns with no eval or dynamic code execution
Common Pitfalls
| Problem | Solution |
|---------|----------|
| Components not rendering correctly | Ensure @raydenui/ui/styles.css is imported in your app entry |
| "Component doesn't exist" error | The skill only uses documented components — check if you're asking for something Rayden doesn't have |
| Colors look wrong | Use token classes (bg-primary-500) not hex values. Ensure the Rayden CSS is loaded |
| Layout not responsive | The skill generates responsive code by default — check that your viewport meta tag is set |
Related Skills
rayden-use— Build Rayden UI components and screens in Figma via MCP (included in the same package)
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- rclone-cli – Tài liệu tham khảo và hướng dẫn sử dụng trình quản lý lưu trữ đám mây rclone trên dòng…
- react-best-practices – Hướng dẫn tối ưu hiệu năng toàn diện cho ứng dụng React và Next.js, được điều chỉnh từ…
- react-component-performance – Chẩn đoán các component React chậm và đề xuất cách sửa hiệu năng có mục tiêu.
- react-flow-architect – Xây dựng ứng dụng ReactFlow sẵn sàng production với điều hướng phân cấp, tối ưu hiệu…
- react-flow-node-ts – Tạo component node cho React Flow theo các mẫu đã thiết lập, với kiểu TypeScript phù hợp…
- react-modernization – Thành thạo việc nâng cấp phiên bản React, chuyển từ class sang hooks, áp dụng các tính…
- react-native-architecture – Các mẫu kiến trúc và tích hợp cho React Native với Expo, bao gồm navigation, quản lý…
- react-native-skills – Review việc render, danh sách, animation, navigation và native UI của React Native và…