rails
Ruby on Rails with service-oriented architecture, Dry-validation, Sidekiq/Solid Queue, Hotwire.
Skill by maroffo
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/maroffo-rails
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rails
What's inside
- Skill name
rails- Description
- 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).
- License
- MIT
- Compatibility
- Requires Bundler and Rails. Optional: lefthook, RSpec.
- Instructions
- 136 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (2)
- SKILL.md
- rails-patterns.md · references/
SKILL.md (first lines)
# ABOUTME: Rails service-oriented architecture, validation contracts, background jobs, Hotwire
# ABOUTME: API development with thin controllers, services, forms, filters
# Ruby on Rails
## Quick Reference
```bash
bundle exec lefthook run all # Quality checks
bundle exec rspec # Tests
rails s / bin/dev # Server (bin/dev for Hotwire)
bin/jobs # Solid Queue workers
```
**See also:** `_AST_GREP.md` (sg patterns), `_PATTERNS.md`, `source-control`
**Architecture calls:**
```ruby
MyService.new(user:, params:).call # Service
MyForm.new(params, user).save # Form
MyFilter.result(params, scope) # Filter
MyJob.perform_async(id) # Sidekiq
MyJob.perform_later(id) # Solid Queue
```
---
## Version (determine, don't assume)
See `../_LANG_COMMON.md`. Fetch the truth:
```bash
bundle exec rails -v # project Rails version
ruby -v && cat .ruby-version 2>/dev/null # project Ruby version
curl -s https://rubygems.org/api/v1/gems/rails.json | jq -r .version # latest upstream Rails
```
---
## 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:
```bash
bundle exec lefthook run all # Rubocop, Brakeman, tests, etc.
bundle exec rspec # Full RSpec suite
bundle exec brakeman --no-pager # Security scan
bundle audit check --update # Dependency CVEs
```
---
## House Architecture Rules
These deliberately depart from Rails defaults, so apply them even where idiomatic Rails would put the code in the model:
1. Controllers are the HTTP layer only
2. All business logic lives in services, forms and filters
3. Validation lives in Dry-validation contracts, not ActiveRecord validations
4. Models hold data structure and associations, minimal logic
5. No model callbacks, except for attachment destruction
---
## Pattern Summary
**Service:** Complex business logic, multi-step operations, transactions
```ruby
MyService.new(user:, params:).call # Returns OpenStruct(success, record)
```
**Form:** User input validation + persistence
```ruby
MyForm.new(params, user).save # Returns true/false
```
**Contract:** Validation rules (Dry-validation)
```ruby
CreateContract.new.call(params) # Returns Result(success?, errors)
```
**Controller:** HTTP layer only, no business logic
```ruby
def create
form = CreateForm.new(params, current_user)
form.save ? render(json: form.model, status: :created) : render(json: { errors: form.errors }, status: :unprocessable_entity)
end
```
**Model:** Associations, enums, simple scopes. NO validations, NO callbacks, NO business logic.
```ruby
belongs_to :user
has_many :tags, dependent: :destroy
enum :status, { draft: 0, published: 1 }
scope :recent, -> { order(created_at: :desc) }
```
---
## 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 passFrom maroffo/claude-forge, MIT.
More from maroffo/claude-forge
- 0.634score
source-control
maroffo
Git conventions for commit messages and workflow.
SkillAFreshness: A★ 17Claude Code +9 - 0.606score
plan-forge
maroffo
Turn a GitHub issue or an in-session analysis into a locked ExecPlan on disk plus a ready-to-paste implementation prompt and /goal line for a fresh session…
SkillBFreshness: B★ 17Claude Code +9 - 0.606score
pr-review
maroffo
PR-level review that composes gemini-review, the orchestrator review fleet, and (when contested) second-opinion, reading each commit's intent before judging.
SkillBFreshness: B★ 17Claude Code +9 - 0.606score
harness-trace
maroffo
Execution trace capture and token baselining.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
adr
maroffo
Write Architecture Decision Records following HikmaAI format.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
apple-swift
maroffo
Apple platform development with Swift, SwiftUI, async/await, and performance.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
golang
maroffo
Go development: conventions, architecture, concurrency, performance, and code review.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
python
maroffo
Python development with uv, type checking, linting, testing, and Docker deployment.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
react-nextjs
maroffo
React + Next.js App Router development.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
android-kotlin
maroffo
Android development with Kotlin, Jetpack Compose, Clean Architecture, and performance.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
humanizer
maroffo
Rewrite text so it stops reading as AI-generated, keeping every fact: removes LLM tells such as inflated significance, promotional tone, AI vocabulary, forced…
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
ruby
maroffo
Ruby gem development with modern tooling, testing, and publishing.
SkillBFreshness: B★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 1
- Open issues
- 6
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/maroffo/claude-forge
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from maroffo
- 0.634score
source-control
maroffo
Git conventions for commit messages and workflow.
SkillAFreshness: A★ 17Claude Code +9 - 0.606score
pr-review
maroffo
PR-level review that composes gemini-review, the orchestrator review fleet, and (when contested) second-opinion, reading each commit's intent before judging.
SkillBFreshness: B★ 17Claude Code +9 - 0.606score
harness-trace
maroffo
Execution trace capture and token baselining.
SkillBFreshness: B★ 17Claude Code +9 - 0.606score
plan-forge
maroffo
Turn a GitHub issue or an in-session analysis into a locked ExecPlan on disk plus a ready-to-paste implementation prompt and /goal line for a fresh session…
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
adr
maroffo
Write Architecture Decision Records following HikmaAI format.
SkillBFreshness: B★ 17Claude Code +9 - 0.602score
golang
maroffo
Go development: conventions, architecture, concurrency, performance, and code review.
SkillBFreshness: B★ 17Claude Code +9
Cite this page
rails skill. Agent Mart. https://agentmart.dev/skills/maroffo-rails (last updated 2026-10-24)