1---2name: index-at-creation3description: Index at Creation Time4---567# Index at Creation Time
89Index artifacts when they're created, not at batch boundaries.
1011## Pattern
1213If downstream logic depends on artifacts being queryable, index immediately at write time.
1415## DO
16- Index handoffs in PostToolUse Write hook (immediately after creation)
17- Use `--file` flag for fast single-file indexing
18- Trigger indexing from the same event that creates the artifact
1920## DON'T
21- Wait for SessionEnd to batch-index
22- Rely on cron/scheduled jobs for time-sensitive data
23- Assume data will be available "soon enough"
2425## Source Sessions
26- a541f08a: "Index at artifact creation time, not at SessionEnd"
27- 1c21e6c8: "If downstream logic depends on artifacts, index at the moment they're created"
2829---
3031**Source:** [`parcadei/Continuous-Claude-v3`](https://github.com/parcadei/Continuous-Claude-v3) → `.claude/skills/index-at-creation/SKILL.md`
Run npx skillmds add thedixitjain/index-at-creation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Index at Creation Time It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
thedixitjain (@thedixitjain) published this skill. Their other Agent Skills are listed on their SkillMD profile.