home / skills / steveclarke / dotfiles / real-world-rails
This skill researches how production Rails apps solve architectural problems by examining real code patterns from the Real World Rails repository.
npx playbooks add skill steveclarke/dotfiles --skill real-world-railsReview the files below or copy the command above to add this skill to your agents.
---
name: real-world-rails
description: Research how production Rails apps solve architectural problems using the Real World Rails repository. Use when the user wants to know how other apps handle something, find patterns, or compare approaches. Triggers on "rails patterns", "how do other apps", "real world rails", "research how apps do".
---
# Rails Pattern Research
## What This Is
The **Real World Rails** repository is a collection of 200+ production Rails
application source code. The `apps/` directory contains the full source of
each app — models, migrations, schema, controllers, views, concerns, gems.
The `engines/` directory contains Rails engines.
## Locating the Repository
Look for a directory called `real-world-rails` with an `apps/` subdirectory.
Check the current working directory first, then `~/src/real-world-rails`. If
not found, ask the user where it lives.
## What To Do
The user gives you a topic. Spin up parallel agents to search the apps for
how real codebases implement that pattern. Read actual code — models,
schemas, migrations, associations, validations, query patterns — not just
file names. Synthesize what you find into a clear analysis.
If the user's wording suggests they want help choosing a pattern for their
current project (words like "compare for us", "which fits best",
"adversarial", "debate", "evaluate for our project"), also spin up adversarial
agents that each argue for a different pattern in the context of the current
project's architecture and goals.
This skill researches how production Ruby on Rails applications solve architectural problems by inspecting a large collection of real app source code. It helps you find patterns, compare approaches, and synthesize concrete examples from real projects so you can make informed design choices for your own app. Use it when you want practical, code-level evidence of how teams implement features and structure Rails apps.
Given a topic you provide, the skill searches the available apps directory for relevant code: models, migrations, controllers, concerns, and config. It reads actual implementations and extracts common approaches, trade-offs, and representative snippets. When asked to choose among patterns for your project, it can spawn adversarial analyses that argue for competing options in your specific context.
Where does this skill look for examples?
It inspects a local collection of production Rails app source trees (models, controllers, migrations, etc.). If the collection isn’t found locally, it will ask where the files live.
Can it recommend a single best pattern for my app?
Yes—when you provide project constraints the skill synthesizes trade-offs and can recommend the best fit. For contentious choices it can produce adversarial arguments for multiple options.