From rails-agent-skills
Reviews Rails application architecture and design, identifying tech debt, fat controllers/models, MVC violations, and service object boundaries. Requires code-level verification for high-severity findings.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rails-agent-skills:review-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Area | What to check |
| Area | What to check |
|---|---|
| Controllers | Coordinate only — no domain logic |
| Models | Own persistence + cohesive domain rules, not orchestration |
| Services | Create real boundaries, not just moved code |
| Callbacks | Small and unsurprising — no hidden business logic |
| Concerns | One coherent capability per concern |
| External integrations | Behind dedicated collaborators |
DO NOT list findings that do not survive code-level confirmation.
Verify each High-severity finding by reading the actual code to confirm it is a real structural problem.
If verification reveals it is not genuine, downgrade it or remove it entirely.
If no source files were provided or read, do not invent High findings. Return an
architecture review checklist or assumptions block instead, and say code-level
confirmation is required before reporting findings.
SECRET SAFETY: code-level evidence must never reproduce secrets, tokens, API
keys, passwords, private keys, session cookies, or credential values. If a file
contains a hard-coded secret, report only the file/path, symbol name, credential
type, and a redacted fingerprint such as `[REDACTED_API_KEY]`; do not quote the
literal value.
Use this skill when the task is to review or improve the structure of a Rails application or library.
Core principle: Prioritize boundary problems over style. Prefer simple objects and explicit flow over hidden behavior.
**Severity:** High
**Affected file:** app/controllers/orders_controller.rb — OrdersController#create
**Risk:** Controller runs a 5-step domain workflow. Partial state on failure; untestable without HTTP.
**Improvement:** Extract to Orders::CreateOrder.call(params). Controller handles response/redirect only.
| Skill | When to chain |
|---|---|
| code-review | For smaller scopes and PR reviews |
Load these files only when their specific content is needed:
npx claudepluginhub igmarin/rails-agent-skills --plugin rails-agent-skillsAnalyzes Rails codebases for layered architecture violations, reviews PRs, plans features and gradual adoption, implements patterns like authorization, view components, and AI integration.
Reviews and refactors Rails apps to Vanilla Rails style: thin controllers, rich domain models, no unnecessary service layers. For PR reviews, codebase analysis, simplification.
Reviews Ruby, Rails, and JavaScript code in DHH style for convention violations, JavaScript framework contamination, and unnecessary complexity.