Ingest

From boykush/scraps · View interactive version

Ingest is an AI agent skill from the GitHub repository boykush/scraps. Create a new scrap from a source (prompt, URL, or arbitrary markdown), update cross-links in related scraps, and run a sanity check. Use this when the user wants to add a scrap, summarize an article, save synthesized content to the wiki, or file back a Q&A result.

How to use this skill

Skill file

Ingest

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.

When to use

Source types

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

Workflow

  1. Identify source and topic
  1. Research existing wiki state
  1. Decide title and ctx
  1. Decide max-lines (familiarity heuristic)
  1. Draft the scrap
  1. Cross-link inbound mentions (Karpathy's "update related entity and concept pages")
  1. Post-write sanity check

Wiki-link syntax

| Syntax | Meaning |

| --- | --- |

| [[Title]] | normal link |

| [[Title|Display]] | alias |

| [[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.

CLI used

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).

Further reading

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.