rayden-code
它能做什么
这个技能可以使用 Rayden UI 组件库中现成的组件,帮你生成网站或应用的部分代码。它会确保生成的代码遵循设计规范,并使用正确的元素。
适用场景
- ✓使用 Rayden UI 创建新页面或新功能时。
- ✓快速搭建仪表盘、登录页或设置页等页面布局时。
- ✓需要严格遵循某个设计系统生成 React 代码时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rayden-code/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个仪表盘页面,包含 KPI 卡片、最近订单表格和动态信息流。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先分析你的需求,查阅完整的组件指南和设计规范,规划各个元素如何组合在一起,然后生成 React 和 Tailwind CSS 代码。最后,它会检查代码是否正确,以及是否符合设计规范。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
How It Works
- Parses the request — Identifies page type, required components, and data model
- Loads RAYDEN_RULES.md — Complete reference: 34 components with full props, design philosophy, token classes, layout patterns, anti-patterns, and accessibility rules
- Plans the layout — Decides page structure, component selection, spacing, color, and elevation strategy
- Generates code — Writes React + Tailwind CSS using only documented components and token classes
- 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 feed
Use 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 password
Use 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 zone
Use 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 table
Use 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 grid
Use 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.
…
常见问题
什么是 Rayden UI 组件?
它们是预先做好的界面构建模块,比如按钮、表单和卡片,并且都遵循统一的视觉风格。
什么是“设计令牌”(design tokens)?
它们是为颜色、间距和字体设定的基础值(比如“主色”或“中等间距”),用来保证整个项目的视觉一致性。
为什么需要导入 `@raydenui/ui/styles.css`?
这个文件包含样式规则和设计令牌,能让组件正确显示,并保持既定的外观。
详情
作者的原始描述
Generate React code with Rayden UI components using correct props, tokens, and premium layout patterns
热度
- GitHub 星标
- 48k
- 排名
- #5569
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。