Digest

From boykush/scraps · View interactive version

Digest is an AI agent skill from the GitHub repository boykush/scraps. Write one page about an article, blog post, news item, release note, or talk (slides) from its URL into this Scraps wiki, without dialogue - a short summary of what the source says, linked to the pages the wiki already has. Use this when the user hands over the URL of something they read or want to

How to use this skill

Skill file

Digest

Take the URL of an article or talk and write one page about that source, start to finish, without dialogue.

Digest is for keeping up with incoming material. The page records what the source says and which of the wiki's pages the source itself refers to, so the user can take it in quickly. It does not claim the user understood it; that is learn's job. The subject is therefore always the source itself (who said what, and where), never a term or a tool. A page named after a concept stands for something the user understood, and only learn writes those.

Do not ask questions along the way. Where judgment could go either way, decide by the rules here and record the decision in the report. If the rules do not decide it, leave that part unwritten and report it. The user can read a diff and fix it, but an understanding that was silently added goes unnoticed.

Scope

Digest handles URLs where the page's subject is the source itself: technical blog posts, news articles, talks, release notes, and explanatory pages of official documentation.

When the URL points at the official site of a tool or product, the subject is the thing rather than the source (the Scalafix site becomes a page named Scalafix). Hand those to learn, along with any URL you cannot classify.

Boundaries

1. Read the source and the ground

  1. Fetch the source.
  2. Check how much you got. Slide hosts such as Speaker Deck often yield only the title and abstract. Write from what you could read, note in the report what you could not, and do not fill the gap by guessing.
  3. Identify the central terms and claims. Only what the source names can become a link.
  4. Search for related pages with varied wording using scraps search "<query>" --json.
  5. Check the existing tags with scraps tag list --json.
  6. Read the 3–8 most related pages by passing each hit's key back: scraps get "<key>" --json.
  7. Split the central terms into those that have a page and those that do not. A term has a page only when that thing is the page's subject. A page about a source (an article, a talk, one entry of a report or catalog) is not the page for the term in its title, even when the title is exactly the term; read the body to tell, and link such a page only when you mean that source. Link the former and leave the latter out of this page.
  8. Look up the source's title with scraps get "<source title>" --json to see whether a page of that name exists.

2. Write the page

Follow the writing rules in learn's "5. Write the page" (../learn/SKILL.md), read as follows.

The page has this form:

---
resource: <URL>
verified:
  - by: <you, as an agent>
    at: <now>
---

#[[Tag]] #[[Tag]]

<Gist: who says what, and where. One or two sentences.>

- <A bullet that links an existing page the source mentions. Zero to three.>

The verified entry says you checked the summary against the source, and nothing about the user: by is you as an agent, written <producer>/<version> (for example claude-code/<model id>), never a human: actor, and at is the current time (date -u +%Y-%m-%dT%H:%M:%SZ). It leaves the page machine-confirmed, which is what tells a digested page from one the user understood, and it is the date verify counts from when the source is revised later.

The page is a summary of the source and stands for it, so the source's URL goes in the frontmatter resource, not in the body. Other pages that cite the source point at this page by path in their sources.

Place the page without a context folder by default, and add one only when step 1 found a page with the same title. Project instructions may add local conventions for source pages, such as a category link or the context folder to use; follow them.

3. Verify and report

  1. Reread the page and confirm no explanation without a link remains, and that the source mentions everything each link points at.
  2. Confirm every tag is an existing tag.
  3. Run scraps get "<key>" --json verified and confirm the tier is machine-confirmed. An entry of the wrong shape is dropped without a warning, so only this shows it was read.
  4. Run scraps lint --rule broken-link.
  5. Read the diff and confirm nothing changed except the one new file.
  6. Report separately: the page created with its tags and links, the decisions you made by rule, what could not be fetched from the source, the reason for a context folder if one was used, and warnings unrelated to this change.
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.