book_chapter.update_from_source

book_chapter.update_from_source is a skill for Claude Code from causify-ai/helpers. It costs 12 tokens per session (1,485 once invoked), scanned A, original, Apache-2.0.

A source-synchronization task for updating a book file from a related source file. It uses the source file’s recorded Git revision and timestamp to find changes, then incorporates them into a Markdown or TeX target.

In plain words
What is it for?
Updating book chapters or other book content after edits to the source, while preserving the target file’s style and tracking which source version it used.
Why use it?
It prevents a book from becoming out of date when its source material changes. Comparing from the recorded revision also avoids repeatedly checking the same changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Updating book chapters or other book content after edits to the source, while preserving the target file’s style and tracking which source version it used.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/causify-ai/helpers/book_chapter.update_from_source
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add causify-ai/helpers --skill book_chapter.update_from_source
Clone the repo
git clone --depth 1 https://github.com/causify-ai/helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for book_chapter.update_from_source

README.md
[![agentmods](https://agentmods.dev/badge/skills/causify-ai/helpers/book_chapter.update_from_source/github.svg)](https://agentmods.dev/skills/causify-ai/helpers/book_chapter.update_from_source)
Your own site
<a href="https://agentmods.dev/skills/causify-ai/helpers/book_chapter.update_from_source"><img src="https://agentmods.dev/badge/skills/causify-ai/helpers/book_chapter.update_from_source/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for book_chapter.update_from_source

Your own site · 80×15
<a href="https://agentmods.dev/skills/causify-ai/helpers/book_chapter.update_from_source"><img src="https://agentmods.dev/badge/skills/causify-ai/helpers/book_chapter.update_from_source.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.01485
Opus 5.5 $0.00005 $0.00594
Sonnet 5.5 $0.00002 $0.00297
Haiku 4.5 $0.00001 $0.00148

Measured 1mo ago against content hash c19423b20d83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

book_chapter.update_from_source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/book_chapter.update_from_source/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal

  • Given the content of a book in the form of a markdown or tex file <TARGET> and a source file <SOURCE>, find and incorporate the changes from <SOURCE> into <TARGET>

Workflow

Read the Version Header

  • The file <SOURCE> contains a header with the last version, in terms of Git hash and timestamp, of the material used to generate the current version of <TARGET>
    • E.g.,
      % git_hash=<GIT_HASH>, timestamp=<TIMESTAMP>
      % <SOURCE>
      
    • E.g.,
      % git_hash=f15bc6b9, timestamp=2026-07-15 14:41:12 EDT
      % book_springer/lectures_source/Lesson02.1_From_Data_Science_To_Decision_Science.txt
      
  • Get the diff of <SOURCE> since <GIT_HASH> once, up front, instead of re-diffing piecemeal per section:
    > git diff <GIT_HASH> -- <SOURCE>
    

Incorporate Changes

  • Find what changed in <SOURCE> from <GIT_HASH> to now, and modify <TARGET> to incorporate those changes
  • Follow the same style as <TARGET> (e.g., read the corresponding .claude/skills/*.rules.md)
  • <TARGET> is allowed to be a superset of <SOURCE> (e.g., a .typ book chapter routinely has headings, diagrams, or explanatory paragraphs that group or expand several flat .smd slides, per typst.rules.md's "Structural Hierarchy"). When <SOURCE> drops a heading or a diagram that <TARGET> already built on, do not delete the corresponding <TARGET> content just because it no longer has a direct counterpart: only remove it if the diff shows the underlying fact/example was itself changed or retracted, not merely reorganized out of the slide deck
  • Update the header at the top of <TARGET> to the new hash/timestamp once done:
    // git_hash=<NEW_GIT_HASH> timestamp=<NEW_TIMESTAMP>
    

Compare Entire Flow

  • Make sure the flow of the <TARGET> book chapter (in typst, latex, md format) follows the flow of the <SOURCE>
  • E.g., you can run extract_toc_from_txt.py on <SOURCE> and <TARGET> and compare
    > extract_toc_from_txt.py -i msml610/lectures_source/Lesson03.3-Non_classical_logics.smd
    
    > extract_toc_from_txt.py -i msml610/book/Lesson03.3-Non_classical_logics.typ
    
  • Ensure that the flow of <TARGET> is consistent with <SOURCE>

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 114 lines · 12 tokens per session scan A c19423b20d83

Subscribe to this mod's changes

book_chapter.update_from_source is a skill published in the GitHub repository causify-ai/helpers (0 stars, last pushed 29d ago), licensed Apache-2.0. It adds 12 tokens to every session and 1,485 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

book_chapter.update_from_source compared with skills from other repositories

book_chapter.update_from_source next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
book_chapter.update_from_sourcecausify-ai/helpersSkill029d agoApache-2.0A12Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k2d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15kyesterdayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k12d agoMITA39Codex