Research topics in the personal indexed book library via the bookstore MCP tools (bookstore_*) or the bookstore CLI. Use when the user asks what a book says about a topic, which book covers a topic, or wants cited passages from their library.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Bookstore?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/phenobarbital-bookstore)
---
name: bookstore
description: Research topics in the personal indexed book library via the bookstore MCP tools (bookstore_*) or the bookstore CLI. Use when the user asks what a book says about a topic, which book covers a topic, or wants cited passages from their library.
triggers:
- "which book covers"
- "what does the book say about"
- "search my library"
- "biblioteca"
- "bookstore"
allowed-tools: Bash(bookstore:*)
---
# Bookstore — researching the indexed library
The bookstore is a personal library of books indexed as PageIndex
chapter trees, each with a catalog card ("ficha"): title, authors,
topics, a librarian summary, and a table of contents with page ranges.
Ten read-only MCP tools expose it. **Never** read a book wholesale —
follow the funnel below; it is cheap-to-expensive by design.
## The research funnel (mandatory order)
1. **`bookstore_find_books(query)`** — ALWAYS start here. It answers "which books
treat X, and where" from the librarian's sectors, with direct table-of-contents
pointers; it falls back to `bookstore_catalog_search`.
Pick 1–3 candidate books from the sectors' books. When it returns
`source: "catalog_fts"` (no sector matched), or to search the fichas
directly, use `bookstore_catalog_search(query)` — lexical, zero LLM
cost. Use `bookstore_list_books()` only when you need the full inventory.
1b. **Expand by relations** — before opening any book, call
`bookstore_related_books(book_id)` on the best `bookstore_catalog_search`
hit to find the author's other works, sibling works of the same
tradition/era, or conceptually adjacent works. For thematic or
comparative questions ("what schools of thought does this library
cover?"), call `bookstore_communities()` instead.
2. **`bookstore_get_toc(book_id)`** — orient inside a chosen book: the
chapter tree with `node_id`s and page ranges. `bookstore_get_card`
adds the summary/topics when you need to compare candidates.
3. **`bookstore_search_book(book_id, query)`** — targeted search inside
one book. Returns ranked sections with `node_id`s.
4. **`bookstore_read_section(book_id, node_id)`** — read ONLY the
sections that matter. Do not call this before searching.
Cross-book questions ("what do my books say about X?"): one call to
**`bookstore_search(query)`** — it shortlists via the catalog and
searches up to 3 books' trees (`max_books` caps LLM cost; keep it ≤3
unless the user insists).
## Citation format
Cite findings as: *Book Title*, "Section Title", pp. start–end. The
page data comes from `bookstore_get_toc` / `bookstore_read_section`
(`start_page` / `end_page`). Markdown-only books have no page numbers —
cite book + section instead.
When a relation drives a claim, cite its origin: "the library links
these as parallels (LLM-inferred, 0.7)" vs "same author
(deterministic)".
Annotations returned next to a section are the reader's notes — cite them as *Notebook: <title>*, never as book pages.
## Degraded modes
- **No LLM configured** (server description says "lexical search
only"): `search_book`/`search` are BM25-only — still useful, but rely
more on the ToC to navigate. `catalog_search`, `get_toc`,
`read_section` are always fully functional.
- **MCP server not connected**: the same operations exist as CLI
commands via Bash — `bookstore search "<query>" --catalog-only`,
`bookstore toc <book_id>`, `bookstore search "<query>" --book <id>`,
`bookstore show <book_id>`, `bookstore related <book_id>`,
`bookstore communities`.
## Managing the library (CLI only — not exposed over MCP)
Indexing is a minutes-long LLM batch job, so it lives in the CLI:
```bash
bookstore add path/to/book.pdf # index into .parrot/library
bookstore add book.epub --global # index into ~/.parrot/library
bookstore add notes.md --no-llm # deterministic carding
bookstore add-folder ./libros --recursive # bulk: every pdf/md/txt/epub/docx
bookstore add-folder ./libros --dry-run # preview what would be indexed
bookstore card <book_id> --refresh # re-card after enabling an LLM
bookstore relate --all # compute relations + communities
bookstore remove <book_id>
bookstore locations # show resolved library dirs
```
`add-folder` processes files sequentially, continues past failures, and
skips files already indexed (sha256 dedupe) — safe to re-run on the
same folder after dropping new books into it.
The LLM is configured with `PARROT_BOOKSTORE_LLM="provider:model"`
(optional `PARROT_BOOKSTORE_LLM_LIGHT` for cheap helper calls, same
provider). Project scope (`.parrot/library`) wins id collisions over
the global scope (`~/.parrot/library`); `PARROT_LIBRARY_DIR` overrides
the project location.