| name | reference |
| description | Add, search, or enrich entries in the personal reference library |
| argument-hint | [add <title> | search <term> | enrich <entry> | list] |
| allowed-tools | Read Write StrReplace Shell Glob Grep WebSearch WebFetch |
| metadata | {"claude-tools":["Read","Write","Write","Bash","Glob","Grep","WebSearch","WebFetch"]} |
Reference — Personal Library Management
Manage the personal reference library in `library/`. This persistent collection stores books, talks, articles, videos, and other sources with AI-enriched context, so any future session or project can draw from them.
- Library directory: `library/`
- Library index: `library/README.md`
- Catalog (all references): `library/catalog.md`
- Current date: `date "+%Y-%m-%d"`
Parse `$ARGUMENTS` to determine the subcommand. If empty or unrecognized, default to **list**.
Subcommand: list (default)
- Read
library/README.md for enriched entries
- Read
library/catalog.md for the full reference count
- Display:
- Enriched entries (with links)
- Catalog summary: N books, M courses, P training entries
- Suggest candidates for enrichment based on active projects
Subcommand: add <title and details>
-
From the description and conversation context, extract:
- Title
- Author (if provided)
- Type: Book / Talk / Article / Video / Course / Website
- URL (if provided)
- Tags: relevant keywords
- Why it matters: user's stated reason or infer from context
-
Generate a filename: lowercase, hyphenated version of the title (e.g., zen-way-martial-arts.md)
-
Enrich the entry (this is the key step):
- Search the web for summaries, reviews, chapter outlines, and key themes
- For books: find book reviews, practitioner analyses, publisher descriptions
- For talks/videos: fetch transcripts using
python3 .cursor/skills/research-and-analyze/scripts/fetch-transcript.py <url> <output-dir>, then find additional summaries
- For articles: fetch the article content if possible
- Fetch the best 2-3 sources and synthesize into the "Key Themes" and "Notable Ideas" sections
- Cache the source URLs in the "Sources" section
-
Create the entry file from the template in library/README.md, filling in:
- All metadata fields
- "Why This Matters" section with user's notes (or a placeholder prompting them to add)
- "Key Themes" section from AI enrichment
- "Notable Ideas" section highlighting concepts most likely to be referenced
- "Sources" section with the URLs used for enrichment
-
Add the entry to library/catalog.md (if not already there) and update the enriched entries table in library/README.md
-
Check project relevance: Read BACKLOG.md and scan .planning/ for active projects. If the new reference is relevant to any project, suggest adding it to that project's curated reading list.
-
Confirm:
Added to library: <title>
Type: <type> | Tags: <tags>
Enriched from: <N sources>
Relevant to: <project suggestions or "no active project matches">
Subcommand: search <term>
- Search
library/catalog.md tables for the term (title, author, tags)
- Search enriched entry files (
library/*.md) for deeper matches (themes, notable ideas)
- Display matching entries with the relevant context snippet, noting which have enriched entries
- If no matches, suggest broadening the search
Subcommand: catalog
Quick view of the full catalog:
- Read
library/catalog.md
- Present summary by tag or category
- Highlight entries relevant to active projects that could benefit from enrichment
Subcommand: enrich <entry>
Re-run enrichment on an existing entry:
- Read the specified entry file
- Search for additional or updated sources
- Expand the "Key Themes" and "Notable Ideas" sections
- Add any new sources to the "Sources" section
- Report what was added
This is useful when:
- The original enrichment was thin
- You want to go deeper on a specific reference
- New online sources have become available
Subcommand: link <entry> <project>
Connect a library entry to a project's curated reading list:
- Read the library entry
- Find the project's curated reading list (e.g.,
research/{project}/curated-reading.md)
- Add the reference with a link back to the library entry
- Update the library entry's "Projects" metadata field
<success_criteria>
- Every new entry has metadata, AI-enriched themes, and source attribution
- Library README index stays current
- Relevant project connections suggested on add
- Enrichment draws from reliable sources (practitioner analyses, publisher pages, reputable review sites)
- User's personal notes preserved and clearly separated from AI-enriched content
</success_criteria>