maroffo/claude-forge/rails
Claude Code and agent skill by maroffo/claude-forge
- community
Checking that the SKILL.md file is still in the repository.
Ruby on Rails with service-oriented architecture, Dry-validation, Sidekiq/Solid Queue, Hotwire. Use for Rails API, Rails services, Rails forms, RSpec, ActiveRecord, Rails migrations. Not for standalone Ruby gems (use ruby skill), and not for judging whether a migration is safe to run in production (that is the database-reviewer agent).
Install
npx vskill@latest install maroffo/claude-forge/railsSKILL.md
ABOUTME: Rails service-oriented architecture, validation contracts, background jobs, Hotwire
ABOUTME: API development with thin controllers, services, forms, filters
Ruby on Rails
Quick Reference
See also: _AST_GREP.md (sg patterns), _PATTERNS.md, source-control
Architecture calls:
Version (determine, don't assume)
See ../_LANG_COMMON.md. Fetch the truth:
Pre-Commit Verification (MANDATORY)
make check && make test-e2e must pass (enforced by the pre-commit-gate hook; see ../_LANG_COMMON.md). What make check expands to for Rails:
House Architecture Rules
These deliberately depart from Rails defaults, so apply them even where idiomatic Rails would put the code in the model:
- Controllers are the HTTP layer only
- All business logic lives in services, forms and filters
- Validation lives in Dry-validation contracts, not ActiveRecord validations
- Models hold data structure and associations, minimal logic
- No model callbacks, except for attachment destruction
Pattern Summary
Service: Complex business logic, multi-step operations, transactions
Form: User input validation + persistence
Contract: Validation rules (Dry-validation)
Controller: HTTP layer only, no business logic
Model: Associations, enums, simple scopes. NO validations, NO callbacks, NO business logic.
Background Jobs
| Component | Use When | |
|---|---|---|
| Solid Queue | <100 jobs/sec, no Redis needed | |
| Solid Cache | DB-backed caching | |
| Solid Cable | WebSockets, no Redis infra | |
| Sidekiq | Latency <100ms, 10k+ jobs/min |
Jobs MUST be idempotent.
Quality Checklist
- [ ] NO controller logic
- [ ] Validation in contracts only
- [ ] Business logic in services
- [ ] Jobs idempotent
- [ ] Tests pass
Resources
- https://guides.rubyonrails.org/
- https://dry-rb.org/gems/dry-validation/
- https://github.com/rails/solid_queue
- https://turbo.hotwired.dev/
Key gems: Dry-validation, Sidekiq/Solid Queue, Scenic, Pundit, Devise/Rodauth, ViewComponent/Phlex
For detailed patterns and examples, see `references/rails-patterns.md`
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rails/SKILL.md
Popularity
- Repository stars
- 9
- Repository forks
- 2
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maroffo/claude-forge/rails)