Index At Creation

by parcadeid07ff4b06b62No license3.9K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 8 months ago

Index at Creation Time

Instructions onlyAI & Agents
AI-generated overview

Advises indexing artifacts immediately at creation time rather than at batch boundaries.

What it does
This skill provides a short guidance pattern for indexing artifacts at the moment they are created instead of at session or batch boundaries. It lists recommended practices such as indexing handoffs in a PostToolUse Write hook, using a --file flag for fast single-file indexing, and triggering indexing from the same event that creates the artifact. It also lists practices to avoid, such as waiting for SessionEnd to batch-index or relying on scheduled jobs for time-sensitive data.
When to use it
Use it when downstream logic depends on artifacts being queryable soon after they are written. It is relevant when designing or reviewing indexing behavior around artifact creation events.
Requirements
No scripts or tools are required; it is instructions only. It references concepts such as a PostToolUse Write hook and a --file flag but does not ship code.

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"

Source and attribution

Source:parcadei/continuous-claude-v3in.claude/skills/index-at-creationat commitd07ff4b

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal