Book map.update

From gpsaggese/helpers · View interactive version

Book map.update is an AI agent skill from the GitHub repository gpsaggese/helpers. Renumber a book map, reorder its Detailed TOC to follow the Short TOC, and rename the matching lecture and tutorial files

How to use this skill

Skill file

Goal

make it follow .claude/skills/book_map.rules.md:

<BOOK>/tutorials/, and fix the references to them

Inputs

Workflow

Read

for any text you add

Compute the New Numbers

Map the Files

L05_01_forecasting.ipynb, figures/L05.01.Drawdown.png

under ## Questions

Write the Plan

index

## New Chapters, ## Chapters Without a Short TOC Entry, ## Roadmap,

## Cross References, ## Lecture Files, ## Tutorials,

## File References, ## Findings Not Fixed, ## Questions

Propose these changes:

and order, keeping the numeral style of the file

the Chapter Template

// TODO(gp): Fill the lesson materials line

new file names in the cells

each old path -> new path

its .py, and _utils.py import each other by name

<path>:<line>: <old> -> <new>

other book maps or // From: comments in this repo

others under ## Questions

Report only these, since they need content judgment:

Wait for Approval

Apply the Approved Items

phases, because renumbering permutes the numbers (02 -> 03, 03 -> 04):

single pass per file, so that a replacement is never replaced again

```bash

> lint_text.py -i <BOOK_MAP>

```

Constraints

number cross references, and the edits in an approved item

to renamed files

Example

## Renumbering
- [ ] 1. `## 05: Price and Volatility Forecasting` -> `## 07: Forecasting`
      (line 561): Short TOC position 7

## Reordering
- [ ] 2. Move `## 07` (lines 561-690) after `## 06` (line 1012)

## Lecture Files
- [ ] 3. Chapter `05 -> 07`, `lectures_source/`
  - `Lesson05.01_Forecasting.smd` -> `Lesson07.01_Forecasting.smd`
  - `figures/L05.01.Drawdown.png` -> `figures/L07.01.Drawdown.png`

## Tutorials
- [ ] 4. Chapter `05 -> 07`, `tutorials/`
  - `L05_forecasting/` -> `L07_forecasting/`
  - `L05_forecasting/L05_01_forecasting.ipynb` ->
    `L07_forecasting/L07_01_forecasting.ipynb`

## File References
- [ ] 5. `book_map.md:145`: `Lesson05.01_Forecasting.smd` ->
      `Lesson07.01_Forecasting.smd`

Verification

TOC order

the number of its chapter

files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.