Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Book Map.Update

БесплатноБез исполняемых скриптовНе проверен

Renumber a book map, reorder its Detailed TOC to follow the Short TOC, and rename the matching lecture and tutorial files

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • Given a book map <BOOK_MAP> (e.g., book_Modern_AI_for_Finance/book_map.md), make it follow .claude/skills/book_map.rules.md:
    • Renumber the chapters
    • Reorder # Detailed TOC to follow ## Short TOC
    • Keep the Roadmap table in sync
    • Rename the numbered files in <BOOK>/lectures_source/ and <BOOK>/tutorials/, and fix the references to them
  • Write a plan, wait for the user to approve it, then apply it

Plan Only (--only_plan)

  • With --only_plan, follow .claude/skills/skill.rules.md section "Create Only a Plan with --only_plan"
  • Write the plan to book_map.update.<INPUT_REF>.md, then stop without executing the skill
    • Run the skill through "Write the Plan", and stop before "Wait for Approval"

Inputs

  • <BOOK_MAP>: the book map to update
  • <BOOK>: the directory that contains <BOOK_MAP>

Workflow

Read

  • Read .claude/skills/book_map.rules.md and <BOOK_MAP> in full
  • Use .claude/templates/book_map.template.md for the structure of new chapters
  • Follow .claude/skills/markdown.rules.md and .claude/skills/text.rules.md for any text you add

Compute the New Numbers

  • ## Short TOC is the source of truth for chapter order, parts, and part names
    • Do not trust the chapter numbers in the file
  • Match chapters across Short TOC, Detailed TOC, and Roadmap by title
    • Treat titles that differ only in case, and, or a trailing s as equal
  • Number the chapters 01, 02, ... in Short TOC order, with no gaps
    • Number the entries marked ? too
  • Keep the map old number -> new number

Map the Files

  • Look recursively in <BOOK>/lectures_source/ and <BOOK>/tutorials/
  • A name is numbered when Lesson or L is followed by <NN> and . or _
    • E.g., Lesson05.01_Forecasting.smd, L05_forecasting/, L05_01_forecasting.ipynb, figures/L05.01.Drawdown.png
  • Skip __pycache__/, *.pyc, *.log, OLD/, old/, and names with no number
  • Assign each file to a chapter:
    • First by the file name in the Roadmap, ### Slides, or ### Tutorials
    • Then by the old number in the name
  • Build the new name by replacing only <NN>
    • Keep <MM>, the title, and the extension
  • Do not rename a file when the two rules disagree or no chapter matches: ask under ## Questions

Write the Plan

  • Create book_map.update.<INPUT_REF>.md in the current dir
    • <INPUT_REF> is the dir name of <BOOK_MAP>, since every book map has the same file name
  • Write a checkbox list with a global index per item, so the user can approve by index
  • Make each item state the exact change, the line number, and the reason
  • Group the items under these headers, omitting the empty ones:
    • ## Short TOC, ## Parts, ## Renumbering, ## Reordering, ## New Chapters, ## Chapters Without a Short TOC Entry, ## Roadmap, ## Cross References, ## Lecture Files, ## Tutorials, ## File References, ## Findings Not Fixed, ## Questions

Propose these changes:

  • Short TOC: nested bullets (part, then <NN>, <Title>, then topics)
  • Parts: make # Part headings and Roadmap part rows use the Short TOC names and order, keeping the numeral style of the file
  • Titles: use the Short TOC title in the three places
    • Ask when the meaning differs, not only the wording
  • Renumbering and reordering: one item per chapter that changes
    • Move a chapter as one block, from its ## <NN>: heading to the next ##
  • New chapter (in Short TOC, not in Detailed TOC): create the section from the Chapter Template
    • Fill ### Goals with 3 bullets and ### Topics from the Short TOC
    • Write ### Slides as - N/A: no dedicated deck yet
    • Write ### Lesson Materials with only _Not covered_ and a // TODO(gp): Fill the lesson materials line
    • Do not invent coverage percentages
  • Chapter without a Short TOC entry: never propose to delete it
    • Ask: add it to the Short TOC, merge it into a chapter, or remove it
  • Roadmap: reorder and renumber the rows, keep the cell values, and use the new file names in the cells
  • Cross references: replace old chapter numbers in prose (chapter 02)
  • Lecture files and tutorials: one item per chapter and directory, listing each old path -> new path
    • Keep a tutorial directory and its files in one item, since the notebook, its .py, and _utils.py import each other by name
  • File references: one item per file that uses an old name, as <path>:<line>: <old> -> <new>
    • Look in <BOOK_MAP>, the renamed files (figure paths, import lines), and other book maps or // From: comments in this repo
    • For other Git repos, point to .claude/skills/git.update_references/SKILL.md
  • // TODO(ai_gp): markers: remove a marker the plan resolves, and list the others under ## Questions

Report only these, since they need content judgment:

  • Missing chapter subsection
  • ### Goals without 3 bullets, or a bullet of 100 characte
Полный SKILL.md на GitHub

Установить Book Map.Update в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Book Map.Update?

Renumber a book map, reorder its Detailed TOC to follow the Short TOC, and rename the matching lecture and tutorial files

Как установить скилл Book Map.Update?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Book Map.Update запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Book Map.Update с