| name | patterns |
| description | This skill should be used when the user asks to "show computation patterns", "browse Wolfram patterns", or invokes /wolfram-hart:patterns directly. It displays indexed, copy-paste-ready Wolfram computation templates. |
| version | 1.1.0 |
| argument-hint | [keyword-or-number] |
| allowed-tools | Read |
| disable-model-invocation | true |
The plugin ships with 15 numbered, copy-paste-ready computation patterns split
across domain-specific files in
${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/.
Present them based on the user's argument:
If no argument was provided ($ARGUMENTS is empty):
Show this index grouped by domain:
Core (patterns-core.md)
- Quick Calculation
- Symbolic Result with LaTeX
- Solve and Format
- Export Data as CSV or JSON
+ Anti-Patterns
Visualization (patterns-visualization.md)
4. 2D Plot to File
5. 3D Surface
6. Data Analysis Pipeline
Analysis (patterns-analysis.md)
7. Differential Equations
12. Optimization
13. Fourier / Laplace Transforms
Discrete & Structured (patterns-discrete.md)
8. Matrix Operations
9. Number Theory
14. Probability and Distributions
Applied (patterns-applied.md)
11. Unit Conversions
15. Image Processing
Tell the user they can run /wolfram-hart:patterns <number> or
/wolfram-hart:patterns <keyword> to see a specific pattern.
If a number or keyword was provided (e.g. 7, plot, ODE, matrix):
Determine which domain file contains the matching pattern using this mapping:
| Patterns | File |
|---|
| 1, 2, 3, 10 | ${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/patterns-core.md |
| 4, 5, 6 | ${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/patterns-visualization.md |
| 7, 12, 13 | ${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/patterns-analysis.md |
| 8, 9, 14 | ${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/patterns-discrete.md |
| 11, 15 | ${CLAUDE_PLUGIN_ROOT}/skills/wolfram-hart/references/patterns-applied.md |
For keyword matches, use these associations:
- solve, latex, csv, json, export, calculate, simplify, expand, algebra, factor → patterns-core.md
- plot, graph, chart, visual, surface, 3d, regression, fit, listplot, barchart → patterns-visualization.md
- ode, diff eq, integral, integrate, calculus, derivative, series, optimize, minimize, fourier, laplace, transform → patterns-analysis.md
- matrix, eigenvalue, inverse, det, prime, factor integer, number theory, probability, distribution, histogram, statistics → patterns-discrete.md
- unit, convert, image, processing → patterns-applied.md
Use the Read tool to read the matching file, then extract and display only the
matching pattern(s) in full, including the bash invocation and expected output.
If no match, suggest the closest patterns from the index above.
If the Read tool fails (file not found), tell the user the patterns reference
could not be loaded and suggest running /wolfram-hart:check to verify the
installation.