Re-Ingest
Type: kb/types/instruction.md
Target: $ARGUMENTS — the .ingest.md filename (e.g. simon-willison-karpathy-claws.ingest.md) or path.
If target is empty, list .ingest.md files and ask which to re-ingest.
When to use
- The KB has evolved since ingestion and the connections/extractable value are stale
- The original ingest has broken links, missing descriptions, or references to old project names
- You want to re-evaluate a source against notes written after the original ingest
Prerequisites
- Resolve the target to a full path under
kb/sources/. If only a filename was given, prependkb/sources/. - Verify the
.ingest.mdfile exists. - Identify the source snapshot: read the
source_snapshotfrontmatter field. Verify the snapshot file exists inkb/sources/.
Step 1: Re-ingest
Run /cp-skill-ingest <snapshot-file-path> on the source snapshot.
This will:
- Set up a workshop
- Run /cp-skill-connect against current KB state
- Produce a fresh analysis
- Overwrite the .ingest.md file
The new report reflects the current KB — new notes that didn't exist during the original ingest will appear as connections, and stale connections to deleted/renamed notes will be dropped.
Step 2: Review the new report
Read the newly generated .ingest.md. Check:
- Link health — every relative link resolves to an existing file.
- Section completeness — Classification, Summary, Connections Found, Extractable Value, Recommended Next Action are all present.
- Connection quality — relationship types (validates, extends, grounds, contrasts, exemplifies) are specific, not vague.
- No stale project references — no references to project names, systems, or concepts that no longer exist in this KB.
If any check fails, fix the report in place before proceeding.
Step 3: Update inbound links
Search the entire KB for markdown links pointing to this .ingest.md file:
rg -n "<ingest-filename>" kb/ --glob "*.md"
Exclude:
- kb/sources/dir-index.md (auto-generated from source files; regenerate rather than hand-edit)
- The ingest file itself (self-references)
For each hit:
- Read the linking note around the matched line.
- Check whether the reference still holds. The link URL is unchanged (same filename), but the note may quote or paraphrase specific content from the old ingest. Common patterns:
- Note cites a specific claim from the ingest summary → verify the new summary still supports it
- Note references an extractable value item → verify the item still exists or has an equivalent
- Note uses the ingest as evidence for an argument → verify the new ingest still provides that evidence
- If the reference holds — no change needed.
- If the reference is broken or misleading — update the linking note:
- Rewrite the sentence to match the new ingest content
- If the ingest no longer supports the claim at all, remove or replace the reference
- If the new ingest supports the claim differently, update the framing
Report each linking note and what you did (kept / updated / removed reference).
Step 4: Report
Summarize what changed:
=== RE-INGEST: {filename} ===
Inbound links checked: {count}
Unchanged: {count}
Updated: {list with one-line explanation each}
Removed: {count}
Issues fixed: {broken links, missing description, stale references — or "none"}
===
Do NOT
- Do not delete the old
.ingest.mdmanually —/cp-skill-ingestoverwrites it. - Do not hand-edit
kb/sources/dir-index.md— regenerate it when source files change. - Do not modify the source snapshot.
- Do not batch multiple re-ingests in one run. Each re-ingest may change the KB state that the next one depends on.