projection-patterns

Generate Python templates for event stream projections and read models.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill projection-patterns-yusufcmg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: projection-patterns
Source: https://github.com/yusufcmg/Antigravity-Agents-Workflows/tree/main/.agent/skills/backend/projection-patterns
Command: npx skills add https://github.com/yusufcmg/Antigravity-Agents-Workflows --skill projection-patterns-yusufcmg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and templates for building robust read models and projections from event streams, crucial for optimizing query performance and implementing CQRS read sides in event-sourced systems.

Core Features & Use Cases

  • Projection Architecture: Understand the flow from event store to read model.
  • Projection Types: Learn about live, catchup, persistent, and inline projections.
  • Templates: Utilize provided Python code for basic projectors, order summaries, Elasticsearch integration, aggregations, and multi-table projections.
  • Use Case: When implementing a CQRS architecture, use this skill to define and build the materialized views that serve your application's queries efficiently.

Quick Start

Use the projection-patterns skill to generate a basic projector template.

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 CQRS?

To build read models from event streams, you implement projectors that subscribe to event stores and translate events into materialized views. This Skill provides Python templates for constructing CQRS read sides, enabling efficient data querying without impacting the write side.

What are the different types of projections in event sourcing?

Projections in event sourcing include live, catchup, persistent, and inline types. Each type handles the flow from the event store to the read model differently, allowing you to optimize data querying and materialized view updates based on specific system requirements.

How do I integrate Elasticsearch with event-sourced projections?

You integrate Elasticsearch with projections by using event handlers to process event streams and update search indices. This Skill includes specific Python code templates for Elasticsearch integration, enabling advanced search capabilities alongside your standard database materialized views.

When do I need materialized views in an event-sourced system?

You need materialized views in an event-sourced system when query performance is critical and reconstructing state from raw event streams is too slow. Building projections allows you to pre-compute data into read models, enabling efficient data querying for application interfaces.

What database interactions are required for CQRS read-side implementation?

CQRS read-side implementation requires database interactions for storing and updating materialized views from event streams. This involves handling projection logic like multi-table updates and aggregations, ensuring your read models remain synchronized with underlying events.