agentleFS
justvinhherejustvinhhere/llm-wiki-plugin/skills/wiki-ingest/SKILL.md

wiki-ingest

Skill1 starsChanged 8 months agoMITView on GitHub

Use when the user runs /ingest <path-or-url>, says "add this source", "ingest this article", "read and file this", or drops a URL/PDF/markdown file for incorporation into the wiki. Reads a source in full, executes all page edits, and commits with an ingest(<source-slug>) subject — fully automatic. Conventions, frontmatter schema, slug rule, and link resolution live in reference.md.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wiki-capture, cross-linker and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jehrhardtSkill

    wiki-capture

    Quickly capture raw thoughts, links, images, or notes to today's Obsidian daily note from anywhere in Pi. Use when the user wants to jot something down for later wiki processing.

    Also in 4 projects that use this

  • thoreinsteinSkill

    cross-linker

    Use when the user wants to find and insert missing wikilinks across vault notes. Triggers on "cross-link", "find missing links", "weave links", "unlinked mentions", "add wikilinks", or "link notes together".

    Also in 3 projects that use this

  • Ivy-Chen1999Skill

    wiki-setup

    Initialize a new Obsidian wiki vault with the correct structure, special files, and configuration. Use this skill when the user wants to set up a new wiki from scratch, initialize the vault structure, create the .env file, or says things like "set up my wiki", "initialize obsidian", "create a new vault", "get started with the wiki". Also use when the user needs to reconfigure their existing vault or fix a broken setup.

    Also in 3 projects that use this

  • javatarzSkill

    wiki

    Access and manage the local GitHub Wiki clone. Use this skill when you need to read wiki content (architecture, design docs, guides), update wiki documentation, check wiki status, or push wiki changes. The wiki contains high-level system design and architectural documentation.

    Also in 4 projects that use this

  • joeseesunSkill

    defuddle

    Extract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.

    Also in 4 projects that use this

  • KKodiacSkill

    obsidian-bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the source contradicts an existing claim, appends {source: <slug>, note: "<one-sentence tension>"} to contradictions: instead of …

    line 48
  2. Very specific:

    Commit body (optional): up to ingest.tldr_bullets TL;DR bullets from the source.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “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

wiki-ingest

Writes a new source into the wiki and every page it substantiates. One invocation produces exactly one commit.

Refuse conditions

  1. No .llm-wiki.yaml in CWD or ancestors.
  2. .llm-wiki.yaml:schema_version != 1.
  3. git status --porcelain -- wiki/ index.md non-empty — working tree dirty on wiki paths. The caller must commit or stash before ingesting.
  4. Source unreachable (URL returns non-2xx; path does not exist).
  5. Source slug collides with an existing wiki/sources/<slug>.md whose url: or raw_path: matches — the source is already ingested. To re-ingest a revised version, the caller picks a versioned slug explicitly.

Workflow

1. Park the source in raw/ (immutable)

Derive <slug> per the rule in reference.md. Route by kind using .llm-wiki.yaml:ingest.raw_layout:

KindWrites
.md / .txt local<raw_layout.article>/<slug>.<ext>
URL (HTML)<raw_layout.article>/<slug>.html and <raw_layout.article>/<slug>.md (markdown extraction)
.pdf<raw_layout.paper>/<slug>.pdf and <raw_layout.paper>/<slug>.md (best-effort transcript)
transcript (.vtt, .srt, video URL)<raw_layout.video>/<slug>.md
other<raw_layout.note>/<slug>.<ext> + markdown alongside

The chosen path is raw_path in sources/<slug>.md frontmatter. raw/ is immutable after this step.

2. Read the source in full

Complete read. Partial reads are forbidden — they produce partial claims that bake into commit history.

3. Compute the edit set

Build, internally, the list of file mutations:

  • New wiki/sources/<slug>.md from templates/source.md, frontmatter filled.
  • New entity / concept / topic pages from the matching template, where the source introduces a subject the wiki does not yet cover. Cap ingest.tldr_bullets does not apply to this list — ingest creates as many pages as the source substantively introduces.
  • Updates to existing entity / concept / topic pages the source substantiates. Each update:
    • Bumps updated: to today.
    • Appends <slug> to sources: (append-only; never replace).
    • Adds prose under the appropriate section with [[…]] cross-references resolved per reference.md.
    • If the source contradicts an existing claim, appends {source: <slug>, note: "<one-sentence tension>"} to contradictions: instead of modifying the claim body. Resolution is left to /lint.
  • Update index.md: new entries under their category, alphabetical within category.

4. Execute the edit set

Single batch. Any write failure (permission, disk, invalid frontmatter) aborts the entire ingest and rolls back partially-written raw/ artifacts.

5. Commit

git add <explicit-paths-from-edit-set>
git commit -m "ingest(<slug>): add source, update N page(s)"

N from git diff --cached --numstat | wc -l minus the source page itself. Singular page when N=1.

Commit body (optional): up to ingest.tldr_bullets TL;DR bullets from the source. Useful for git log --grep; not required.

No Co-Authored-By trailer.

6. Output

Single line: Ingested <slug>: N page(s) updated. Commit <short-sha>.

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.