Individual skill
agentsop-idempotent-ingestion
Re-ingest-correctness SOP for production RAG. Activate when a calling agent builds, reviews, or debugs an ingestion pipeline that runs more than once over a changing corpus — scheduled re-index, incremental updates, CI re-ingest, or a "retrieval has duplicates / shows deleted docs" bug. Encodes the rule — **ingestion must be idempotent: a document's content hash decides insert/update/skip, so re-running over unchanged docs is a no-op** — plus the docstore + doc-hash upsert machinery (LlamaIndex `IngestionPipeline` + `DocstoreStrategy`), the delete-propagation problem, and cross-framework equivalents (LangChain `index()` + `RecordManager`, manual hash table). ENHANCE overlay over [[llamaindex]]: the IngestionPipeline exists in the base skill but the re-ingest-correctness contract is not surfaced.
skills/agentsop-idempotent-ingestion/SKILL.md
Source commit cf4376869e5f23f82404c3021a2a1315dfca318d
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Instructions only
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 465
- Repository last updated
- Oct 24, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skill Repository topic
- skill-creation Repository topic
- ai-agent Repository topic
- llm-agent Repository topic
- skill-engineering Repository topic
- skill-generation Repository topic
- skill-pipeline Repository topic
- skill-construction Repository topic
- agent-skills Repository topic
- skill-acquisition Repository topic
- legal Derived category
- writing Derived category
- docs Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 3,939 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesSKILL.mdcore · 27,841 bytesintermediate/operation_candidates.jsonasset · 8,468 bytesreferences/R1-source-evidence.mddoc · 6,279 bytesreferences/R2-cross-framework.mddoc · 6,306 bytes
Read excerpt
# Idempotent Ingestion · Re-Ingest-Correctness SOP
> Third-person operating model for a coder agent that owns ingestion
> correctness across repeated runs. The audience is the LLM agent writing or
> reviewing the pipeline code — not the end user.
> **One sentence**: *The interesting run is the second one. A correct pipeline
> hashes each document, looks the hash up in a docstore, and inserts / updates
> / skips accordingly — so re-running over unchanged docs changes nothing.*
This skill is an **ENHANCE overlay** over [[llamaindex]]. The base skill names
`IngestionPipeline` with `docstore` + `UPSERTS_AND_DELETE` as a hardening
must-have (OP-08, anti-pattern A10) but stops at "use it". This overlay
surfaces the *correctness contract* — what idempotency actually means, how the