Query

From boykush/scraps · View interactive version

Query is an AI agent skill from the GitHub repository boykush/scraps. Answer questions about the wiki by searching, reading, and synthesizing relevant scraps with `[[Title]]` citations. Use this when the user wants to query the wiki, ask what they have written about a topic, compare scraps, find related notes, or pull a synthesized overview from existing scraps.

How to use this skill

Skill file

Query

Answer a question against the wiki and return a citation-rich synthesis.

Implements Karpathy's Query primitive for Scraps: search the wiki, read relevant scraps, and synthesize an answer that references its sources by [[Title]]. Citations make the answer auditable and ready to be filed back as a new scrap if the user chooses.

When to use

Workflow

  1. Understand the question
  1. Search (broad → narrow)
  1. Select candidates
  1. Read selected scraps
  1. Synthesize with citations
  1. Stop

Citation rules

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.