
Description
projection-patterns is an agent skill from the wshobson/agents collection for building projections and read models from event streams in an event-sourced system. A projection listens to the events an application records and turns them into a view that is shaped for queries, such as a materialized view, a summary table, a search index or a real-time dashboard. The read model it produces is kept separate from the events, which are the source of truth, so queries can be fast and specific without changing how data is written. The skill covers the projection architecture, the core idea that many read models can be built from the same events, and the practical work of keeping them up to date. Its uses include building the read side of a CQRS design, creating materialized views from events, optimizing query performance, implementing real-time dashboards that update as events arrive, building search indexes from event data, and aggregating data across several event streams. Because a projection that falls behind or fails silently gives wrong answers, the skill also covers how to rebuild a read model from the events when it needs to change. The skill is installed with the skills CLI from the wshobson/agents repository. Its skills.sh page showed about 10.3K installs and passing results from three security audits at the time of the scan.…
Highlights
- Read models built from event streams
- Materialized views and summary tables
- Search indexes and real-time dashboards
- Read side of CQRS designs
- Aggregation across event streams
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate projection-patterns.
People also visit
projection-patterns FAQ
What is a projection?
A component that listens to events and builds a view from them, such as a summary table, a search index or a dashboard.
How does it relate to CQRS?
Projections build the read side in a CQRS design, separate from the write side.
Can I build several read models from one event stream?
Yes. The skill's architecture is built on the idea that many views can come from the same events.
Can a read model be rebuilt?
The skill covers rebuilding a read model from events when its shape needs to change.
How do I install it?
Run npx skills add https://github.com/wshobson/agents --skill projection-patterns.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best projection-patterns alternatives?
Popular alternatives to projection-patterns include cqrs-implementation, event-store-design and using-agent-skills. See all projection-patterns alternatives





