wolfram-general

Enforce Wolfram Language coding, notebook, and package conventions.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/transreal/claudecode --skill wolfram-general
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wolfram-general
Source: https://github.com/transreal/claudecode/tree/main/Claude%20Directives/skills/wolfram-general
Command: npx skills add https://github.com/transreal/claudecode --skill wolfram-general

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you produce reliable Wolfram Language/Mathematica code by enforcing consistent style, safe file/path handling, and a checklist of common language-specific pitfalls.

Core Features & Use Cases

  • Implementation conventions: Prioritizes Wolfram Language as the main language, encourages modern built-ins, and standardizes notebook structure and output style.
  • Safer coding practices: Reduces bugs by specifying path resolution rules, discouraging risky clearing patterns, and banning known anti-patterns.
  • Correct data handling: Recommends symbolic-first computation, stable table outputs via Dataset, and careful Excel import behavior.
  • Wolfram trap avoidance: Includes a targeted list of known gotchas (e.g., ValueQ limitations, Unicode escape handling, Function/& pitfalls).
  • Use cases: Building and editing .wl/.m packages, generating notebook outputs, and implementing/debugging Mathematica workflows with consistent conventions.

Quick Start

Ask your AI to follow the Wolfram-general rules while generating Mathematica code that obeys the project’s file-path and notebook-convention constraints.

Frequently Asked Questions about wolfram-general

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

FAQPage Schema
What are common Wolfram Language traps and anti-patterns when coding in Mathematica?

Common Wolfram Language traps include ValueQ limitations, Unicode escape handling errors, and Function/& pitfalls. Avoiding these anti-patterns ensures safer Mathematica code by enforcing explicit coding conventions and preventing known language-specific bugs during implementation.

How do I handle file paths correctly in Mathematica notebooks and .wl scripts?

Handle file paths in Mathematica by using deterministic file-path resolution via NotebookDirectory fallback. This ensures consistent path resolution across .wl and .nb files, preventing broken relative paths when executing scripts or packages from different working directories.

What is the best way to output tables and datasets in Wolfram Language?

The best way to output tables in Wolfram Language is using Dataset-first table output. This approach provides stable, consistent tabular data rendering and manipulation compared to standard lists, ensuring reliable symbolic-first computation and normalized data structures.

How do I normalize Excel imports in Mathematica to avoid data inconsistency?

Normalize Excel imports in Mathematica by applying careful import behavior rules and explicit data type handling. This prevents common inconsistencies during file ingestion, ensuring that imported spreadsheet data correctly integrates with Dataset-first output conventions.

Does this approach support maintaining idiomatic conventions for .wl and .m packages?

Yes, this approach supports maintaining idiomatic conventions for .wl and .m packages by standardizing package structure, enforcing modern built-ins, and applying UTF-8 handling rules to ensure consistent and maintainable Wolfram Language codebases.