tristanh/wikiwise/fetch-readwise-highlights
Claude Code and agent skill by tristanh/wikiwise
- community
Checking that the SKILL.md file is still in the repository.
Mine Readwise highlights via vector search, group by parent document, and write highlight collections into raw/. Streams results to disk without loading into context, then chains into ingest.
Install
npx vskill@latest install tristanh/wikiwise/fetch-readwise-highlightsSKILL.md
Fetch Readwise Highlights
Goal: pull relevance-filtered highlights from the user's Readwise library (books, articles, tweets, podcasts) into raw/ as per-parent-document markdown files, then hand them to ingest. The unit is a parent doc; the content is only the highlights that matched one or more search queries.
Highlights are valuable because they're already user-curated and compact — a book with 80 highlights is ~3-6k tokens vs. the full book being unusable.
Preconditions
readwiseCLI installed and authenticated.jqinstalled.raw/directory exists.- The wiki has a
wiki/home.mdwith a clear through-line, or the user has told you the research frame.
Core pattern
Step 1 — Formulate vector search queries
Read wiki/home.md and scan wiki/index.md for open questions. Formulate 5-10 candidate queries covering:
- Core topic terms
- Adjacent debate vocabulary
- Named entities that matter
- Phenomena and mechanisms
- Contrarian framings
Show the query list to the user before searching. Let them add, remove, or adjust. Don't silently batch queries.
Step 2 — Run vector searches
For each query, redirect output to a temp file — do not pipe to stdout:
Batch all queries in one bash call.
Step 3 — Merge, dedupe, group by parent document
Report to the user: number of unique parent docs, top 10 by match count. Ask them to confirm the inclusion threshold (default: match_count >= 2, or match_count == 1 && top_score > 0.5). Let them prune off-topic results before writing files.
Step 4 — Write per-doc raw files
For each parent doc passing the threshold, write raw/<slug>_highlights.md. The _highlights suffix distinguishes these from full-document raws.
Step 5 — Verify without reading the bodies
Do not cat or Read a highlights file unless the user asks.
Step 6 — Report, then chain into ingest
Report: number of parent docs landed, filenames, match counts, and any docs you dropped. Then invoke the ingest skill on all new *_highlights.md raws. Tell the ingest step these are highlight collections — cite individual highlights rather than re-paraphrasing.
JSON shapes (don't re-probe these)
readwise-search-highlights --json→ top-level array. Each item:id,score,attributes.{document_title, document_author, document_category, highlight_plaintext, highlight_note, highlight_tags}.
Rules
- Never run
readwise-search-highlightswith stdout going to tool output — always redirect to/tmp/. - Never write JSON files to
raw/— all raw files must be markdown (.md). Temp JSON goes in/tmp/. - Never
Readorcataraw/file you just wrote unless the user explicitly asks. - Always confirm the query set with the user before searching.
- Always chain into `ingest` unless the user said "just fetch."
- A 30-doc haul is probably too many; 5-15 is a normal batch.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSources/Wikiwise/Resources/scaffold/skills/fetch-readwise-highlights/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tristanh/wikiwise/fetch-readwise-highlights)