scaffold-event-projection
CommunityScaffold Marten event projections quickly.
Authoraalmada
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill guides developers to scaffold a Marten Event Projection that transforms each event into a dedicated queryable document. It is ideal for building transparent, per-event read models.
Core Features & Use Cases
- Projection scaffolding: Create a Projection class in src/BookStore.ApiService/Projections/ that inherits EventProjection and uses the templates/Projection.cs as a starting point.
- Marten integration: Configure Marten projections in src/BookStore.ApiService/Infrastructure/Extensions/MartenConfigurationExtensions.cs with a line like options.Projections.Add<YourProjection>(ProjectionLifecycle.Async).
- Use cases: History tables, audit logs, and flattened stream data for reporting or analytics without aggregation.
Quick Start
Create the Projection class file at src/BookStore.ApiService/Projections/AuditLogProjection.cs, implement the projection logic by extending EventProjection, and reference templates/Projection.cs as the base.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: scaffold-event-projection Download link: https://github.com/aalmada/BookStore/archive/main.zip#scaffold-event-projection Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.