skills/readwise/SKILL.md
This skill should be used when the user asks to "search Readwise", "find highlights", "get quotes from my reading", "add highlights to notebook", "search my annotations", "get full document text", "fetch article content", "add tagged documents to notebook", or needs to query their Readwise library.
npx skillsauth add edwinhu/workflows readwiseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
EVERY READWISE OPERATION MUST GO THROUGH LIBRARIAN. This is not negotiable.
Main chat MUST NOT:
readwise CLI commands directlyreadwise-custom CLI commands directlyIf you're about to do anything Readwise in main chat, STOP. Spawn a librarian sub-agent instead. </EXTREMELY-IMPORTANT>
| Context | Readwise CLI | readwise-custom CLI | |---------|-------------|-------------------| | Main chat | FORBIDDEN | FORBIDDEN | | Librarian sub-agent | ALLOWED | ALLOWED |
STOP if you catch yourself thinking:
- "Let me quickly search Readwise..."
- "I'll just run readwise reader-search-documents..."
- "I'll just run readwise-custom search..."
These thoughts in MAIN CHAT = VIOLATION. Delegate instead.
User: "Search my Readwise for proxy advisor articles"
MAIN CHAT RESPONSE:
Task(subagent_type="workflows:librarian", prompt="Search Readwise for proxy advisor articles and summarize findings")
NEVER IN MAIN CHAT:
readwise readwise-search-highlights --vector-search-term "proxy advisors"
readwise-custom search "proxy advisors"
| CLI | Binary | Use for |
|-----|--------|---------|
| Official (@readwise/cli) | readwise | Search, list, get, save, move, tags, highlights CRUD, export, daily review |
| Custom (~/projects/readwise-cli/) | readwise-custom | Chat/RAG, ghostreader, file upload (PDF/EPUB), prune, keyword highlight search |
User mentions tagged items or NLM content
│
▼
┌──────────────────────────────────┐
│ 1. CHECK NLM FIRST │ ← MANDATORY
│ nlm list │
│ nlm chat <id> │
└──────────────────────────────────┘
│
Not in NLM?
▼
┌──────────────────────────────────┐
│ 2. USE readwise for tagged items │
│ readwise reader-list-documents│
│ --tag "X" │
│ NOT search! │
└──────────────────────────────────┘
</EXTREMELY-IMPORTANT>
readwise)| Need | Command |
|------|---------|
| Semantic search highlights | readwise readwise-search-highlights --vector-search-term "query" |
| Search documents (hybrid) | readwise reader-search-documents --query "query" |
| Documents by tag | readwise reader-list-documents --tag "X" |
| Full document (markdown) | readwise reader-get-document-details --document-id <id> |
| List all tags | readwise reader-list-tags |
| Save URL | readwise reader-create-document --url <url> |
| Move documents | readwise reader-move-documents --document-ids <id> --location archive |
| Bulk edit metadata | readwise reader-bulk-edit-document-metadata --documents '[...]' |
| Export library | readwise reader-export-documents |
| Daily review | readwise readwise-get-daily-review |
Add --json to any command for machine-readable output.
readwise-custom)| Need | Command |
|------|---------|
| RAG chat over highlights | readwise-custom chat "question" |
| Keyword search highlights | readwise-custom highlights --search "term" |
| Prune stale docs | readwise-custom prune |
| Upload PDF/EPUB | readwise-custom upload <file> |
| Ghostreader | readwise-custom ghostread summarize <id> |
| Full document (HTML) | readwise-custom get <id> --html |
Sub-skills with detailed reference:
| Skill | Purpose |
|-------|---------|
| readwise-search | Vector + fulltext highlight search |
| readwise-docs | Document CRUD (list, get, save, move, bulk edit, export) |
| readwise-chat | GPT-5.1 RAG chat over highlights (fallback — prefer search + Claude synthesis) |
| readwise-prune | Two-pass stale document cleanup |
uv run python3 /Users/vwh7mb/projects/workflows/skills/readwise/scripts/readwise_to_nlm.py \
--tag "proxy advisors" --tag "disclosure" \
--notebook <notebook-id>
Add --dry-run to preview. Add --verbose for detailed output.
WRONG: Search Readwise, find document, fetch from original URL (fails for paywalled content).
RIGHT: Search Readwise, get full text FROM READWISE using readwise reader-get-document-details --document-id <id>.
If a document is in Readwise, the full text is already there. Never go back to the source URL.
references/reader-api.md - Reader API reference (endpoints, pagination, updatedAfter semantics, document fields) for cases the CLI doesn't coverscripts/readwise_to_nlm.py - Export Readwise documents into a NotebookLM notebookscripts/readwise_prune.py - Direct-API pruning implementation. The sanctioned path is readwise-custom prune (see /readwise-prune), which exposes the same flags; keep this only for API-level work the CLI doesn't expose.development
Build the meeting-level proxy-voting × ownership panel on the WRDS SGE grid — ISS N-PX fund votes reduced to (item × block) direction cells, joined to institutional and mutual-fund ownership. Use when working with risk.voteanalysis_npx, N-PX fund-level votes, ISS→CRSP fund linking, index/passive/active voting blocks, or a proxy-voting panel that needs ownership attached.
development
Use when "CRSP CIZ", "CRSP v2", "CRSP flat file format 2.0", "crsp.dsf_v2 / msf_v2", "StkDlySecurityData", "StkMthSecurityData", "StkSecurityInfoHist", "stocknames_v2", "DlyRet / MthRet / DlyPrc / MthPrc", "SHRCD or EXCHCD equivalent in new CRSP", "SIZ to CIZ migration", "CRSP data after 2024", "CRSP delisting returns", "CRSP cumulative adjustment factors", "CRSP index INDNO / INDFAM", or any CRSP stock/index query where the legacy SIZ column names no longer exist.
development
Use when linking or deduping datasets by entity name rather than a shared key — 'fuzzy match', 'fuzzy name matching', 'entity resolution', 'record linkage', 'match company/person names', 'dedupe entity names', 'name-based join', 'bridge identifiers' (CIK ↔ permno ↔ gvkey ↔ wficn ↔ EIN ↔ personid), or any use of char n-gram TF-IDF, cosine similarity on names, `sparse_dot_topn`, or RapidFuzz at scale.
development
Use when building a publication-quality table in Python — 'regression table', 'results table', 'summary statistics table', 'etable', 'coefplot', 'great_tables', 'GT', 'gt table', 'format a table for the paper', 'export table to LaTeX/HTML', significance stars, spanners, or column formatting for a table headed into a paper, slide deck, or notebook.