If your downstream logic needs to query artifacts right away, don't wait for batch indexing at session boundaries. This pattern hooks into PostToolUse Write events to index files the moment they're created, using the `--file` flag for fast single-file operations. It's built for scenarios where "eventually consistent" isn't good enough and you need artifacts queryable immediately after handoff. The approach is simple: trigger indexing from the same event that writes the artifact, rather than hoping a cron job or SessionEnd handler catches it in time. Solves a specific race condition at the cost of more frequent index operations.
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill index-at-creation