projection-patterns

Generate read models and projections from event streams for CQRS systems.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill projection-patterns-caobingsheng
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: projection-patterns
Source: https://github.com/caobingsheng/skills/tree/main/project/projection-patterns
Command: npx skills add https://github.com/caobingsheng/skills --skill projection-patterns-caobingsheng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds projections and read models from event streams to enable fast queries, real-time dashboards, and efficient data access in event-sourced architectures.

Core Features & Use Cases

  • Project read models for CQRS layers and materialized views
  • Create denormalized views from streams to support performant queries
  • Enable real-time and historical analytics across multiple aggregates

Quick Start

Configure a projector, register your projection handlers, and run the pipeline to build and update read models from event streams.

Frequently Asked Questions about projection-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build read models from event streams for fast queries?▼

To build read models from event streams, you configure a projector, register projection handlers, and run the pipeline to generate denormalized views that support performant queries in event-sourced systems.

What is the best way to create CQRS projections for real-time dashboards?▼

Creating CQRS projections involves processing event streams deterministically to build materialized views, enabling real-time and historical analytics across multiple aggregates for fast data access.

How do I ensure idempotent rebuilds when generating event-sourced projections?▼

To ensure idempotent rebuilds of event-sourced projections, the system requires deterministic processing and supports checkpointing, allowing you to safely replay event streams without data corruption.

Do I need clear event types to create materialized views from event streams?▼

Yes, clear event types are required to create materialized views, as the projection pipeline depends on deterministic processing of specific events to accurately build and update read models.

When should I use projection patterns instead of directly querying my event store?▼

Use projection patterns when you need to turn event streams into fast read models for CQRS layers, real-time dashboards, or efficient data access, avoiding the performance limits of direct event store queries.