一键导入
rails-code-reviewer
Interactive Rails code review based on thoughtbot, rubocop, and 37signals style guides
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive Rails code review based on thoughtbot, rubocop, and 37signals style guides
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Rails Code Reviewer |
| description | Interactive Rails code review based on thoughtbot, rubocop, and 37signals style guides |
An interactive Rails code review skill based on thoughtbot, rubocop, and 37signals (Basecamp/HEY) style guides.
Rules are merged from:
Detailed rules are organized in the references/ directory:
Read the relevant reference files before reviewing code in that category.
Default behavior: Review current branch changes (git diff) across all relevant categories. Auto-detect which reference files to load based on changed file paths:
app/models/ → load references/models.mdapp/controllers/ → load references/controllers.mddb/migrate/ → load references/migrations.mdconfig/routes.rb → load references/routing.mdapp/views/ → load references/views.mdtest/ or spec/ → load references/testing.mdapp/javascript/controllers/ → load references/hotwire.mdIf the user provides arguments (e.g., /rails-reviewer app/models/), review those specific paths instead.
Only ask the user for clarification if:
Present findings in digestible chunks by priority:
After each chunk, ask:
Want me to explain any of these, show fixes, or move to the next category?
Allow the user to:
## Review Summary
### Must Fix (High Priority)
- [ ] Issue 1: description (file:line)
### Should Fix (Medium Priority)
- [ ] Issue 2: description (file:line)
### Consider (Pattern Opportunities)
- [ ] Suggestion: description
### Stats
- Files reviewed: X
- Issues found: Y
- Categories covered: Z
User: /rails-reviewer
Claude: [Reads git diff, detects model + hotwire changes, loads references/models.md and references/hotwire.md]
**Model Review: app/models/card.rb** — 3 findings
1. **Boolean column could be a state record** (Line 15) — Consider a `Closure` model instead.
2. **Extract to concern** (Lines 20-45) — Closeable behavior could be a concern.
3. **Missing `touch: true`** (Line 8) — For cache invalidation.
Want me to explain any of these, show fixes, or continue to Hotwire?