agentleFS
undefined-uiundefined-ui/second-brain-os/skills/second-brain-ingest/SKILL.md

second-brain-ingest

Skill1.5k starsChanged 3 months agoMITView on GitHub

Turn raw source material in a second-brain vault into linked wiki pages: read the source, split it into concepts and entities, write or update pages, connect them to existing pages, and record the run in the log. Use this skill whenever the user drops a file into raw/, pastes an article, transcript or PDF and asks to add it to the vault, says "ingest this", "add this to my second brain", "process raw", or asks to catch up on unprocessed sources, even if they do not name the ingest command. Do NOT use for answering questions from an existing vault, for linting or repairing pages, or for editing notes the user wrote by hand.

2 other projects use a version of this.

Trending

More talk lately.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 4 mentionsNov 2026: 5 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the undefined-ui/second-brain-os repository that our weekly crawl found: only 13 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about undefined-ui/second-brain-os

The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 13

Talked about on GitHub (13 times).

On GitHub · 13

8 more on GitHub

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the source completely: before writing anything. Partial reads produce pages built from the introduction, which is where sources are …

    line 29
  2. Distinctive:

    Check what already exists: Search the wiki for the main entities and concepts.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ingest a source

An ingest that only writes a summary page produces a vault that grows without getting smarter. The whole value is in the second half of the job: connecting the new material to what is already there. A page that lands unlinked is invisible within a week.

Core rule

Nothing is ingested until it is linked. Every run ends with the new pages connected to existing pages in both directions.

Workflow

  1. Read the source completely before writing anything. Partial reads produce pages built from the introduction, which is where sources are least specific.
  2. Check what already exists. Search the wiki for the main entities and concepts. Ingesting into an empty vault and ingesting into a vault of 300 pages are different jobs: in the second, most of your work is updating pages, not creating them.
  3. Write the source page in wiki/sources/. Record claims as claims, with the source attached.
  4. Extract concepts and entities. One page per idea. If a concept page exists, add what this source contributes and update updated:. If it contradicts what is there, record both positions rather than replacing.
  5. Link in both directions. The source page links to every concept and entity it touches; each of those links back. Add any missing target pages, or list them under Gaps in index.md.
  6. Update index.md and append to log.md in the same run, because an index that lags is how a vault starts drifting.
  7. Report what changed.

Output format

End every run with this exact shape:

Ingested: <source name>
New pages: <n> (list)
Updated pages: <n> (list)
Links added: <n>
Contradictions found: <none | description>
Gaps created: <list of linked pages that do not exist yet>

Calibration

Over-extraction is the common failure: ten thin concept pages from one article, each a restated paragraph. A source usually yields one to three concepts worth their own page. If a candidate concept cannot be explained without referring back to this one source, it belongs inside the source page instead.

Under-extraction shows up as source pages that contain three separate ideas and link to nothing. If a page needs section headings for unrelated topics, split it.

Example

Input: the user drops raw/karpathy-llm-wiki.md, a clipped gist, into a vault that already has pages for [[Obsidian]] and [[Claude Code]].

Output: one source page; a new concept page [[LLM wiki]] explaining the pattern in plain language; an entity page [[Andrej Karpathy]]; updates to [[Obsidian]] and [[Claude Code]] noting their role in the pattern; a link from the existing [[Personal knowledge management]] concept to the new one; index and log updated; report showing 3 new, 3 updated, 11 links.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.