notebook-paired-with-prose

notebook-paired-with-prose is a skill for Claude Code from queelius/claude-anvil. It costs 58 tokens per session (788 once invoked), scanned A, original, MIT.

A workflow for pairing technical textbook chapters with executable notebooks. The notebook calculates examples, runs algorithms, or tests empirical claims made in the chapter.

In plain words
What is it for?
Use it when writing chapters with numerical examples, algorithms, or measured results in Jupyter, R Markdown, or Quarto. It also identifies theory-only chapters where a notebook is unnecessary.
Why use it?
It catches incorrect formulas, examples, and claims before publication by checking them with fresh computations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bookwright plugin — 3 skills, 11 commands, 11 agents, 1 hook shipped together

Good fit Use it when writing chapters with numerical examples, algorithms, or measured results in Jupyter, R Markdown, or Quarto. It also identifies theory-only chapters where a notebook is unnecessary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/queelius/claude-anvil/notebook-paired-with-prose
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 queelius/claude-anvil --skill notebook-paired-with-prose
Clone the repo
git clone --depth 1 https://github.com/queelius/claude-anvil

Made for: Claude Code.

Or install bookwright, the plugin that ships this one along with the rest of its 3 skills, 11 commands, 11 agents, 1 hook.

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 notebook-paired-with-prose

README.md
[![agentmods](https://agentmods.dev/badge/skills/queelius/claude-anvil/notebook-paired-with-prose/github.svg)](https://agentmods.dev/skills/queelius/claude-anvil/notebook-paired-with-prose)
Your own site
<a href="https://agentmods.dev/skills/queelius/claude-anvil/notebook-paired-with-prose"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/notebook-paired-with-prose/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 notebook-paired-with-prose

Your own site · 80×15
<a href="https://agentmods.dev/skills/queelius/claude-anvil/notebook-paired-with-prose"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/notebook-paired-with-prose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 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.00058 $0.00788
Opus 5.5 $0.00023 $0.00315
Sonnet 5.5 $0.00012 $0.00158
Haiku 4.5 $0.00006 $0.00079

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

Security

Grade A, and why

notebook-paired-with-prose 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.

bookwright/skills/notebook-paired-with-prose/SKILL.md · 64 lines

How it starts

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

Notebook Paired with Prose (bookwright)

In a technical textbook, paired notebooks are not optional decoration. They are empirical verifiers: a chapter that claims a formula or worked example has a notebook that COMPUTES the formula and shows the empirical result matches. Broken notebook means broken chapter.

When notebooks are required vs optional

Required:

  • Any chapter with a worked numerical example. The notebook must compute the same example and match.
  • Any chapter with an algorithm. The notebook implements it and runs it.
  • Any chapter with an empirical claim ("the SE is roughly 0.05"). The notebook simulates and verifies.

Optional or omitted:

  • Theory-only chapters (no worked examples, no algorithms); the master spec marks them theory-only.
  • Bridge chapters that exist only to connect Parts.

The master spec's chapter outline marks which chapters have notebooks. The per-chapter plan's notebook task spec lists the content + numerical-sanity targets.

Numerical-sanity-target convention

The plan lists explicit targets like:

  • "Empirical FPR at $\fprate = 0.01$, k=7: within plus-or-minus 0.005 of theoretical 0.0078."
  • "Wald CI coverage at $n_0 = 200, \fprate = 0.05$: in $[0.93, 0.97]$ band."

The notebook-author agent computes these and compares. Match = pass. Miss = flag for user review (could be the prose is wrong, could be the notebook is wrong, could be sampling noise).

Exec-from-fresh-kernel requirement

Notebooks MUST execute end-to-end from a fresh kernel with no errors; exit code 0 is required for commit. The per-stack execution commands live in one place, the notebook-author agent's Stack-Specific Execution table.

Common gotchas

  • Python: forgetting to seed the RNG produces non-reproducible outputs. Always np.random.default_rng(seed=42) or similar.
  • Python: dependencies must be in pyproject.toml. New dependencies require cd <project> && uv add <pkg> before re-executing.
  • R: renv::status() should be clean; new packages require renv::install("pkg") then renv::snapshot().
  • Quarto: cell-by-cell execution depends on engine; if mixing R + Python, configure the engine carefully.
  • All stacks: explicitly seed any randomness. Markdown cells should describe what the code cell will do, not just narrate it.

Read the full file on GitHub · 64 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 Changed · -6 lines d87719bb6eed
  2. 3mo ago First seen · 70 lines · 58 tokens per session scan A 4d29d0ed2727

Subscribe to this mod's changes

notebook-paired-with-prose is a skill published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 788 once invoked, about $0.0002 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-08-31.

Related

notebook-paired-with-prose compared with skills from other repositories

notebook-paired-with-prose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
notebook-paired-with-prosequeelius/claude-anvilSkill31mo agoMITA58Claude Code
lean-checkflonat/flonat-researchSkill15517d agoMITA63Claude Code
math-proofflonat/flonat-researchSkill15517d agoMITA68Claude Code, Codex
jupyter-notebookulises-jeremias/agent-toolkitSkill28yesterdayMITA61Claude Code
explainharnessprotocol/harness-kitSkill13yesterdayApache-2.0A95Claude Code
cpp-reinforcement-learningAznatkoiny/zAI-SkillsSkill1025d agoMITA131Claude Code
beamer-academicFaust-Donf/beamer-academicSkill3523mo agoMITB148Claude Code, Codex