lumi-reading-chapter-ingest
Ingest one book chapter into the wiki and extract character mentions, theme tags, and plot beats into the graph. Use whenever the user wants to ingest, file…
от tronghieu★ 40 звёзд на GitHub
Установить lumi-reading-chapter-ingest в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/lumi-reading-chapter-ingest
TL;DR
Turns one chapter (raw text or PDF page range) into a wiki/chapters/<book-slug>/ page,
seeds character stubs, records theme tags, writes plot beats, and registers bidirectional
edges — all idempotently. Re-running against the same slug is always safe.
All graph and frontmatter mutations go through _lumina/scripts/wiki.mjs. Never edit
wiki/graph/edges.jsonl directly. add-edge is idempotent and writes reverse edges
automatically except terminal/symmetric cases.
Context
Read README.md at the project root before this SKILL.md.
When to use
Invoke when the user hands you a book chapter — either as raw text pasted inline, a
file path under raw/, or a PDF with a page range (e.g. raw/sources/gatsby.pdf 12-34).
This skill follows the reader chapter by chapter, so the wiki never knows more of the
book than the user does — that is what keeps /lumi-reading-plot-recap spoiler-safe.
If the user instead wants a finished book absorbed whole ("ingest this book",
"add the whole book to the wiki"), route to /lumi-ingest — its long-source pipeline
reads the entire document and writes page-anchored reading notes. Do not run this
skill dozens of times as a substitute, and do not let /lumi-ingest deep-read a novel
the user is still reading.
This skill writes the chapter page, seeds character stubs, records theme tags, and
registers plot beats. It is designed to be run once per chapter and is fully idempotent:
re-running against the same chapter slug produces byte-identical output.
Inputs
<book-slug>— kebab-case identifier for the book. All reading-pack pages for this book live under<book-slug>/subdirectories. Namespacing is mandatory: a workspace may hold multiple books and the same character name must not collide across books.<chapter-reference>— one of:- Raw text (pasted or piped)
- A file path:
raw/sources/<book-slug>/<filename> - A PDF page range:
raw/sources/<book-slug>.pdf <start>-<end>
<chapter-number>— integer (1-based). Stored asnumber:in frontmatter; used by plot-recap for spoiler-boundary ordering.<chapter-title>— human-readable title (converted to slug automatically).
Workflow
Playbook A: Raw text input
- Receive text. Run
node _lumina/scripts/wiki.mjs slug "<chapter-title>" --jsonto get the canonical slug. Chapter page path:wiki/chapters/<book-slug>/<chapter-slug>.md. - Check idempotency: if the page already exists, read its frontmatter with
node _lumina/scripts/wiki.mjs read-meta chapters/<book-slug>/<chapter-slug> --json. Ifnumber,book, andtitlematch the current inputs, skip page creation and proceed directly to the edge-sync step (step 5). This ensures re-runs are no-ops. - If the chapter page is new, write the full markdown file with valid frontmatter
and body via
Write. For an existing page, update frontmatter withset-meta. Required fields:id,title,type: chapter,created,updated,book,number. - Extract from the chapter text:
- Character mentions: proper nouns that appear as actors in the narrative. Create a stub entry for each new character (see character-track skill for full character pages).
- Theme tags: 2-5 thematic labels (e.g.
isolation,class-conflict,memory). - Plot beats: 3-7 one-sentence event summaries in narrative order.
- Register edges using
node _lumina/scripts/wiki.mjs add-edge:- For each character mentioned:
add-edge chapters/<book-slug>/<chapter-slug> features characters/<book-slug>/<character-slug> - The engine writes the
appears_inreverse edge automatically. - For each theme:
add-edge chapters/<book-slug>/<chapter-slug> tagged_with themes/<book-slug>/<theme-slug> - The engine writes the
appears_inreverse edge automatically.
- For each character mentioned:
- Write plot beats into
wiki/plot/<book-slug>/ch<N>-beats.mdwith valid plot frontmatter (book,up_to_chapter: <N>, etc.) and body. - Update
wiki/index.mdso the new chapter, character/theme stubs, and plot page are cataloged. Prefer the workspace linter/index workflow when available; do not edit graph files by hand. - Append one line through the wiki engine:
Log entry text:node _lumina/scripts/wiki.mjs log reading-chapter-ingest "<book-slug> ch<N> \"<chapter-title>\" -> <K> characters, <M> themes"## [YYYY-MM-DD] reading-chapter-ingest | <book-slug> ch<N> "<chapter-title>" → <K> characters, <M> themes - Self-verification: run
node _lumina/scripts/wiki.mjs read-edges chapters/<book-slug>/<chapter-slug> --jsonand confirm that at least onefeaturesedge and onetagged_withedge are present. If either is missing, add the missing edges before finishing. - Run
node _lumina/scripts/lint.mjs --jsonwhen the workspace has the linter. Use--fixonly for index/frontmatter fixes that match the user's requested scope.
Playbook B: PDF page range
F
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Write - 04
Edit
FAQ
Что делает скилл lumi-reading-chapter-ingest?
Ingest one book chapter into the wiki and extract character mentions, theme tags, and plot beats into the graph. Use whenever the user wants to ingest, file, or process a chapter — including phrasings like "I just finished chapter 3", "add this chapter to the wiki", "file chapter 2 of [book]", or "track what happened in chapter 5".
Как установить скилл lumi-reading-chapter-ingest?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lumi-reading-chapter-ingest запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…