Command Palette

Search for a command to run...

Назад к скиллам
скилл № 93732

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от 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 as number: 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

  1. Receive text. Run node _lumina/scripts/wiki.mjs slug "<chapter-title>" --json to get the canonical slug. Chapter page path: wiki/chapters/<book-slug>/<chapter-slug>.md.
  2. Check idempotency: if the page already exists, read its frontmatter with node _lumina/scripts/wiki.mjs read-meta chapters/<book-slug>/<chapter-slug> --json. If number, book, and title match the current inputs, skip page creation and proceed directly to the edge-sync step (step 5). This ensures re-runs are no-ops.
  3. If the chapter page is new, write the full markdown file with valid frontmatter and body via Write. For an existing page, update frontmatter with set-meta. Required fields: id, title, type: chapter, created, updated, book, number.
  4. 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.
  5. 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_in reverse edge automatically.
    • For each theme: add-edge chapters/<book-slug>/<chapter-slug> tagged_with themes/<book-slug>/<theme-slug>
    • The engine writes the appears_in reverse edge automatically.
  6. Write plot beats into wiki/plot/<book-slug>/ch<N>-beats.md with valid plot frontmatter (book, up_to_chapter: <N>, etc.) and body.
  7. Update wiki/index.md so 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.
  8. Append one line through the wiki engine:
    node _lumina/scripts/wiki.mjs log reading-chapter-ingest "<book-slug> ch<N> \"<chapter-title>\" -> <K> characters, <M> themes"
    
    Log entry text: ## [YYYY-MM-DD] reading-chapter-ingest | <book-slug> ch<N> "<chapter-title>" → <K> characters, <M> themes
  9. Self-verification: run node _lumina/scripts/wiki.mjs read-edges chapters/<book-slug>/<chapter-slug> --json and confirm that at least one features edge and one tagged_with edge are present. If either is missing, add the missing edges before finishing.
  10. Run node _lumina/scripts/lint.mjs --json when the workspace has the linter. Use --fix only for index/frontmatter fixes that match the user's requested scope.

Playbook B: PDF page range

F

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Edit

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), без исполняемых скриптов.

Похожие скиллы

Сравнить lumi-reading-chapter-ingest с