zhnnky329/mathmodeling-skills/model-code-analyzer

Claude Code and agent skill by zhnnky329/mathmodeling-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Translate a human-approved main method and usable baseline into a minimal language-neutral implementation and experiment contract. Use after G2.5 and data readiness, before Python or MATLAB code generation.

Install

npx vskill@latest install zhnnky329/mathmodeling-skills/model-code-analyzer

SKILL.md

The same SKILL.md was published earlier as mrhaozzzz/skills/model-code-analyzer.

Purpose

Define exactly what code must implement and save. Do not expand the approved experiment scope or fully plan a dormant fallback.

Preconditions

  • methods/Qx/qx_method_card.md and probe summary exist.
  • methods/Qx/qx_decisions.jsonl contains a human DECIDED method choice.
  • A usable baseline is identified.
  • Cleaned data and data_profile.json are ready when data is required.
  • Implementation target and round are known.

Read legacy candidate/decision artifacts only when the new artifacts are absent.

Workflow

  1. Read the approved choice, method card, probe conditions, and experiment budget.
  2. Plan only:
  • approved main;
  • approved usable_baseline;
  • shared helpers and comparison logic.
  1. Record the fallback ID and trigger, but do not plan its full implementation unless the trigger is already evidenced and the human chose activation.
  2. Map mathematical definitions to inputs, processing steps, intermediate evidence, outputs, and validation checks.
  3. Define a directly comparable metric/output contract for main and baseline.
  4. Define the round output:
text
results/Qx/experiments/roundN/
├── figures/
├── tables/
├── metrics/
└── run_summary.json

Create logs/ only for failures, warnings, or reproducibility needs.

  1. Write code/Qx/qx_code_plan.md for Python or code/matlab/Qx/qx_code_plan.md for MATLAB.
  2. Hand off to the matching language generator.

Run Summary Contract

Require:

json
{
"schema_version": 1,
"question": "Q1",
"round": "round1",
"implementation_target": "python",
"random_seed": 2026,
"approved_decision_id": "q1_method_choice",
"methods": [
{
"method_id": "M1",
"role": "usable_baseline",
"script": "code/Q1/q1_baseline.py",
"status": "success",
"execution_time_seconds": 0,
"input_files": [],
"output_files": [],
"figure_files": [],
"metrics_summary": {},
"warnings": [],
"errors": []
}
],
"comparison": {},
"fallback_trigger": {
"fallback_id": null,
"condition": null,
"observed": false,
"evidence": null
},
"environment": {}
}

Code Plan Contents

  • target language and round purpose;
  • approved decision ID;
  • main and baseline IDs and roles;
  • input fields and units;
  • per-method computation steps;
  • comparable outputs and metrics;
  • risk-probe conditions that implementation must monitor;
  • fallback trigger evaluation;
  • paths, seed, dependencies, and expected runtime;
  • named review checks expected downstream.

Rules

  • Do not write executable model code.
  • Do not add candidates or change model meaning.
  • Do not plan a diagnostic reference as the official baseline.
  • Do not implement a fallback before activation.
  • Do not require success logs.
  • Do not create a README when the code plan already provides the same instructions.
  • Stop if a human choice, required parameter, input field, or comparable baseline output is missing.

Verification

  • Plan scope is exactly main plus usable baseline unless fallback activation is recorded.
  • Outputs are directly comparable.
  • Probe risks and fallback trigger are represented in run_summary.json.
  • Paths follow the experiment contract.
  • Handoff targets the correct language generator.

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,059
Repository forks
42
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zhnnky329/mathmodeling-skills/model-code-analyzer/badge)](https://verified-skill.com/skills/zhnnky329/mathmodeling-skills/model-code-analyzer)

Something wrong with this skill or its page? Tell us.