scaffold-composite-projection

Community

Chain projections for faster Marten queries.

Authoraalmada
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables teams to efficiently compose multiple Marten projections by constructing a Composite Projection, reducing data processing time and simplifying projection pipelines.

Core Features & Use Cases

  • Composite Projection: Chains multiple projections into a single, efficient read path.
  • Staged Projections: Supports Stage 1 basic projections and Stage 2 dependent projections that consume outputs from Stage 1.
  • Indexing Best Practices: Aligns with Marten's indexing to optimize throughput and query performance.

Quick Start

Follow these steps to implement a composite projection in Marten (v8.18+): define the Projection class in src/BookStore.ApiService/Projections/, configure MartenConfigurationExtensions.cs with options.Projections.CompositeProjectionFor(...) to add Stage 1 and Stage 2 projections, and verify indexing in ConfigureIndexes.

Dependency Matrix

Required Modules

None required

Components

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-composite-projection
Download link: https://github.com/aalmada/BookStore/archive/main.zip#scaffold-composite-projection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.