python-model-code-generator

Generate executable Python modeling code from validated method plans and cleaned data.

452|24|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/zhnnky329/MathModeling-skills --skill python-model-code-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-model-code-generator
Source: https://github.com/zhnnky329/MathModeling-skills/tree/main/.claude/skills/python-model-code-generator
Command: npx skills add https://github.com/zhnnky329/MathModeling-skills --skill python-model-code-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate Python modeling code from a validated candidate method pool and cleaned data to automate the transition from plan to runnable experiments, ensuring traceability and reproducibility.

Core Features & Use Cases

  • Implements the approved candidate methods (baseline, main candidates, optional improved) as Python scripts.
  • Produces code that reads cleaned data, runs the planned models, saves results in the experiments/roundN/ output structure, generates a run_summary.json, and creates portable artifacts for downstream reports and robustness checks.
  • Does not select the model, clean raw data, review code, run final QA, or write paper sections.

Quick Start

Run the generator using the validated problem parse, the candidate method pool, and cleaned data to produce runnable Python scripts and a run_summary.

Frequently Asked Questions about python-model-code-generator

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

FAQPage Schema
How do I generate runnable Python modeling code from a validated plan?

To generate Python modeling code, you provide a validated problem parse, a candidate method pool, and cleaned data. The tool transforms these inputs into executable Python scripts that run planned models and output structured results.

What is a run_summary.json file used for in Python modeling workflows?

A run_summary.json file tracks traceability and reproducibility in modeling workflows. It is automatically generated alongside structured results under the results directory to record experiment outputs from baseline, main, and improved methods.

How to automate end-to-end modeling experiments with baseline and main candidate methods?

Automating end-to-end modeling requires implementing approved candidate methods as Python scripts that read cleaned data, execute models, and save outputs in an experiments/roundN/ structure. This ensures every baseline and main candidate run is tracked.

Does this Python code generator handle data cleaning and model selection?

No, the Python code generator does not select models, clean raw data, review code, run final QA, or write paper sections. It strictly requires pre-validated inputs, including cleaned data and a candidate method pool, to produce runnable scripts.

Can I use this tool to generate portable artifacts for downstream robustness checks?

Yes, generating portable artifacts for downstream reports and robustness checks is a core function. The tool outputs executable scripts, structured experiment results, and a run_summary.json specifically designed to support these downstream validations.

What inputs do I need to produce executable Python scripts for contest modeling?

You need a validated problem parse, a candidate method pool, and cleaned workspace data. These enforced inputs allow the generator to automatically produce runnable Python modeling code and structured experiment tracking outputs.