wolfram-headless

wolfram-headless is a skill for Claude Code from Mexregkan/claude-for-researchers. It costs 84 tokens per session (2,084 once invoked), scanned A, original, MIT.

A set of rules for running substantial Wolfram Language calculations without a graphical interface. Wolfram Language is the programming language used by Mathematica and Wolfram tools.

In plain words
What is it for?
Use it when running wolframscript computations, diagnosing apparent license failures, and writing scripts with Greek or other special mathematical symbols.
Why use it?
It addresses misleading license errors caused by kernel crashes and prevents encoding problems that can silently corrupt symbols in script files.

Skill for Claude Code

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

Good fit Use it when running wolframscript computations, diagnosing apparent license failures, and writing scripts with Greek or other special mathematical symbols.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mexregkan/claude-for-researchers/wolfram-headless
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 wolfram-headless
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 wolfram-headless

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mexregkan/claude-for-researchers/wolfram-headless"><img src="https://agentmods.dev/badge/skills/mexregkan/claude-for-researchers/wolfram-headless.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,084 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 87
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
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.00084 $0.02084
Opus 5 $0.00042 $0.01042
Sonnet 5 $0.00017 $0.00417
Haiku 4.5 $0.00008 $0.00208

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

Security

Grade A, and why

wolfram-headless 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 (hooks/wolfram-license-notice.sh, scripts/greek2esc.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/wolfram-headless/SKILL.md · 110 lines

How it starts

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

wolfram-headless — reliable headless Wolfram in Claude Code

Hard-won rules for running wolframscript from Claude Code's Bash tool. Two findings dominate: (1) "The product exited because of a license error" is almost never a license problem — it is a kernel crash (usually a memory spike) mis-reported; and (2) literal Greek Unicode in .wls files silently corrupts symbols under wolframscript. Both cost real time; this skill encodes the fix.

RULE 1 — ASCII escapes in .wls, NEVER literal Greek (silent-corruption bug)

wolframscript reads .wls files under a non-UTF-8 encoding, so a literal ω (U+03C9) becomes a different, dead symbol (mojibake ω), with no error. ω3 =!= \[Omega]3; any ===/pattern test against the real symbol silently fails and results are wrong. Verified: a function keyed on the real \[Omega]3 falls through / returns garbage when fed the literal-ω symbol.

  • In every .wls, write \[Omega] \[Alpha] \[CapitalLambda] \[CapitalDelta] \[Pi] \[Epsilon] \[Tau] \[Mu] \[Xi], never the literal characters. Pi, I, Infinity, and ASCII names (Delta, Esq, tau) are fine.
  • The notebook/desktop kernel (Mathematica FE / Wolfbook in VS Code) handles literal Greek fine — this is headless-.wls-only. So copying notebook code into a .wls introduces the bug.
  • Quick converter (run before any heavy job): replace the Greek chars with their \[...] escapes. A one-liner is in scripts/greek2esc.py next to this skill.
  • Audit a file: LC_ALL=C grep -nP '[^\x00-\x7F]' file.wls — anything in CODE (not comments) is a hazard.

RULE 2 — "license error" is a mis-reported crash; diagnose, don't believe it

When a heavy wolframscript job prints The product exited because of a license error:

  1. Confirm the license is fine (it almost always is): wolframscript -code 'Print[{$LicenseType,DateString[$LicenseExpirationDate],$MaxLicenseProcesses}]' A valid, unexpired license + $MaxLicenseProcesses=Infinity means this is NOT a license issue.
  2. It is a crash — the kernel hit a resource wall (almost always a memory spike from a huge symbolic intermediate) and wolframscript reports any abnormal kernel exit as a "license error." Ruled out in practice as causes: the Bash sandbox (disabling it does NOT help), ulimit (address space is unlimited), encoding, wall-clock time, and the license itself.
  3. Localize it. Instrument the computation statement-by-statement with memory markers; the last marker before the exit is the culprit. Template:
    mb := ToString[Round[MemoryInUse[]/1024^2]]<>"MB";
    Print["[stmt] ", expr, "  mem=", mb, " t=", Round[AbsoluteTime[]]]; (* before each heavy line *)
    
  4. Fix the spike (in order of preference):
    • Shrink the symbolic input first. The usual cause is keeping too many symbolic unknowns. If lower-stage results are already solved, substitute them in before the heavy step so the expression collapses (e.g. a product of two length-N symbolic lists is N²; substituting known values can drop N by orders of magnitude). This is the single highest-leverage fix.
    • Chunk huge products / Expands so the full intermediate is never materialized (Total[Table[Total[op[{a[[i]]}, b]], {i, Length[a]}]] instead of Total[op[a, b]]) — but note an N² operation is still N² operations, so this only helps memory, not time.
    • Run hygiene: put $HistoryLength = 0; at the top (stops Out[] retaining giant results); ClearSystemCache[]/Share[] between heavy steps.
    • Last resort: run it in the desktop / Wolfbook kernel (Mathematica FE), which has more headroom and different limits, then DumpSave the result for headless reuse. If the same code builds in the FE kernel but not headless, the headless wall is the cause — don't keep fighting wolframscript.

Read the full file on GitHub · 110 lines

Files

What ships with it

2 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 · 110 lines · 84 tokens per session scan A e9fbce2e6fc9

Subscribe to this mod's changes

wolfram-headless is a skill published in the GitHub repository Mexregkan/claude-for-researchers (52 stars, last pushed 8d ago), licensed MIT. It adds 84 tokens to every session and 2,084 once invoked, about $0.0004 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