IN

index-at-creation

Index data artifacts at the exact moment they are created.

Install

mkdir -p .claude/skills/index-at-creation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2710" && unzip -o skill.zip -d .claude/skills/index-at-creation && rm skill.zip

Installs to .claude/skills/index-at-creation

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Index at Creation Time
22 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Triggers index update on file write
  • Integrates with PostToolUse hook
  • Uses --file flag for granular indexing
  • Ensures artifact availability for queries

How it works

Hooks into the write operation lifecycle to invoke the indexer immediately upon completion instead of waiting for a batch session end signal.

Inputs & outputs

You give it
File path of newly created artifact
You get back
Indexed file ready for retrieval

When to use index-at-creation

  • Ensure real-time searchability of new files
  • Configure indexing to trigger on write
  • Update downstream dependencies immediately
  • Optimize data artifact retrieval

About this skill

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"

When not to use it

  • Large batch updates where immediate search is not required
  • Systems relying on scheduled cron jobs
  • When file creation is intermittent or low priority

Prerequisites

Access to PostToolUse hook

Limitations

  • Increased overhead on individual write operations
  • Requires integration with write hooks
  • Potential performance impact on high-frequency writes

How it compares

It eliminates the delay between artifact creation and index visibility, ensuring downstream dependencies always access the latest data.

Compared to similar skills

index-at-creation side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
index-at-creation (this skill)27moNo flagsIntermediate
pdf-processing-pro1710moReviewIntermediate
python-repl64moReviewBeginner
math-router67moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry