>- worth ingesting, process oldest first, checkpoint after every batch, and keep cost visible. Use this skill whenever the user wants to import years of bookmarks, an export from another notes app, a downloads folder, a chat history dump, or says "backfill", "bulk import", "process my archive". Do NOT use for ingesting one or a few new sources, which is second-brain-ingest.
npx skills add https://github.com/undefined-ui/second-brain-os --skill second-brain-backfill
A backfill is where cost and quality both go wrong quietly. Done in the wrong
order it also inverts the vault's history, because later sources should update
pages that earlier ones created.
Oldest first, ten sources per batch, stop for a go-ahead between batches.
worth-ingesting, keep-in-raw, and delete. Most archives are half dead links
and things saved but never opened.
arrives as a contradiction against a page that already has the final answer.
second-brain-ingest.index.md, append to log.md, commit with the batchrange in the message, report counts.
Batch <n>/<total>: <range>
Ingested: <n> sources -> <n> new pages, <n> updated, <n> links
Skipped: <n> (reason)
Running total: <n> of <n>
Next batch: <what it contains>
Read every page the first batch produced, all of them. A flaw you let through in
batch one is a flaw in four hundred pages by the end, and fixing it afterwards
costs more than the original run.
If the archive is over about two hundred sources, propose a filter before
starting rather than quoting the full cost.
Take undefined-ui/second-brain-backfill from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.