levifig/rails-instructions

Set of instructions for your favorite AI agent (e.g. Cursor, Copilot, Claude, etc) for a "DHH-driven" Ruby on Rails development philosophy.

This repository also configures its own agents. See what rails-instructions tells them →

56Stars on the repository
34Mods indexed here, across every type
1y agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

api

03

levifig/rails-instructions

Cursor rule Cursor

Remember: APIs are forever. Design them carefully, version them properly, and never break backward compatibility.

not rated 56 1y ago A 0 tokens original MIT

controllers

05

levifig/rails-instructions

Cursor rule Cursor

Remember: Controllers are just the translation layer between HTTP and your application. Keep them simple and let other layers handle complexity.

not rated 56 1y ago A 0 tokens original MIT

hotwire

08

levifig/rails-instructions

Cursor rule Cursor

Remember: Hotwire is about sending HTML over the wire. Keep your client-side code minimal and let Rails do what it does best - render HTML on the server.

not rated 56 1y ago A 0 tokens original MIT

importmaps

09

levifig/rails-instructions

Cursor rule Cursor

Cursor rule "importmaps" from levifig/rails-instructions, covering rails import maps guide, core philosophy, configuration principles, file organization and naming conventions for ai agents.

not rated 56 1y ago A 0 tokens original MIT

performance

12

levifig/rails-instructions

Cursor rule Cursor

Remember: Premature optimization is the root of all evil. Profile first, optimize what matters, and keep solutions maintainable.

not rated 56 1y ago A 0 tokens original MIT

security

13

levifig/rails-instructions

Cursor rule Cursor

Remember: Security is everyone's responsibility. Build it in from the start, not as an afterthought.

not rated 56 1y ago A 0 tokens original MIT

testing

16

levifig/rails-instructions

Cursor rule Cursor

Remember: Tests are your safety net and documentation. Write them first, keep them simple, and maintain them well.

not rated 56 1y ago A 0 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: