Agent skill
marten__multi_stream_projection
Create a Marten Multi-Stream Projection to aggregate events from *multiple* streams into a single view (e.g., summaries, dashboards).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/marten-multi-stream-projection
SKILL.md
Follow this guide to create a Multi-Stream Projection (View Projection) in Marten. This allows you to aggregate data across many different streams into a single document (or multiple documents based on grouping).
-
Define the Projection Class
- Create a
classinsrc/BookStore.ApiService/Projections/ - Naming:
{Summary}Projection(e.g.,AuthorDashboardProjectionorMonthlySalesProjection) - Base Class:
MultiStreamProjection<T, TId> - Template:
templates/Projection.cs
- Create a
-
Configure in Marten
- Open
src/BookStore.ApiService/Infrastructure/Extensions/MartenConfigurationExtensions.cs - Register:
csharp
options.Projections.Add<AuthorDashboardProjection>(ProjectionLifecycle.Async);
- Open
-
Indexing
- Add indexes in
ConfigureIndexesif you need to query by fields other than Id.
- Add indexes in
Related Skills
/marten__single_stream_projection: If you only need data from one stream./marten__event_projection: If you need 1:1 transformation without aggregation.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?