read-model
Installation
SKILL.md
Read Model Builder
When to use
Use this skill when asked to create a new read model or add event handlers to an existing read model in any Rails application under apps/.
Working Directory
Determine which app the read model belongs to. Default is apps/rails_application/ unless the user specifies another app (e.g. apps/crm/, apps/todo_mvc/). All paths below are relative to the target app directory.
Step-by-step process
1. Gather requirements
Before writing any code, clarify:
- The module name for the read model (e.g.
Wishlist,Notifications) - Which domain events it will subscribe to (e.g.
Catalog::ProductAdded,Ordering::OrderPlaced) - What data needs to be stored and queried
- What facade methods the rest of the app needs — only add facade methods that are actually used by controllers/views, not speculative ones