Agent Skills
› rmyndharis/antigravity-skills
› projection-patterns
projection-patterns
GitHub本技能用于在事件溯源系统中构建读取模型和投影。适用于实现CQRS读取侧、创建物化视图、优化查询性能、构建实时仪表盘及搜索索引等场景,提供相关最佳实践与验证步骤。
触发场景
构建 CQRS 读取模型
从事件流创建物化视图
优化事件溯源系统的查询性能
实现实时仪表盘
基于事件构建搜索索引
安装
npx skills add rmyndharis/antigravity-skills --skill projection-patterns -g -y
SKILL.md
Frontmatter
{
"name": "projection-patterns",
"description": "Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems."
}
Projection Patterns
Comprehensive guide to building projections and read models for event-sourced systems.
Use this skill when
- 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
Do not use this skill when
- The task is unrelated to projection patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
版本历史
- e63f7dd 当前 2026-07-05 09:36


