rails-expert by 404kidwiz/claude-supercode-skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill rails-expert提供专业的 Ruby on Rails 开发专长,专注于 Rails 7+ 的现代特性、Hotwire 技术栈(Turbo、Stimulus)和现代 Rails 模式。擅长构建全栈 Web 应用程序,使用服务器端渲染的 HTML、实时更新以及结构化的客户端行为,无需依赖繁重的 JavaScript 框架。
在以下情况调用此技能:
在以下情况请勿调用:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Rails 开发决策
├─ 需要实时更新
│ ├─ 用户特定更新 → Turbo Streams + Action Cable
│ ├─ 广播给多个用户 → Action Cable 频道
│ └─ 简单的表单响应 → 基于 HTTP 的 Turbo Streams
│
├─ 前端架构
│ ├─ 最少 JS,服务器端渲染 → Hotwire (Turbo + Stimulus)
│ ├─ 复杂的客户端逻辑 → Rails API + React/Vue
│ └─ 混合方法 → 使用 Turbo Frames 实现交互性"孤岛"
│
├─ 数据库策略
│ ├─ 读密集型工作负载 → 带读取副本的多数据库
│ ├─ 复杂查询 → 查询对象 + 适当的索引
│ └─ 需要缓存 → 俄罗斯套娃缓存 + 片段缓存
│
└─ 代码组织
├─ 臃肿的模型 → 提取服务对象
├─ 复杂验证 → 表单对象
└─ 控制器中的业务逻辑 → 移至服务中
| 问题 | 解决方案 | 实现 |
|---|---|---|
| N+1 查询 | 预加载 | includes(:association) / preload |
| 计数缓慢 | 计数器缓存 | 在关联上使用 counter_cache: true |
| 重复查询 | 片段缓存 | cache @object do 代码块 |
| 大型数据集 | 分页 | Kaminari / Pagy 宝石 |
| API 响应缓慢 | JSON 缓存 | stale? / fresh_when |
每周安装数
54
代码仓库
GitHub 星标数
42
首次出现
2026年1月24日
安全审计
安装于
opencode44
claude-code44
codex42
gemini-cli39
github-copilot36
cursor34
Provides expert Ruby on Rails development expertise specializing in Rails 7+ modern features, Hotwire stack (Turbo, Stimulus), and modern Rails patterns. Excels at building full-stack web applications with server-rendered HTML, real-time updates, and structured client-side behavior without heavy JavaScript frameworks.
Invoke this skill when:
Do NOT invoke when:
Rails Development Decision
├─ Need real-time updates
│ ├─ User-specific updates → Turbo Streams + Action Cable
│ ├─ Broadcast to multiple users → Action Cable channels
│ └─ Simple form responses → Turbo Streams over HTTP
│
├─ Frontend architecture
│ ├─ Minimal JS, server-rendered → Hotwire (Turbo + Stimulus)
│ ├─ Complex client-side logic → Rails API + React/Vue
│ └─ Hybrid approach → Turbo Frames for islands of interactivity
│
├─ Database strategy
│ ├─ Read-heavy workload → Multi-DB with read replicas
│ ├─ Complex queries → Query Objects + proper indexing
│ └─ Caching needed → Russian doll caching + fragment caching
│
└─ Code organization
├─ Fat models → Extract Service Objects
├─ Complex validations → Form Objects
└─ Business logic in controllers → Move to services
| Issue | Solution | Implementation |
|---|---|---|
| N+1 queries | Eager loading | includes(:association) / preload |
| Slow counts | Counter caches | counter_cache: true on associations |
| Repeated queries | Fragment caching | cache @object do blocks |
| Large datasets | Pagination | Kaminari / Pagy gems |
| Slow API responses | JSON caching | stale? / |
Weekly Installs
54
Repository
GitHub Stars
42
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode44
claude-code44
codex42
gemini-cli39
github-copilot36
cursor34
TanStack Query v5 完全指南:React 数据管理、乐观更新、离线支持
2,500 周安装
fresh_when