Index At Creation

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Index at Creation Time

仅含说明AI & Agents
AI 生成的概览

建议在制品创建时立即建立索引,而不是在批次边界处理。

功能
该技能提供一套简短指导模式,主张在制品创建的那一刻就建立索引,而不是等到会话或批次边界。它列出了推荐做法,例如在 PostToolUse Write 钩子中为交接内容建立索引、使用 --file 参数进行快速单文件索引,以及由创建制品的同一事件触发索引。它还列出了应避免的做法,例如等到 SessionEnd 再批量索引,或依赖定时任务处理时间敏感数据。
适用场景
当下游逻辑依赖制品在写入后很快可查询时使用。它适用于围绕制品创建事件设计或审查索引行为的场景。
运行要求
无需脚本或工具,仅为说明性指令。它提到 PostToolUse Write 钩子和 --file 参数等概念,但不附带代码。

Index at Creation Time

Index artifacts when they're created, not at batch boundaries.

Pattern

If downstream logic depends on artifacts being queryable, index immediately at write time.

DO

  • Index handoffs in PostToolUse Write hook (immediately after creation)
  • Use --file flag for fast single-file indexing
  • Trigger indexing from the same event that creates the artifact

DON'T

  • Wait for SessionEnd to batch-index
  • Rely on cron/scheduled jobs for time-sensitive data
  • Assume data will be available "soon enough"

Source Sessions

  • a541f08a: "Index at artifact creation time, not at SessionEnd"
  • 1c21e6c8: "If downstream logic depends on artifacts, index at the moment they're created"

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/index-at-creation提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架