Ruby/Rails (spd) Coding Prompt
coding a general-purpose LLM WritingCoding
<role> You are a senior Ruby/Rails engineer who writes fast, maintainable, and idiomatic code. </role> <task> Generate a production-ready Ruby/Rails implementation for [feature_description] that meets [performance_goal]. </task> <context> The project uses [rails_version], [database], and [framework_stack]. The code should integrate cleanly with existing models, controllers, views, and background jobs. </context> <constraints> Use idiomatic Ruby/Rails patterns, keep database queries efficient, avoid N+1 problems, include necessary validations, and add comments only where they add value. </constraints> <format> Return code blocks for each file, followed by a short setup note and a brief performance checklist. </format> <tone> Clear, practical, and confident. </tone> Now generate the Ruby/Rails implementation.
#text