本文へ移動
cccskills
無料GitHub で公開

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.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodologyスター 316(GitHub 316 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(21)

  • SKILL.md5.0 KB
  • agents/openai.yaml410 B
  • hooks/hooks.json954 B
  • references/contracts.md7.2 KB
  • scripts/mtd.py10.1 KB
  • scripts/test_mtd.py76.9 KB
  • scripts/workbench/__init__.py0 B
  • scripts/workbench/assets.py6.4 KB
  • scripts/workbench/brief.py7.1 KB
  • scripts/workbench/engine.py7.3 KB
  • scripts/workbench/figures.py4.9 KB
  • scripts/workbench/hooks.py8.9 KB
  • scripts/workbench/latex.py16.3 KB
  • scripts/workbench/markdown.py8.0 KB
  • scripts/workbench/numbers.py10.1 KB
  • scripts/workbench/report.py2.8 KB
  • scripts/workbench/results.py13.8 KB
  • scripts/workbench/runs.py7.2 KB
  • scripts/workbench/stubs.py2.9 KB
  • scripts/workbench/workspace.py4.7 KB
  • templates/paper/main.tex1.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

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:

{"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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Use when planning a modeling solution, selecting the next useful step or briefing a specialist.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

Use when reviewing mathematical validity, evidence, reproducibility, figures or a submission draft.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

Use when checking skill metadata, references or repository boundaries, or preparing an explicitly requested skills release.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

Use when finding literature, datasets, domain facts, citation details or licensed figure references.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

Use when selecting, designing, generating or reviewing scientific figures, complex modeling charts, paper illustrations or image2-assisted visuals.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

Use when maintaining the skills-only repository or checking whether a change belongs here.

日本語の概要は準備中です。原文の説明を表示しています。

sweetcornna/mathodology3162026年10月28日 更新

sweetcornna のスキルをすべて見る

このスキルの問題を報告する