nb-to-wolfbook

nb-to-wolfbook is a skill for Claude Code from Mexregkan/claude-for-researchers. It costs 53 tokens per session (2,455 once invoked), scanned A, original, MIT.

A converter for Mathematica `.nb` or `.m` files into Wolfbook `.wb` notebooks that can open and run in VS Code. Mathematica is a system for technical and symbolic computing; `.nb` is its desktop notebook format.

In plain words
What is it for?
Use it to import existing `.nb` or `.m` files into Wolfbook, or to repair an existing `.wb` so its cells run safely through Wolfbook tools.
Why use it?
It avoids evaluation differences when Mathematica code is run through Wolfbook’s non-graphical tools. It also replaces private display characters that can appear as rectangle symbols.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to import existing .nb or .m files into Wolfbook, or to repair an existing .wb so its cells run safely through Wolfbook tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mexregkan/claude-for-researchers/nb-to-wolfbook
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 Mexregkan/claude-for-researchers --skill nb-to-wolfbook
Clone the repo
git clone --depth 1 https://github.com/Mexregkan/claude-for-researchers

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 nb-to-wolfbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/nb-to-wolfbook/github.svg)](https://agentmods.dev/skills/mexregkan/claude-for-researchers/nb-to-wolfbook)
Your own site
<a href="https://agentmods.dev/skills/mexregkan/claude-for-researchers/nb-to-wolfbook"><img src="https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/nb-to-wolfbook/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 nb-to-wolfbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/mexregkan/claude-for-researchers/nb-to-wolfbook"><img src="https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/nb-to-wolfbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,455 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00053 $0.02455
Opus 5 $0.00026 $0.01228
Sonnet 5 $0.00011 $0.00491
Haiku 4.5 $0.00005 $0.00246

Measured 12d ago against content hash 8a131ef7245b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

nb-to-wolfbook 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (nb2wb.py, wl_normalize.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

starter/.claude/skills/nb-to-wolfbook/SKILL.md · 148 lines

How it starts

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

nb-to-wolfbook

Converts Mathematica files (.nb / .m) to Wolfbook .wb (a VS Code Notebook JSON), and — critically — makes the resulting cells bridge-safe so they evaluate identically through the Wolfbook MCP (runCell / evaluateExpression) as they do in the Mathematica front end.

When to invoke

/nb-to-wolfbook <file-or-directory> — convert .nb/.m to .wb (bridge-safe + PUA→ASCII). /nb-to-wolfbook --fix-wb <file.wb> — normalize an EXISTING .wb in place (bridge-safe + PUA→ASCII), backup written. /nb-to-wolfbook --puafix <file.wb> — de-rectangle ONLY (PUA→ASCII, no newline reflow): the smallest diff that removes the rectangle glyphs from an already-bridge-safe .wb.

⚠️ The bug this skill exists to prevent (READ THIS)

A Wolfram cell can wrap one statement over several physical lines:

Eeqv[{j1_},{k1_}] := (-1)^(j1) j1!/(k1-1) Coefficient[
   GenSer, ep[j1,k1]];
MMVbar[j_,k_] := (-1)^(Total[j]+Length[j])
   MMV[j,k];

The front end parses each cell as one unit, so this is fine interactively. But an evaluator that splits a cell on newlines (the Wolfbook MCP runCell, a headless Get of re-serialised text, naive ToExpression) sees broken fragments and either:

  • throws Syntax::sntxi: Incomplete expression (the Sum[...,⏎{...}] case), or
  • treats the newline as implicit Times: (-1)^k ⏎ MMV[...] silently drops to a product / loses the MMV factor, and def1;⏎def2; becomes Times[def1;, def2;] instead of two definitions.

This corrupts the kernel silently — definitions look present but are wrong — and is exactly what makes a cell-by-cell rebuild "unfaithful." The fix: put each statement on one physical line, collapsing only the intra-statement newlines (insignificant whitespace) and keeping a newline only after a top-level ;. Semantics are unchanged, comments are preserved, and the cell is now safe for any evaluator.

The subtle case that slipped through once (the MMVbar regression)

MMVbar[...] := (-1)^(Total[j]+Length[j]) MMV[...] is one RowBox (the space is implicit Times), merely soft-wrapped for display in the .nb. The FE's "InputText" export ignores PageWidth (verified: Cell option, ExportPacket option, wrapping-Notebook option — all still wrap) and turns the wrap into a hard newline with a continuation indent: ... Length[j])\n MMV[...]. The line ends in ) — a complete value — so the old "does the line end in an operator?" heuristic said "statement boundary, keep the newline," and the MMV factor was dropped (MMVbar became a bare sign). This sat latent in the committed .wb/.nb for months.

Read the full file on GitHub · 148 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 148 lines · 53 tokens per session scan A 8a131ef7245b

Subscribe to this mod's changes

nb-to-wolfbook is a skill published in the GitHub repository Mexregkan/claude-for-researchers (52 stars, last pushed 9d ago), licensed MIT. It adds 53 tokens to every session and 2,455 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

pre-submission-report

Run the final, comprehensive submission-readiness gate and consolidate all checks into one dated report; citation-integrity-only mode is also supported. Use when a paper and submission package are nearly final. Not for a mid-draft adversarial review; use $review-cluster.

flonat/flonat-research · 59 tokens

proof-readability

Improve the exposition and readability of a mathematical proof already verified as correct without changing its mathematics. Use when polishing a lemma, theorem, proof, or appendix after correctness checks. Not for verifying the proof; use $verify-math.

flonat/flonat-research · 50 tokens

latex

Compile one specified LaTeX document, resolve build errors, audit citations, and report build quality. Use when a .tex source must be built or a concrete compilation failure repaired. Not for corpus-wide build checks, visual polish after a clean build, or creating a project; use $latex-health-check, $latex-polish, or…

flonat/flonat-research · 74 tokens

beamer-deck

Create an academic presentation as a LaTeX Beamer source and reviewed PDF with an original theme. Use when the requested deliverable is a conference, seminar, or lecture deck in Beamer. Not for PowerPoint or RevealJS; use $pptx or $quarto-deck.

flonat/flonat-research · 63 tokens

bib-parse

Extract citations from a PDF and generate a validated .bib file. Use when the user asks to extract citations from a PDF and generate a validated .bib file. Reads the PDF, identifies referenced works, constructs BibTeX entries, and verifies metadata.

flonat/flonat-research · 54 tokens

computational-experiments

Scaffold, execute, analyse, and publish computational research experiments through a reproducible staged workflow. Use when a research question requires simulations or computational sweeps rather than a one-off script.

flonat/flonat-research · 43 tokens