
Projection Patterns
If you're building event-sourced systems with CQRS, you'll eventually need to create read models from your event streams, and that's where this becomes essential. It provides concrete projector implementations that handle the mechanics of consuming events, maintaining checkpoints, and updating read models in databases or search indexes. The templates cover real scenarios like building order summaries from multiple event types and syncing data to Elasticsearch. What I appreciate is the focus on practical concerns like batch processing, error handling, and projection rebuilding. It's the kind of code you'd write anyway, but having tested patterns saves you from reinventing the checkpoint management and event handling infrastructure.
- skills.sh installs
- 10.9K
- GitHub stars
- 42.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshobson/agents --skill projection-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Projection Patterns
Comprehensive guide to building projections and read models for event-sourced systems.
When to Use This Skill
- Building CQRS read models
- Creating materialized views from events
- Optimizing query performance
- Implementing real-time dashboards
- Building search indexes from events
- Aggregating data across streams
Core Concepts
1. Projection Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Event Store │────►│ Projector │────►│ Read Model │
│ │ │ │ │ (Database) │
│ ┌─────────┐ │ │ ┌─────────┐ │ │ ┌─────────┐ │
│ │ Events │ │ │ │ Handler │ │ │ │ Tables │ │
│ └─────────┘ │ │ │ Logic │ │ │ │ Views │ │
│ │ │ └─────────┘ │ │ │ Cache │ │
└─────────────┘ └─────────────┘ └─────────────┘
2. Projection Types
Sponsors
Details
- Repository
- github.com/wshobson/agents
- Categories
- DevOps & CI/CD, Debugging
More from wshobson/agents
All 174- Employment Contract Templates10.9K
- Slo Implementation10.8K
- Defi Protocol Templates10.8K
- Team Composition Analysis10.7K
- Mtls Configuration10.7K
- On Call Handoff Patterns10.7K
- Service Mesh Observability10.7K
- Track Management10.7K
- Bazel Build Optimization10.6K
- Istio Traffic Management10.6K
- Nft Standards10.6K
- Linkerd Patterns10.6K
- Parallel Debugging10.4K
- Parallel Feature Development10.3K
- Task Coordination Strategies10.2K
- Multi Reviewer Patterns10.2K
- Team Communication Protocols10K
- Team Composition Patterns10K
- Evaluation Methodology7.6K
- Hads6.9K
- Block No Verify Hook6.9K
- Signed Audit Trails Recipe6.7K
- Protect Mcp Setup6.3K
- Review Agent Setup5.6K