modify-notebook

Modify Wolfram Notebook files via Markdown conversion and re-import.

4|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/WolframInstitute/ClaudePluginComputationalResearch --skill modify-notebook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modify-notebook
Source: https://github.com/WolframInstitute/ClaudePluginComputationalResearch/tree/main/skills/modify-notebook
Command: npx skills add https://github.com/WolframInstitute/ClaudePluginComputationalResearch --skill modify-notebook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows users to easily edit existing Wolfram Notebook (.nb) files by converting them to Markdown, making changes, and then re-importing them, preventing direct manipulation of the complex .nb format.

Core Features & Use Cases

  • Safe Editing Workflow: Ensures .nb files are never read directly, always going through a Markdown round-trip for safety and simplicity.
  • Content Modification: Supports adding sections, editing text, inserting code blocks, and removing content within existing notebooks.
  • Use Case: You have a Mathematica notebook detailing a research experiment, and you need to add a new section explaining a revised methodology. This skill will help you update the notebook without risking corruption.

Quick Start

Use the modify-notebook skill to update the existing notebook at '/path/to/my_research.nb' by adding a new code block to the end of the document.

Frequently Asked Questions about modify-notebook

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit an existing Wolfram Notebook without corrupting the file?

To edit a Wolfram Notebook safely, export the .nb file to Markdown, modify the text representation, and re-import it to prevent direct manipulation of the complex format.

What is the best way to add a new code block to a Mathematica notebook?

The best way to add a code block to a Mathematica notebook is through a Markdown conversion process, editing the text representation and re-importing it via the create-notebook pipeline.

Can I update sections and text in an existing .nb file using Markdown?

Yes, you can update existing .nb files by converting them to Markdown, which supports adding sections, editing text, inserting code blocks, and removing content before re-importing.

How does the Markdown round-trip process work for modifying Wolfram Notebooks?

The Markdown round-trip process works by exporting an existing Wolfram Notebook to Markdown, allowing text edits, and re-importing via the create-notebook pipeline to ensure data integrity.

Why should I not read and edit .nb files directly when updating content?

You should not read .nb files directly because the format is complex, and a Markdown round-trip ensures data integrity by preventing corruption during content modification.

Are there limitations to modifying Wolfram Notebooks via Markdown conversion?

Limitations of modifying Wolfram Notebooks via Markdown include reliance on the export and re-import pipeline, meaning edits must be made in the Markdown representation rather than the native .nb format.