[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BZH90291T4S7K65SPX3YPE":3,"skill-same:01M6BZH90291T4S7K65SPX3YPE":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":17,"ownerDescription":17,"updatedAt":48,"install":49,"resources":62},"01M6BZH90291T4S7K65SPX3YPE","book_chapter.update_from_source","书籍内容源文件同步","Update a book's content to match changes in its source file","更新书籍内容，使其与源文件中的更改保持一致。","causify-ai\u002Fhelpers","causify-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121828442?v=4","01M6BZFTHW2MQR7FWK8CDW0DRA","Causify.AI","01M6BZFTPJ193AB5N089Z82HQG",155,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fbook_chapter.update_from_source\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CBKVQ0NH3BY0SEQQHVKM0M","图书编写与出版","SCENARIO","使用场景",[31,32,33,34],"update","book chapter update from source","content","file","2026-11-10 10:12:30",false,"---\ndescription: Update a book's content to match changes in its source file\nmodel: opus\n---\n\n# Goal\n- Given the content of a book in the form of a markdown or tex file `\u003CTARGET>` and\n  a source file `\u003CSOURCE>`, find and incorporate the changes from `\u003CSOURCE>` into\n  `\u003CTARGET>`\n\n# Workflow\n\n## Read the Version Header\n- The file `\u003CSOURCE>` contains a header with the last version, in terms of Git hash\n  and timestamp, of the material used to generate the current version of\n  `\u003CTARGET>`\n  - E.g.,\n    ```text\n    % git_hash=\u003CGIT_HASH>, timestamp=\u003CTIMESTAMP>\n    % \u003CSOURCE>\n    ```\n  - E.g.,\n    ```text\n    % git_hash=f15bc6b9, timestamp=2026-07-15 14:41:12 EDT\n    % book_springer\u002Flectures_source\u002FLesson02.1_From_Data_Science_To_Decision_Science.txt\n    ```\n- Get the diff of `\u003CSOURCE>` since `\u003CGIT_HASH>` once, up front, instead of re-diffing\n  piecemeal per section:\n  ```bash\n  > git diff \u003CGIT_HASH> -- \u003CSOURCE>\n  ```\n\n## Incorporate Changes\n- Find what changed in `\u003CSOURCE>` from `\u003CGIT_HASH>` to now, and modify `\u003CTARGET>` to\n  incorporate those changes\n- Follow the same style as `\u003CTARGET>` (e.g., read the corresponding\n  `.claude\u002Fskills\u002F*.rules.md`)\n- `\u003CTARGET>` is allowed to be a superset of `\u003CSOURCE>` (e.g., a `.typ` book chapter\n  routinely has headings, diagrams, or explanatory paragraphs that group or expand\n  several flat `.smd` slides, per `typst.rules.md`'s \"Structural Hierarchy\"). When\n  `\u003CSOURCE>` drops a heading or a diagram that `\u003CTARGET>` already built on, do not\n  delete the corresponding `\u003CTARGET>` content just because it no longer has a direct\n  counterpart: only remove it if the diff shows the underlying fact\u002Fexample was\n  itself changed or retracted, not merely reorganized out of the slide deck\n- Update the header at the top of `\u003CTARGET>` to the new hash\u002Ftimestamp once done:\n  ```text\n  \u002F\u002F git_hash=\u003CNEW_GIT_HASH> timestamp=\u003CNEW_TIMESTAMP>\n  ```\n\n## Compare Entire Flow\n- Make sure the flow of the `\u003CTARGET>` book chapter (in typst, latex, md format)\n  follows the flow of the `\u003CSOURCE>`\n- E.g., you can run `extract_toc_from_txt.py` on `\u003CSOURCE>` and `\u003CTARGET>` and\n  compare\n  ```bash\n  > extract_toc_from_txt.py -i msml610\u002Flectures_source\u002FLesson03.3-Non_classical_logics.smd\n\n  > extract_toc_from_txt.py -i msml610\u002Fbook\u002FLesson03.3-Non_classical_logics.typ\n  ```\n- Ensure that the flow of `\u003CTARGET>` is consistent with `\u003CSOURCE>`\n\n## Update Source-Line References\n- A `.typ` `\u003CTARGET>` carries a `\u002F\u002F From: \u003CSOURCE>:\u003CLINE> '\u003Cslide title>'` comment\n  above each section, pointing at the exact `\u003CSOURCE>` line it was generated from\n- Any edit to `\u003CSOURCE>` above a given slide shifts every later line number: after\n  incorporating the changes, re-walk `\u003CTARGET>`'s `\u002F\u002F From:` comments top to bottom\n  and update each `\u003CLINE>` to match the slide's current position in `\u003CSOURCE>` (grep\n  `\u003CSOURCE>` for the slide's `*`\u002F`#` title to find it)\n\n## Update Rendered Images\n- When `\u003CSOURCE>`'s diff changes a `graphviz`\u002F`mermaid`\u002F`tikz`\u002F... code block (new\n  styling, new nodes, a swapped static image for a rendered diagram, or vice versa),\n  carry that same code change into `\u003CTARGET>`'s matching\n  `rendered_images:begin`\u002F`rendered_images:end` placeholder (see\n  `typst.rules.md`'s \"Diagram Placeholders and `wrap-content`\")\n- Never touch the numbered `.png` filenames\n  (`\u003CChapter>.typ.figs\u002F\u003CChapter>.\u003CN>.png`) or the figure `#figure(image(...))` calls\n  by hand for content that already renders correctly: `render_images.py` regenerates\n  both the images and their numbering from the placeholders on the next render\n- If a section gains or loses a rendered figure, every later figure's `\u003CN>` shifts;\n  after editing the placeholders, grep `\u003CTARGET>` for\n  `\\.typ\\.figs\u002F.*\\.[0-9]+\\.png` and renumber every `#figure(image(...))` call (and\n  its matching `label=`\u002F`caption=` metadata line) sequentially from 1, in document\n  order, so the bare `#figure(...)` blocks stay in sync with what the next render\n  will produce\n- Carry over caption\u002Flabel wording changes the same way you would prose: if\n  `\u003CSOURCE>`'s diff renames or rewords what a diagram depicts, update the figure's\n  `caption=`\u002F`caption:` to match, following `typst.rules.md`'s \"Figures: Required\n  Elements\" (sentence case, one plain line, no node-by-node listing)\n\n# Verification\n- [ ] Confirm every change in `\u003CSOURCE>` since `\u003CGIT_HASH>` is reflected in\n  `\u003CTARGET>`\n- [ ] Confirm `\u003CTARGET>` still follows the style of its corresponding\n  `.claude\u002Fskills\u002F*.rules.md` (`typst.rules.md`, `latex.rules.md`, or\n  `markdown.rules.md`, depending on `\u003CTARGET>`'s format)\n- [ ] Confirm `\u003CTARGET>` compiles\n  - For a `.typ` `\u003CTARGET>`, use `render_book_chapter.py -i \u003CTARGET>` when a working\n    Docker\u002Fgraphviz setup is available\n  - As a lighter syntax-only check that doesn't need Docker (and avoids\n    `render_book_chapter.py`'s Docker\u002Fgraphviz image-tagging bug, and its\n    side-effect of re-rendering other `.typ` files if a `gen_slides.py --daemon` is\n    watching the same book directory), stub out any not-yet-rendered figure PNGs\n    and compile directly:\n    ```bash\n    > typst compile --root . \u003CTARGET> \u002Ftmp\u002Fcheck.pdf\n    ```\n  - After either check, `git status`\u002F`git diff` the whole book directory, not just\n    `\u003CTARGET>`, to catch an unintended side effect on a sibling chapter\n- [ ] Confirm every `\u002F\u002F From: \u003CSOURCE>:\u003CLINE>` comment in `\u003CTARGET>` points at the\n  correct, current line in `\u003CSOURCE>`\n- [ ] Confirm every figure's numbered `.png` filename is sequential in document\n  order with no gaps or duplicates\n","# Goal\n- Given the content of a book in the form of a markdown or tex file `\u003CTARGET>` and\n  a source file `\u003CSOURCE>`, find and incorporate the changes from `\u003CSOURCE>` into\n  `\u003CTARGET>`\n\n# Workflow\n\n## Read the Version Header\n- The file `\u003CSOURCE>` contains a header with the last version, in terms of Git hash\n  and timestamp, of the material used to generate the current version of\n  `\u003CTARGET>`\n  - E.g.,\n    ```text\n    % git_hash=\u003CGIT_HASH>, timestamp=\u003CTIMESTAMP>\n    % \u003CSOURCE>\n    ```\n  - E.g.,\n    ```text\n    % git_hash=f15bc6b9, timestamp=2026-07-15 14:41:12 EDT\n    % book_springer\u002Flectures_source\u002FLesson02.1_From_Data_Science_To_Decision_Science.txt\n    ```\n- Get the diff of `\u003CSOURCE>` since `\u003CGIT_HASH>` once, up front, instead of re-diffing\n  piecemeal per section:\n  ```bash\n  > git diff \u003CGIT_HASH> -- \u003CSOURCE>\n  ```\n\n## Incorporate Changes\n- Find what changed in `\u003CSOURCE>` from `\u003CGIT_HASH>` to now, and modify `\u003CTARGET>` to\n  incorporate those changes\n- Follow the same style as `\u003CTARGET>` (e.g., read the corresponding\n  `.claude\u002Fskills\u002F*.rules.md`)\n- `\u003CTARGET>` is allowed to be a superset of `\u003CSOURCE>` (e.g., a `.typ` book chapter\n  routinely has headings, diagrams, or explanatory paragraphs that group or expand\n  several flat `.smd` slides, per `typst.rules.md`'s \"Structural Hierarchy\"). When\n  `\u003CSOURCE>` drops a heading or a diagram that `\u003CTARGET>` already built on, do not\n  delete the corresponding `\u003CTARGET>` content just because it no longer has a direct\n  counterpart: only remove it if the diff shows the underlying fact\u002Fexample was\n  itself changed or retracted, not merely reorganized out of the slide deck\n- Update the header at the top of `\u003CTARGET>` to the new hash\u002Ftimestamp once done:\n  ```text\n  \u002F\u002F git_hash=\u003CNEW_GIT_HASH> timestamp=\u003CNEW_TIMESTAMP>\n  ```\n\n## Compare Entire Flow\n- Make sure the flow of the `\u003CTARGET>` book chapter (in typst, latex, md format)\n  follows the flow of the `\u003CSOURCE>`\n- E.g., you can run `extract_toc_from_txt.py` on `\u003CSOURCE>` and `\u003CTARGET>` and\n  compare\n  ```bash\n  > extract_toc_from_txt.py -i msml610\u002Flectures_source\u002FLesson03.3-Non_classical_logics.smd\n\n  > extract_toc_from_txt.py -i msml610\u002Fbook\u002FLesson03.3-Non_classical_logics.typ\n  ```\n- Ensure that the flow of `\u003CTARGET>` is consistent with `\u003CSOURCE>`\n\n## Update Source-Line References\n- A `.typ` `\u003CTARGET>` carries a `\u002F\u002F From: \u003CSOURCE>:\u003CLINE> '\u003Cslide title>'` comment\n  above each section, pointing at the exact `\u003CSOURCE>` line it was generated from\n- Any edit to `\u003CSOURCE>` above a given slide shifts every later line number: after\n  incorporating the changes, re-walk `\u003CTARGET>`'s `\u002F\u002F From:` comments top to bottom\n  and update each `\u003CLINE>` to match the slide's current position in `\u003CSOURCE>` (grep\n  `\u003CSOURCE>` for the slide's `*`\u002F`#` title to find it)\n\n## Update Rendered Images\n- When `\u003CSOURCE>`'s diff changes a `graphviz`\u002F`mermaid`\u002F`tikz`\u002F... code block (new\n  styling, new nodes, a swapped static image for a rendered diagram, or vice versa),\n  carry that same code change into `\u003CTARGET>`'s matching\n  `rendered_images:begin`\u002F`rendered_images:end` placeholder (see\n  `typst.rules.md`'s \"Diagram Placeholders and `wrap-content`\")\n- Never touch the numbered `.png` filenames\n  (`\u003CChapter>.typ.figs\u002F\u003CChapter>.\u003CN>.png`) or the figure `#figure(image(...))` calls\n  by hand for content that already renders correctly: `render_images.py` regenerates\n  both the images and their numbering from the placeholders on the next render\n- If a section gains or loses a rendered figure, every later figure's `\u003CN>` shifts;\n  after editing the placeholders, grep `\u003CTARGET>` for\n  `\\.typ\\.figs\u002F.*\\.[0-9]+\\.png` and renumber every `#figure(image(...))` call (and\n  its matching `label=`\u002F`caption=` metadata line) sequentially from 1, in document\n  order, so the bare `#figure(...)` blocks stay in sync with what the next render\n  will produce\n- Carry over caption\u002Flabel wording changes the same way you would prose: if\n  `\u003CSOURCE>`'s diff renames or rewords what a diagram depicts, update the figure's\n  `caption=`\u002F`caption:` to match, following `typst.rules.md`'s \"Figures: Required\n  Elements\" (sentence case, one plain line, no node-by-node listing)\n\n# Verification\n- [ ] Confirm every change in `\u003CSOURCE>` since `\u003CGIT_HASH>` is reflected in\n  `\u003CTARGET>`\n- [ ] Confirm `\u003CTARGET>` still follows the style of its corresponding\n  `.claude\u002Fskills\u002F*.rules.md` (`typst.rules.md`, `latex.rules.md`, or\n  `markdown.rules.md`, depending on `\u003CTARGET>`'s format)\n- [ ] Confirm `\u003CTARGET>` compiles\n  - For a `.typ` `\u003CTARGET>`, use `render_book_chapter.py -i \u003CTARGET>` when a working\n    Docker\u002Fgraphviz setup is available\n  - As a lighter syntax-only check that doesn't need Docker (and avoids\n    `render_book_chapter.py`'s Docker\u002Fgraphviz image-tagging bug, and its\n    side-effect of re-rendering other `.typ` files if a `gen_slides.py --daemon` is\n    watching the same book directory), stub out any not-yet-rendered figure PNGs\n    and compile directly:\n    ```bash\n    > typst compile --root . \u003CTARGET> \u002Ftmp\u002Fcheck.pdf\n    ```\n  - After either check, `git status`\u002F`git diff` the whole book directory, not just\n    `\u003CTARGET>`, to catch an unintended side effect on a sibling chapter\n- [ ] Confirm every `\u002F\u002F From: \u003CSOURCE>:\u003CLINE>` comment in `\u003CTARGET>` points at the\n  correct, current line in `\u003CSOURCE>`\n- [ ] Confirm every figure's numbered `.png` filename is sequential in document\n  order with no gaps or duplicates\n",{"model":40,"description":7},"opus","master","39143a859859181eff7e774457997b5278fd9e99",".claude\u002Fskills\u002Fbook_chapter.update_from_source",170,"https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers","https:\u002F\u002Fcausify.ai","https:\u002F\u002Fgithub.com\u002Fcausify-ai","2026-11-02 02:09:15",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add causify-ai\u002Fhelpers --skill book_chapter.update_from_source",{"tool":55,"command":56},"bunx","bunx skills add causify-ai\u002Fhelpers --skill book_chapter.update_from_source",{"tool":58,"command":59},"pnpm","pnpm dlx skills add causify-ai\u002Fhelpers --skill book_chapter.update_from_source","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fbook_chapter.update_from_source\u002FSKILL.md",true,[],[64,84,102,119,132,141],{"skillNo":65,"name":66,"nameZh":67,"description":68,"descriptionZh":69,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":70,"categories":71,"keywords":76,"publishedAt":35},"01M6C9ZMM0XSXCHHABMJ9XB1JB","tutorial_in_60_mins.propagate_docker_changes","Docker 文件同步与模板对齐","Sync tutorial and class-project Docker files to match project_template","同步教程和课程项目的 Docker 文件，使其与 project_template 保持一致。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.propagate_docker_changes\u002FSKILL.md",[72,75],{"categoryNo":73,"categoryName":74,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[77,78,79,80,81,82,83],"tutorial in 60 mins propagate docker changes","tutorial","docker","files","haiku","template","sync",{"skillNo":85,"name":86,"nameZh":87,"description":88,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":96,"publishedAt":35},"01M6C9ZJK8QJ9FNCY39WVF3GMG","tutorial_in_60_mins.merge_markdown","Markdown 合并至 Jupyter Notebook","Merge the content of a markdown file into a Jupyter notebook","将 Markdown 文件的内容合并到 Jupyter Notebook 中。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.merge_markdown\u002FSKILL.md",[92,95],{"categoryNo":93,"categoryName":94,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[97,98,78,99,100,81,34,33,101],"merge","tutorial in 60 mins merge markdown","markdown","jupyter","jupyter notebook",{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":114,"publishedAt":35},"01M6C9ZFYK13ZCT1E8BEEC4NG4","tutorial_in_60_mins.format","60 分钟教程格式规范化","Format a directory to follow the \"Learn X in 60 Minutes\" tutorial conventions","格式化目录，使其遵循「Learn X in 60 Minutes」（60 分钟学会 X）教程约定。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.format\u002FSKILL.md",[110,111],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":112,"categoryName":113,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CFCW1CKQHXFV91HEWYD9W6","课程开发与教学制作",[115,78,116,117,118,81],"tutorial in 60 mins format","format","directory","learn",{"skillNo":120,"name":121,"nameZh":122,"description":123,"descriptionZh":124,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":129,"publishedAt":35},"01M6C9ZDKXSBKNKX7M3X4W38G5","tutorial_in_60_mins.create","60 分钟教程目录创建","Create a tutorial directory for the Learn X in 60 Minutes conventions","按照「Learn X in 60 Minutes」（60 分钟学会 X）约定创建教程目录。","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftutorial_in_60_mins.create\u002FSKILL.md",[127,128],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":112,"categoryName":113,"taxonomyType":28,"taxonomyTypeDesc":29},[130,78,131,117,118],"tutorial in 60 mins create","create",{"skillNo":133,"name":134,"nameZh":17,"description":135,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":35},"01M6BZS5Z0QE03WRS1TM3XJEY9","todo.reorg_in_progress","Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftodo.reorg_in_progress\u002FSKILL.md",[],[139,140],"todo reorg in progress","tasks",{"skillNo":142,"name":143,"nameZh":17,"description":144,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":35},"01M6BZS4CQZ6KK2KQ26SVB7QCS","todo.reorg_headers","Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage","https:\u002F\u002Fgithub.com\u002Fcausify-ai\u002Fhelpers\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ftodo.reorg_headers\u002FSKILL.md",[],[148],"todo reorg headers"]