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 從公開儲存庫中收錄這些內容。

檢舉或申請下架