Home / undefined-ui / second-brain-os · skills/second-brain-backfill/SKILL.md · GitHub

second-brain-backfill skillA

second-brain-backfill is agent-read markdown (skill) from undefined-ui/second-brain-os: Import a large archive into the vault in controlled batches: triage what is 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..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Backfill an archive

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.

## Core rule

Oldest first, ten sources per batch, stop for a go-ahead between batches.

## Workflow

1. **Triage before ingesting.** Read titles and first paragraphs. Sort into
   worth-ingesting, keep-in-raw, and delete. Most archives are half dead links
   and things saved but never opened.
2. **Order by date, oldest first.** Run it the other way and every old source
   arrives as a contradiction against a page that already has the final answer.
3. **Batch of ten.** Ingest following `second-brain-ingest`.
4. **Checkpoint:** update `index.md`, append to `log.md`, commit with the batch
   range in the message, report counts.
5. **Stop and wait** before the next batch.
6. **Full lint at the end.** Large imports always leave orphans and duplicates.

## Output format

```
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>
```

## Calibration
…

Read the whole file at its exact version.

How to install

Latest version
mdr add undefined-ui/second-brain-os/second-brain-backfill@git:20260908.1615b29
Exact content
mdr add undefined-ui/second-brain-os/second-brain-backfill@sha256:66876a67dafa86b6

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_epny5f2wq6elwuth.svg)](https://markdownregistry.com/a/art_epny5f2wq6elwuth)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260908.1615b29 latest2026-09-08 1615b29 2,013 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2013 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

undefined-ui/second-brain-os · 296 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_epny5f2wq6elwuth
GET https://markdownregistry.com/api/v1/resolve?ref=undefined-ui/second-brain-os/second-brain-backfill
GET https://markdownregistry.com/api/v1/blob/66876a67dafa86b67bef3b511147658370b0ea94e0b3a26c9c8507f74da6ca2e

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from undefined-ui/second-brain-os

second-brain-changed-my-mind skill
undefined-ui/second-brain-os · skills/second-brain-changed-my-mind/SKILL.md · Trace where the user's recorded position on something has shifted: superseded claims, contradictions between sources of…
git:20260908.1615b29 · audit A · 296 stars
second-brain-chat-import skill
undefined-ui/second-brain-os · skills/second-brain-chat-import/SKILL.md · Triage an exported chat history into what to ingest, what to archive and what to delete, with a privacy pass first. Use…
git:20260908.1615b29 · audit A · 296 stars
second-brain-graph skill
undefined-ui/second-brain-os · skills/second-brain-graph/SKILL.md · Analyse the vault's link graph and report on its shape: orphan rate, average degree, components, hubs, bridges and…
git:20260908.1615b29 · audit A · 296 stars
second-brain-ingest skill
undefined-ui/second-brain-os · skills/second-brain-ingest/SKILL.md · Turn raw source material in a second-brain vault into linked wiki pages: read the source, split it into concepts and…
git:20260907.8c47c65 · audit A · 296 stars
second-brain-lint skill
undefined-ui/second-brain-os · skills/second-brain-lint/SKILL.md · Audit a second-brain vault for structural problems and repair them: broken wikilinks, orphan pages, empty stubs…
git:20260907.8c47c65 · audit A · 296 stars
second-brain-merge skill
undefined-ui/second-brain-os · skills/second-brain-merge/SKILL.md · Merge two pages that describe the same thing, preserving every distinct claim, redirecting inbound links, and recording…
git:20260908.1615b29 · audit A · 296 stars
second-brain-metrics skill
undefined-ui/second-brain-os · skills/second-brain-metrics/SKILL.md · Record a dated snapshot of the vault's health numbers and compare against previous snapshots so trends are visible. Use…
git:20260908.1615b29 · audit A · 296 stars
second-brain-privacy skill
undefined-ui/second-brain-os · skills/second-brain-privacy/SKILL.md · Audit the vault for material that should not be in it: credentials, other people's private information, confidential…
git:20260908.1615b29 · audit A · 296 stars
second-brain-project skill
undefined-ui/second-brain-os · skills/second-brain-project/SKILL.md · Set up or update a project in the vault: the four-stage folder pipeline, a project-scoped CLAUDE.md with one goal, and…
git:20260908.1615b29 · audit A · 296 stars
second-brain-publish skill
undefined-ui/second-brain-os · skills/second-brain-publish/SKILL.md · Prepare a subset of the vault for publishing: check opt-in flags, find private material, and report what would leak…
git:20260908.1615b29 · audit A · 296 stars
second-brain-query skill
undefined-ui/second-brain-os · skills/second-brain-query/SKILL.md · Answer a question from a second-brain vault by reading its own pages, citing the pages used, and saying plainly when…
git:20260907.8c47c65 · audit A · 296 stars
second-brain-quiz skill
undefined-ui/second-brain-os · skills/second-brain-quiz/SKILL.md · Generate questions from the user's own concept pages so they can find out what they saved but never learned, and…
git:20260908.1615b29 · audit A · 296 stars

Every file in undefined-ui/second-brain-os

Browse by kind, by grade A, or by owner.