Real World Rails
Researchreal-world-railsReal World Rails is an Agent Skill for research published in the steveclarke/real-world-rails repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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".
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/steveclarke/real-world-rails/blob/HEAD/skills/real-world-rails/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/real-world-rails, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.