Try it
Add the skill to a bot, then ask your Chief of Staff:
“Use the Ruby Rails Patterns skill on this: [describe the job, or paste your notes].”
The Order model has at least three distinct responsibilities: persistence and domain logic, payment processing (external I/O), and triggering side effects (email, audit). The fat controller is a symptom of the model not providing a clean service interface.
What it covers
- Pattern Recommendation: Service Object + Query Object + Pub/Sub Event