Skip to content
cccskills
FreePublished on GitHub

python-model-code-generator

Generate and run minimal reproducible Python modeling code for the human-approved main method and usable baseline, saving compact experiment artifacts and a canonical run summary.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Preconditions

  • G2.5 human method choice is recorded in methods/Qx/qx_decisions.jsonl.
  • code/Qx/qx_code_plan.md exists.
  • Required cleaned data and profile exist.
  • The plan targets Python.

Legacy method pools and code/model-code-analyzer.md may be read during migration, but they do not override the human choice.

Workflow

  1. Read the code plan, decision ledger, method card, probe conditions, and data profile.
  2. Confirm scope:
    • one approved main method;
    • one usable baseline;
    • fallback only when an activation decision or evidenced trigger exists.
  3. Generate clear runnable .py files under code/Qx/.
  4. Use project-root-safe paths, fixed seeds, explicit inputs, and minimal justified dependencies.
  5. Save:
    • tables to results/Qx/experiments/roundN/tables/;
    • metrics to .../metrics/;
    • useful diagnostic/comparison figures to .../figures/;
    • canonical run_summary.json.
  6. Evaluate and record output-degeneracy and fallback-trigger metrics required by the plan.
  7. Persist full logs only on failure or when a warning needs reproduction.
  8. Run the code. Do not claim success from code generation alone.
  9. Hand off to code-reviewer.

Script Layout

Prefer the smallest clear layout:

code/Qx/
├── qx_code_plan.md
├── qx_baseline.py
├── qx_main.py
└── run_all.py        # only when coordination is useful

Do not create one script per unapproved candidate. Do not create a README that duplicates the code plan.

Run Summary

Follow the schema in model-code-analyzer. Include:

  • approved decision ID;
  • method IDs and roles;
  • inputs and outputs;
  • seed and environment;
  • execution status and timing;
  • compact metric summaries;
  • output-degeneracy evidence;
  • warnings/errors;
  • fallback-trigger state.

Rules

  • Do not change the approved model or baseline.
  • Do not read or overwrite raw data.
  • Do not hide assumptions in code.
  • Do not emit placeholder metrics, figures, or successful statuses.
  • Prefer portable .py scripts over notebook-only workflows.
  • Keep intermediate files only when needed for explanation, review, robustness, or debugging.
  • Use Type 1 diagnostic figures internally; do not present them as paper figures.

Verification

  • Main and baseline both ran and are directly comparable.
  • Fallback code is absent unless activated.
  • Formal outputs and run summary exist.
  • Seed, inputs, versions, warnings, and errors are recorded.
  • Required concentration/degeneracy checks are saved.
  • Next handoff is code-reviewer.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Detect whether approved modeling code is Python or MATLAB/Beita Tianyuan and route it to the matching reviewer using the compact named-check review contract.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

Audit whether the semantic evidence required by the active lean or submission profile exists and is current, without requiring one verbose artifact per skill or an arbitrary number of pass bullets.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

Run scoped or final cross-media consistency checks for mathematical-modeling artifacts, comparing canonical numbers, symbols, parameters, decisions, files, and paper claims without performing full-workspace audits for low-risk changes.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

Map contest attachments to subquestions, audit and clean raw data, and emit one reusable data profile with quality, coverage, imbalance, concentration, and method-readiness evidence for downstream risk screening.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

Build one compact choice card at a genuine mathematical-modeling judgment point. Use before method screening, after a meaningful experiment, or before final claim/freeze approval so the human chooses the trade-off while AI handles mechanical consequences.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

Plan the smallest set of diagnostic, comparison, paper, and appendix figures or tables needed to support verified mathematical-modeling decisions and claims.

The English summary is being prepared. Showing the original description.

zhnnky329/MathModeling-skills1.1KUpdated Sep 24, 2026

See all skills by zhnnky329

Report a problem with this skill