/computational-research:notebook-create runs instead · from computational-research
Creates Wolfram notebooks from Markdown, edits existing .nb files with notebook-aware tools, and exports Markdown without modifying the notebook. Handles notebook/Markdown conversion while preserving human edits and metadata.
This skill never runs in Claude Code
It ships in computational-research at skills/, but /computational-research:notebook-create (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Choose the operation before converting anything:
.nb: inspect and patch the saved notebook with native tools; read editing.md..nb.For human papers and paclet designs, paper ownership and paclet design ownership take precedence over generated-artifact conventions.
Read the actual human notebook and companion, preserve their names and locations, and edit only within the authorized scope.
The human controls integration and the next numbered iteration; a _notes.nb companion is maintained in place while preserving human corrections.
The creation technique, when a Markdown source is appropriate:
ExportString[ImportString[markdownString, {"Markdown", "Notebook"}], "NB"]
Markdown is imported as a Notebook expression, post-processed, then serialized with ExportString for writing to the selected local path.
This is a creation pipeline, not a reversible editor for existing notebook content.
Read only the references the operation needs:
boxifyInputCells, markInitCells, addLLMSubtitle)research, paper-analysis, computation, theorem-proof)project-create, project-tour); its ownership and document-role rules still apply..nb into the context with the Read tool.
Use native notebook reading or inspect selected cells and options from Import[path, "NB"] in the Wolfram kernel; do not evaluate cell contents while inspecting them.ExportString[..., "NB"] and a local write rather than assuming a kernel-side Export updated the user's file.
If the saved notebook cannot be inspected and preserved with available tooling, report that limit and leave it intact.This skill runs entirely on the AgentTools MCP (mcp__Wolfram__WriteNotebook, mcp__Wolfram__ReadNotebook, mcp__Wolfram__WolframLanguageEvaluator) — one persistent kernel, no extra license seat.
The batch Scripts/generate_notebooks.wls / Scripts/publish_notebooks.wls helpers each spawn a fresh wolframscript kernel and are a fallback for bulk runs only — check headroom first per the authoritative policy in CLAUDE.md § Wolfram Kernel Execution Policy; with no free seat, generate notebooks one at a time through the MCP.
Preserve an existing document's path and any explicit destination.
Human manuscripts and design notebooks are not relocated into Code/Artifacts/.
For a paclet, use the current <PacletName>N.nb and <PacletName>N_notes.nb in the repository root beside the paclet folder.
For a new notebook about the project's code, Code/ holds a requested document in progress and Code/Artifacts/ holds a one-off (the default when the request does not specify).
Read artifacts.md for the topic index and archive convention, subject to the ownership rules above.
An authorized in-place edit does not require a new dated artifact or a new human iteration.
For a new generated artifact, source and output share one dated stem:
Code/Artifacts/README.md the index
Code/Artifacts/Name_YYMMDD.md generation source
Code/Artifacts/Name_YYMMDD.nb generated notebook
This arrangement applies when the chosen source can express the requested content.
A human-edited .nb is not disposable: preserve its direct edits and reconcile any supporting source before considering regeneration.
Follow the project's tracking policy; exclude a generated notebook from Git only while it is reproducible without losing human content or metadata.
These are not wiki articles.
Keep the same stem for a correction rather than adding a second date.
A full rebuild of an existing generated notebook requires an implemented and verified complete drift check, reconciled source, and the requested scope; a missing or legacy stamp does not establish that overwriting is safe.
The fingerprint reference specifies a contract rather than shipping a complete verifier; absent a verified implementation, preserve the saved notebook and use native edits, unless its replacement was explicitly authorized with its original retained.
Otherwise use targeted notebook edits.
A substantive revisit may be a new dated artifact, with the earlier work preserved in Archive/.
Use Markdown for a new artifact meant to be regenerated, or create a native notebook directly when no source layer is needed. Do not invent a Markdown source for an existing notebook merely to make it fit the pipeline. A new source follows markdown-mapping.md; source and output use the same stem even when that stem is an author-selected numbered name. Add an index row only for a newly created artifact, not for a root-level design pair or an existing human document.
Batch scripts are generation-only fallbacks, subject to the same preservation checks. Do not run a folder-wide generator against existing notebooks with unchecked human edits, or a publisher without scoped publication authorization.
If the project has prompt tracking on (a Prompt tracking: **on** line in CLAUDE.md — see the project-provenance skill), record the originating prompt/intent for the notebook:
<!-- provenance: ... --> comment at the top of the Code/Artifacts/Name_YYMMDD.md source..nb on the MCP path yourself:
build prov = <| "intent" -> ..., "date" -> ..., ... |> from the comment's fields,
strip the comment from the markdown string before conversion (the built-in importer drops HTML comments, but the rich parser is not guaranteed to), replacing its lines by empty lines so the cells' source lines stay the file's,
and stamp the notebook expression just before ExportString with the stampTaggingRule merge helper from the project-provenance skill.
TaggingRules is a shared slot — paper-create-notebook's fingerprint key lives there too — so merge by key; never write a literal TaggingRules -> {...} that replaces the option.
In the built-in call this wraps the final expression: ExportString[ stampTaggingRule[ ReplacePart[nb, 1 -> cells], "Provenance" -> prov ], "NB" ];
in the rich-mode call apply it to ReplacePart[nb, 1 -> cells], which it leaves option-complete (the helper preserves CreateCellID and StyleDefinitions).generate_notebooks.wls strips the comment and injects the TaggingRules itself.Wiki/Prompts.md ledger.When tracking is off (default), skip this — generate the notebook as usual.
ReadNotebook / WriteNotebook operations for focused reading and edits only when they preserve the required content and options; inspect their actual schemas rather than assuming a cell-patching interface.ExportString[ImportString[md, {"Markdown", "Notebook"}], "NB"]; it is not the existing-notebook editing path.mcp__wolfram__): use its LSP tools (hover_info, find_definition, find_references, get_diagnostics, document_symbols) for code navigation only; do not use its notebook-manipulation tools when the official MCP is available..nb skeleton may be written when its structure is understood; do not claim that complex formulas or an existing notebook were preserved without verification.
Leave an existing file intact if it cannot be read and safely edited.To check availability: evaluate 1+1 with the official MCP.
Two engines convert Markdown to cells: the built-in ImportString[md, {"Markdown", "Notebook"}] (pipeline-builtin.md) and the rich WolframInstitute/MarkdownToNotebook parser (pipeline-rich.md), which carries constructs the built-in importer mangles or drops.
Engine choice is auto-detected from the source, not configured. Decide in this order:
MarkdownToNotebook/MarkdownToNotebook.wl at the project root.
If it is absent, use the built-in engine and tell the user rich mode was skipped, with the clone command from the wiki article.
Never clone it silently — that is unrequested network I/O.--- first line) or LaTeX math ($$…$$ or $…$).
Those are exactly the constructs the built-in engine gets wrong: frontmatter leaks in as a literal Text cell, and math comes back as flat InlineMath rather than real boxes.A source with neither frontmatter nor math gains little from rich mode, so plain sources keep the cheaper path and the smaller dependency surface.
Fixed conversion settings, either engine:
"Evaluate" -> False for Markdown conversion.
New cells ship unevaluated unless the requested output explicitly includes checked outputs; editing does not automatically authorize running the notebook.Template: Default — the default when frontmatter omits it, and the only template this skill uses.
The documentation templates (Symbol, Guide, TechNote, Paclet) belong to paclet-docs, which uses the official MCP doc tools instead.Get, never the deployed cloud resource: that resource lives on a personal obj/nikm/ path and reports no "Version", so drift is undetectable.The Wolfram MCP interprets raw backtick characters as Wolfram context marks. Triple-backtick fences in markdown strings get corrupted if written as literal characters.
Always construct backticks via FromCharacterCode:
tick = FromCharacterCode[96];
fence = StringJoin[tick, tick, tick];
Then use fence when building the markdown string:
md = "# Title\n\n" <> fence <> "wolfram\nPlot[Sin[x],{x,0,2Pi}]\n" <> fence <> "\n\n";
For inline code, use a single tick.
For Wolfram package names containing context marks (e.g., "Needs[\"MyPackage""]`), use:
"Needs[\"MyPackage" <> tick <> "\"]"
This is the single most important rule. Without it, code blocks will not parse as Input cells.
Always build markdown with StringJoin using fence and tick variables; the other escapes are the usual \ → \\, " → \", newlines as \n.
Creating a new notebook:
For an existing notebook, read editing.md and patch the requested cells or options in the saved notebook. Keep its editor open when available, preserve unrelated cells and metadata, and reconcile supporting sources only where faithful conversion is available. A specifically requested versioned revision uses round.md; ordinary edits and companion updates do not automatically create another version.
For a Markdown-export request, use the separate export procedure in editing.md.
Do not feed that export back into the original .nb.
When running inside a VM (Claude Desktop Projects or sandboxed environment):
ExportString + Write pipeline works on mounted filesystemsThese are defaults for a requested, fully assistant-written expository notebook. They do not reformat human manuscripts, design notebooks, shared notes or existing content. Follow the human document's structure, terminology and metadata; design companions may use API signatures and itemized proposals.
[[ LLM Generated ]] as a Subtitle cell right after the Title for a fully assistant-written standalone notebook.
Use the explicit llmStandalone generation flag in pipeline-builtin.md; leave it False for human-owned or shared documents and for generated cell fragments.
Identify assistant contributions locally or in companion provenance without changing human authorship.True/False, or a list.GraphicsRow (3 pictures per row) or GraphicsGrid (3 × 3).$…$, $$…$$) — except in table cells, where $…$ does not render; use plain text there.CLAUDE.md § Snippets: a chained With, one construction per block, literals inline, the display last. No big shared helper functions; copy code between examples instead.PacletInstall[ "<cloud url>", ForceVersionInstall -> True ] then Needs[ "WolframInstitute`<Name>`" ]; for local work, PacletDirectoryLoad[ "<path>" ] beside the PacletInstall. Shared initialization definitions go in a separate initialization cell after it.Grid.PlotLabel, axis labels, or annotations; let the surrounding text carry the meaning.FindPoint, "From" -> "Center" — not a descriptive sentence.CLAUDE.md: Standard* colors, no ImageSize).When writing cells directly through mcp__Wolfram__WriteNotebook rather than the Markdown pipeline:
Title, Subtitle, Section, Subsection, Text, Item, ItemNumbered, Input. Not Subitem, Subsubitem.Text / Item cells: plain strings plus named characters (\[Alpha], \[Integral], \[Element], …). Not \n, \t, Unicode escapes, TextData, BoxData, StyleBox, ButtonBox, \[Superscript], \[Subscript]. Separate cells instead of newlines.Preserve any supplied or established name and location.
New one-off artifacts use one shared TopicName_YYMMDD stem for .md (when present) and .nb; do not append a second date to the notebook.
Human-owned numbered documents keep their author-selected names, for example Infrageometry1.nb and Infrageometry1_notes.nb at the repository root.
The human chooses the next numbered iteration; maintaining the companion in place does not advance it.
A specifically requested versioned artifact revision uses the naming rule in round.md.
paper-create-notebook builds on this pipeline (rich engine + MathNotebook post-processing) for research documents.project-create and project-tour generate their notebooks through it.paclet-docs does not — documentation pages go through the official MCP doc tools.project-provenance defines the stampTaggingRule helper used in the Provenance step.paper-create-notebook; ordinary exploration and conjecture notebooks remain here.paclet-docs.What SKILL.md sets; muted values are Claude Code's defaults
30 skills in this plugin
/backlog-addCreate and manage work items in the top-level Work/ folder — each a multi-session effort with a Spec (what to build), a Tasks checklist (one task ≈ one session), and a Progress log. This is the project's execution state, separate from the Wiki knowledge base. Use for: "new work item", "start a work item", "spec out X", "plan for X", "break X into tasks", "track this across sessions", "add a task", "update the spec", or the /backlog-add command. Creates Work/Backlog/<Name>.md, bootstrapping the folder if missing. A work item's status is its folder (Backlog/Ready/Active/UnderReview/Done/Dropped), not a field. Specs follow the document-revise protocol; shaping one together with the user over a long sitting is the backlog-refine skill. Do NOT trigger on casual uses of the word "work".
/backlog-autolabWork the Work/ backlog autonomously from an ordinary chat, where the operator can watch it: this chat becomes the orchestrator and dispatches one background subagent per task, each a cold backlog-run run in the item's own git worktree on work/<Item>, visible live in the Agent map and steerable by message. Settles permissions in one preflight before the operator leaves, queues several eligible items, verifies every task the way backlog-run-scheduled does, halts only the item that fails, and ends with a digest per item. Use when the user says "autolab", "run the backlog", "let the agents work the backlog", "work these items autonomously here", "work the queue while I'm away", or runs /backlog-autolab.
/backlog-boardPublish and sync the work board — a private claude.ai page, readable on a phone, that shows every Work/ item under a root (one repo or a folder of repos): what needs the user, what is under review, active, ready and in the backlog, each item rendered and clickable. On the page the user edits the human sections, approves moves (Backlog → Ready, Accept, Send back), leaves notes, files new items and asks Claude about an item; those changes wait on the page until a session syncs them into the files. Use for: "sync the board", "refresh the board", "publish the board", "set up a board", or the /backlog-board command. Never on a timer — a sync is always the user's request.
/backlog-infoGo through the whole Work/ backlog with the user: read every item in Backlog/, Ready/ and UnderReview/ and every work/<Item> branch, and report what waits on the user (a review, a halted run's question, a Waiting-on line, queued board changes), what is stale (no Progress for a month, or a premise the code no longer has), which items overlap, and what to refine, merge, split or drop next. Changes nothing until the user says so; then each move is a git mv and an index update. Never moves an item to Ready and never syncs the board. Use for: "go through the backlog", "backlog info", "what's in the backlog", "what waits on me", "clean up the backlog", "what next", or the /backlog-info command. Not for shaping one item (backlog-refine) or reviewing a finished one (backlog-review).
/backlog-refineShape a Work/Backlog item together with the user over a long sitting until it is ready to be worked — the user writes the human parts (Summary, Motivation, Acceptance criteria, any detail they care about) in their editor, while the LLM researches the code and wiki, writes the Technical details, keeps a list of open questions, and proposes the tasks and their routing. Ends with a readiness check and, on the user's word, the move to Work/Ready/ where /backlog-run-scheduled may pick it up. Use for: "refine X", "let's work on the backlog", "shape this item", "backlog refinement", "get X ready", or the /backlog-refine command. Not for executing tasks (backlog-run) or filing a quick new item (backlog-add).
/backlog-reviewReview a finished Work/ item with the user: find it in Work/UnderReview/ or on its unmerged work/<Item> branch, show the run digest, walk the Acceptance criteria one by one with the test instructions of the tasks that serve each, run the checks that can be run, and end on the user's verdict — accept (merge the branch, item to Done/) or send back (merge the branch, a new task from the user's words, item to Active/). Nothing is fixed during the review. Use for: "review X", "review the item", "check the finished item", "accept X", "send X back", "merge the item branch", or the /backlog-review command. Not for running tasks (backlog-run) or going through the whole backlog (backlog-info).
computational-research@WolframInstitute is listed by wolframinstitute/claudepluginmarketplace — review the source before installing
npx claudepluginhub wolframinstitute/claudepluginmarketplace --plugin computational-researchOther plugins' skills for the same job