projection-patterns

Generate Python templates for CQRS read models and projections from event streams.

2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/as4584/antigravity-skills --skill projection-patterns-as4584
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: projection-patterns
Source: https://github.com/as4584/antigravity-skills/tree/main/agents-wshobson/plugins/backend-development/skills/projection-patterns
Command: npx skills add https://github.com/as4584/antigravity-skills --skill projection-patterns-as4584

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured approach and reusable templates for building efficient read models and projections from event streams, crucial for optimizing query performance in event-sourced systems.

Core Features & Use Cases

  • CQRS Read Sides: Implement the read side of Command Query Responsibility Segregation.
  • Materialized Views: Create and maintain denormalized views of event data for fast querying.
  • Real-time Dashboards: Power live dashboards by projecting events into queryable formats.
  • Search Indexes: Build and update search indexes (e.g., Elasticsearch) from event streams.

Quick Start

Use the projection-patterns skill to generate a basic projector template for handling 'OrderCreated' and 'OrderShipped' events.

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 in a CQRS architecture?

Projections transform event streams into queryable read models by applying event data to update materialized views or search indexes. This Skill provides Python templates for various projection types to maintain denormalized data for fast querying in event-sourced systems.

What is the best way to populate Elasticsearch from an event sourcing system?

You can populate Elasticsearch from an event sourcing system by implementing projection templates that consume event streams and update search indexes. This Skill provides specific Elasticsearch integration examples for building and maintaining search indexes from events.

How do I create materialized views for real-time dashboards from event data?

You create materialized views for real-time dashboards by using projection templates to process event streams into queryable formats. This Skill provides live and persistent projection patterns in Python to continuously update dashboard data from event streams.

What projection types are available for handling event-driven data in Python?

Available projection types include live, catchup, persistent, and inline projections in Python. These templates support creating read models for materialized views, real-time dashboards, and search indexes within event-driven and event-sourced architectures.

Do I need an existing event-sourced architecture to use projection patterns?

Yes, you need an existing event-sourced architecture because projection patterns process event streams to build read models. This Skill focuses on creating CQRS read sides and materialized views from existing event data rather than generating the event streams themselves.