跳到正文
Skillpedia
数据库48k · #5519

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/projection-patterns/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.md for 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5519
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能