Mathodology Workbench logo

Mathodology Workbench

Community
sweetcornna
mathodology-workbench

Use when setting up, running or checking a contest workspace, recording experiments, keeping paper numbers, figures and LaTeX consistent with results, or installing the Mathodology hooks.

Overview

Publishersweetcornna
Repositorymathodology
Skill namemathodology-workbench
Stars
318
Forks
14
Bundled files
20
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 20 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by sweetcornna on GitHub. Read the source before you install it.

Installation

Install the Mathodology Workbench AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/sweetcornna/mathodology/tree/main/.claude/skills/mathodology-workbench
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sweetcornna/mathodology.git /tmp/mathodology
mkdir -p .claude/skills
cp -r /tmp/mathodology/.claude/skills/mathodology-workbench .claude/skills/mathodology-workbench
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mathodology Workbench in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mathodology Workbench on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mathodology Workbench is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Mathodology Workbench

The other skills guide judgment; this one executes. scripts/mtd.py (Python 3.9+, standard library only) links the five stages of a contest through files, so each stage reads what the previous one actually produced:

StageProducesExecutable support
Problem briefproblem/questions.json: per question, deliverables, metrics, inputs, assumptions, dependenciesmtd.py brief lists the numbered questions; you fill in the rest
Experimentscode under code/, a recorded run per executionmtd.py run -- python code/q1.py logs command, seed, inputs, outputs, exit code; placeholder scripts and stub functions are flagged
Resultsresults/*.json in the contract below, written by codevalidation, provenance and staleness against the code that produced them
Figuresimages drawn by scripts that read resultstraces script → data → image; flags stale, missing, corrupt or low-resolution figures
PaperLaTeX citing \res{q1.rmse}, or Markdown citing {{res:q1.rmse}}mtd.py sync writes paper/results.tex and booktabs tables in paper/tables/; checks numbers, refs, cites, figures and the compile log, and math and citations in Markdown

Run it from the workspace (or pass --root); the path below is relative to a project with the skill installed:

bash
python3 .claude/skills/mathodology-workbench/scripts/mtd.py init --paper-template
python3 .claude/skills/mathodology-workbench/scripts/mtd.py brief          # after the statement is in problem/
python3 .claude/skills/mathodology-workbench/scripts/mtd.py run --seed 1 -- python code/q1.py
python3 .claude/skills/mathodology-workbench/scripts/mtd.py status        # every stage; --json for tools
python3 .claude/skills/mathodology-workbench/scripts/mtd.py check --compile   # exit 1 on errors

A workspace is a folder with .mathodology/, or with problem/ and paper/ as Mathodology Studio creates them. Contracts and every check are described in references/contracts.md.

Results contract

Experiment code writes one JSON file per question or analysis:

json
{"schema": "mathodology.results/1", "question": "Q1",
 "values": {"rmse": {"value": 0.0912, "unit": "kWh", "digits": 3, "ci": [0.081, 0.101]},
            "best_cost": 1532.4},
 "tables": {"compare": {"columns": ["model", "rmse"], "rows": [["ARIMA", 0.12], ["ours", 0.091]]}}}

In LaTeX, \input{results} in the preamble, then write \res{q1.rmse}, \resci{q1.rmse} and \resunit{q1.rmse}. Each table becomes paper/tables/q1-compare.tex; put \input{tables/q1-compare} inside your own table float. A rerun followed by sync updates every number in the paper. Numbers typed by hand are still compared with the results, allowing for the rounding shown: a value that no longer matches after a rerun is reported as a near miss.

Hooks

mtd.py install-hooks (also run by init and by Mathodology Studio) merges four Claude Code hooks into .claude/settings.json, preserving other settings:

  • Session start: a short status of every stage enters the agent's context.
  • Before an edit: hand edits to results/*.json and the generated paper/results.tex and paper/tables/*.tex are refused; results change by rerunning code. A user who really wants manual results sets "allow_result_edits": true in .mathodology/config.json.
  • After an edit or command: an edited paper file is checked at once; when a command changed results, the contract is validated and the macros refreshed.
  • Stop: if errors remain (unknown \res key, missing figure, undefined citation or reference, invalid results, LaTeX errors in a current log), the agent is asked once to fix them or explain why they remain.

"stop_gate" in .mathodology/config.json is errors (default), warnings or off. A check that cannot run (no TeX engine, a crashed checker) is a note and never blocks. Hooks are silent outside a workspace and never fail the session. Codex, Gemini CLI and other agents do not load these hooks: run mtd.py check before handing over a draft.

Judgment the checks cannot make

The checks are mechanical. They do not decide whether a model is appropriate, whether a baseline is fair or whether a claim follows from the evidence; use review questions for that. When the report and the paper disagree, correct the paper from the results or rerun the experiment; never edit results to fit the text. A number reported as unmatched may be a parameter or a literature value: trace it rather than delete it. Report failed or abandoned runs that matter for the conclusions. Figures follow figure presets; have figure scripts read results files rather than retyping values so the staleness check works.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mathodology Workbench AI skill do?

Use when setting up, running or checking a contest workspace, recording experiments, keeping paper numbers, figures and LaTeX consistent with results, or installing the Mathodology hooks.

Why use Mathodology Workbench on TypingMind?

Because you install it once and use it with any model. Mathodology Workbench is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mathodology Workbench in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/sweetcornna/mathodology/tree/main/.claude/skills/mathodology-workbench. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mathodology Workbench?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mathodology Workbench?

As many as you like. As long as a model supports skills, you can use Mathodology Workbench with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mathodology Workbench AI skill free?

Yes. It is published on GitHub by sweetcornna under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇