projection-patterns
它能做什么
这个工具用来整理和汇总过去的事件信息,方便你快速查询。它就像从大量笔记中整理出一份有条理的摘要,让你无需重读全部内容,也能找到所需信息。
适用场景
- ✓需要快速汇总历史数据时。
- ✓想要以有条理的方式制作展示关键信息的报表时。
- ✓希望数据查询更快、更高效时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/projection-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我汇总过去 3 个月的客户订单,看看哪些产品卖得最好。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会读取连续的事件流(比如操作日志),并把它们整理成更便于查询的格式。它会创建专门的数据“视图”,针对回答具体问题进行优化。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
什么是“事件流”?
它就像一本日记,每个重要的操作或事件都按顺序记录下来。例如,“客户 X 购买了产品 Y”就是一个事件。
什么是“读模型”和“投影”?
它们是把事件流中的数据组织和呈现出来的方式,便于阅读,也便于回答具体问题。可以把它们理解为从原始日记中整理出来的不同摘要或表格。
优化查询性能是什么意思?
指让在数据中搜索信息的速度大大加快,从而节省时间和资源。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 48k
- 排名
- #5519
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。