/llm-wiki:ingestfrom llm-wiki
Creates a new wiki scrap from a prompt, URL, or markdown, then cross-links related scraps and runs a sanity check. Use to add notes, summarize articles, or save Q&A results.
Ships in llm-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add a new scrap to the wiki and integrate it into the existing graph.
Implements Karpathy's Ingest primitive for Scraps: read a source, draft a new scrap, update related scraps with cross-links, and sanity-check the result. A single ingest typically touches the new scrap plus 1–5 existing scraps.
| Source | Provided as | First step |
|---|---|---|
| prompt | user's topic, instruction, or ready-to-use content (e.g., a /query synthesis) | if the input is complete content, use as-is; otherwise gather context (search related scraps) and ask one clarifying question only when scope is unclear |
| URL | pasted link | WebFetch <url>, extract title and key content |
| term | an atomic term surfaced in discussion (often unknown until just now) | treat the term itself as the title; skip clarifying questions |
Identify source and topic
WebFetch → use OGP / heading title as initial title/query synthesis), use as-is; if it's a topic, ask one clarifying question only when scope is unclearResearch existing wiki state
scraps search "<keyword>" --json to find related scrapsscraps tag list --json to find relevant tagskey back: scraps get "<key>" --jsonscraps get "<key>" --json headings first when only the outline is neededDecide title and ctx
scraps/<ctx>/<title>.mdDecide max-lines (familiarity heuristic)
--max-lines explicitly (CLI flag is authoritative)--max-lines flag.Draft the scrap
[[link]] for references and #[[tag]] for tags[[Title]], never #[[Tag]] (tags are only existing categories from step 2). A [[Title]] must resolve to a real scrap — a concept that should exist but doesn't yet stays plain text, since an unresolved [[Title]] is a broken link (step 7), not a forward reference.sources (- resource: <URL>), not as a body autolink; step 7 asks for the path instead when the wiki already has a page for that sourceCross-link inbound mentions (Karpathy's "update related entity and concept pages")
Grep the wiki for the literal title across *.md, with surrounding context. scraps search matches key, title, description and tags but never the body, so it cannot find mentions — do not use it for discovery.GitHub inside GitHub App / GitHub Actions, or title 状態 inside 状態管理 (Japanese has no word boundaries, so context judgement is mandatory, not a regex \b). If that longer term is itself a scrap or should be one, leave it intact rather than splitting it.[[new title]] (use [[new title|surface form]] for an inflected or aliased form). Skip occurrences already inside [[...]]/#[[...]] and skip the new scrap's own file. Do not invent mentions Grep did not find.Post-write sanity check
#[[tag]] you wrote and confirm each already appeared in the scraps tag list --json from step 2. A tag that was not in that list was almost certainly meant to be a [[link]] — convert it. Add a genuinely new tag only when you deliberately intend a new cross-cutting category. (Broken-link lint cannot catch this: a stray tag is valid syntax, it just creates a single-use tag.)scraps lint --rule broken-link --rule source-has-page (purpose: confirm the new scrap introduced no broken references, and that a source with its own page is named by that page's /<key>.md path)lint-rule-handler agent| Syntax | Meaning |
|---|---|
[[Title]] | normal link |
| `[[Title | Display]]` |
[[Ctx/Title]] | context-disambiguated link |
[[Title#Heading]] | heading reference |
#[[Tag]] | tag |
<https://...> | autolink (renders as OGP card) |
[[ ]] and #[[ ]] are disjoint namespaces: [[Title]] references a scrap; #[[Tag]] declares or joins a tag. Using #[[ ]] to point at a scrap does not link — it silently creates a stray single-use tag.
scraps search <query> --jsonscraps get <key> [--heading <heading>] --json [fields] (<key> is the scrap's path without .md, as results return it; <name> --ctx <ctx> is still accepted)scraps tag list --jsonscraps tag backlinks <tag> --jsonscraps lint --rule <rule>These commands are shown with --json because this skill consumes structured output — without it Scraps prints human-formatted text that is unstable to parse, so --json is part of the command, not an option. Use scraps <cmd> --help only as a fallback for a rare flag not listed here, not as a routine discovery step; for deeper syntax or spec questions, consult the scraps-llm-wiki-schema agent (it reads the official docs).
scraps-llm-wiki-schema agent.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub boykush/scraps --plugin llm-wikiOther plugins' skills for the same job