SkillsReviewed · zhnnky329

Python Code Reviewer from MathModeling-skills

Python Code Reviewer is an assistant skill for developers reviewing Python mathematical modeling code, but it requires approved project documents and existing run evidence. It guides checks of execution, inputs, mathematical intent, reproducibility and outputs, with findings saved in a structured JSON review.

Researched 17 Nov 2026

In short.

Python Code Reviewer is an assistant skill for developers and modeling teams reviewing Python code, but it depends on an established approval process and access to project files and execution tools. Its instructions connect five required checks to approved methods, input requirements and experiment outputs. The supplied resource contains instructions and a review schema; neither the skill nor Python code was executed, so review accuracy and operational reliability remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied scope of .claude/skills/python-code-reviewer: its captured SKILL.md, plus the repository-root MIT LICENSE notice. Other repository skills, broader project documentation and user project files are outside this scope. No skill execution, Python execution, installation, repair or output validation was performed; operational behavior and effectiveness remain unassessed.

The overview

Identity

The resource is python-code-reviewer in the zhnnky329/MathModeling-skills repository, located at .claude/skills/python-code-reviewer/SKILL.md. It instructs an assistant to review, run, debug and verify Python modeling code against approved project decisions.

The original skill folder is available at [https://github.com/zhnnky329/MathModeling-skills/tree/main/.claude/skills/python-code-reviewer]. Its placement identifies it as an assistant skill; supported host versions and compatibility with other assistants are not specified.

Assessment

Its strongest feature is checking whether code implements the intended modeling decision, alongside whether it runs. Explicit checks for units, constraints, baseline comparability and saved outputs make the procedure relevant to mathematical modeling work.

The instructions are detailed enough to define a review procedure, but successful execution, finding accuracy and repair quality are unassessed. The evidence contains no completed review or measured results.

Users

The skill is most directly suited to developers and modeling teams that already document their chosen method, comparison baseline, data requirements and experiment results. A baseline is the approved reference method used to judge the main method's results.

Beginners receive a concrete checklist, but the file does not teach how to choose a modeling method or create the prerequisite documents. Experienced reviewers gain explicit links between implementation, mathematical assumptions and experimental evidence.

Capabilities

The five required checks cover imports and runtime failures; input paths, fields, units, shapes and missing data; formulas, objectives, constraints and approved method roles; seeds, runtime records and rerun consistency; and saved tables, metrics, figures and run summaries.

The procedure also calls for relevant risk checks, such as data leakage, constraint feasibility, numerical stability or scale. Repairs are conditional on a request: the assistant should make minimal changes, rerun affected checks and record the repair without silently changing mathematical meaning.

Using it

Requirements

Prerequisites are Python code, code/Qx/qx_code_plan.md, an approved method decision, a method card, a data profile, a relevant run summary and accessible inputs. The procedure also requires identifying the approved main method and a usable baseline.

Following the full procedure requires an assistant environment capable of inspecting files, running Python and writing the review artifact. The file does not specify a Python version, dependency set, assistant model or required execution environment.

Mechanism

The assistant first resolves approved methods and any authorized fallback, then inspects and runs scripts in their intended order. It gathers evidence for the five required checks and adds relevant risk checks.

The output goes to code/Qx/reviews/qx_python_review.json. Schema version 1 records the question, reviewed files, method decision, check statuses and evidence, findings, verdict and timestamp. Check statuses are PASS, FAIL or NOT_APPLICABLE, with a reason for non-applicability. A required failure blocks the gate called G3, whose broader meaning is not defined here. Automatic enforcement is not demonstrated.

Setup

The captured folder supplies a SKILL.md instruction file. No installation command or host-specific activation procedure is provided, so loading and discovering the skill must be confirmed for the intended assistant.

Before use, supply the prerequisite documents and resolve Qx to the relevant project question. Confirm that referenced inputs, existing outputs and the intended review destination are accessible. Dependency installation and runtime provisioning are unspecified.

Example

In an illustrative Q1 project, the assistant would read code/Q1/q1_code_plan.md, identify the approved main method and baseline, inspect and run their scripts, and compare outputs with the run summary. It would save findings to code/Q1/reviews/q1_python_review.json.

If a script used units inconsistent with the documented inputs, that would be a candidate input_contract finding requiring concrete evidence. A requested repair would require rechecking affected behavior. This example describes intended use; no such project or execution result is supplied.

Assessment & evidence

Limitations

The supplied resource contains review instructions and a JSON template, with no supporting reviewer implementation or automated test harness. Compliance depends on the assistant applying the instructions and collecting adequate evidence.

The file does not define numerical tolerances, exact risk-test procedures or criteria for sufficient rerun consistency. It also provides no real completed reviews or evidence that its checks reliably detect defects. It requires approved baseline and fallback decisions rather than supplying those decisions.

Reasoning

The structure suggests a useful fit for projects where correctness includes both working software and faithful implementation of a mathematical plan. A successful run alone cannot establish that formulas, constraints or comparison methods match the approved decision.

Evidence attached to named checks can make findings easier to inspect. Requiring only affected checks to rerun after code changes can also focus follow-up work, although the resource provides no measured efficiency or quality improvement.

Alternatives

A human reviewer could apply the same approved documents and check categories manually. For a narrower task, such as detecting syntax problems, a general Python checking tool may be sufficient; it would still need project-specific review to establish mathematical alignment.

These are possible approaches, not evaluated substitutes. The supplied evidence names no competing resource and contains no comparative results.

Evidence

The technical evidence is the complete supplied SKILL.md, including its prerequisites, workflow, review schema, rules and verification criteria. The version-specific original is [https://raw.githubusercontent.com/zhnnky329/MathModeling-skills/7780c20de4bdde73d93ea784b1dadf1c5f552e65/.claude/skills/python-code-reviewer/SKILL.md].

The separate repository-root LICENSE establishes the supplied permission terms. Neither file supplies execution logs, benchmark results or a completed review. Statements about behavior describe the instructions, with operational results remaining unassessed.

Access & freshness

Costs

The MIT notice permits use without a license fee. Assistant subscriptions, model usage, Python execution and other operating costs are unspecified, so total cost is unknown.

The procedure includes rerun consistency and repair rechecks, but provides no runtime, token-use or compute estimates.

Rights

The repository-root MIT License names Zhijun Zhang as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The license disclaims warranties and liability. It does not establish rights to project code or datasets supplied separately. The captured notice is available at [https://raw.githubusercontent.com/zhnnky329/MathModeling-skills/7780c20de4bdde73d93ea784b1dadf1c5f552e65/LICENSE].

Freshness

The supplied source snapshot was captured on 17 November 2026 at 08:01:05 UTC from commit 7780c20de4bdde73d93ea784b1dadf1c5f552e65. This description applies to that revision.

The JSON template declares schema_version 1, which identifies the review output schema rather than a skill release. A release number, last substantive update date and later upstream changes are unknown.

Actions

Before adopting the skill, confirm that your project has the required approved documents, comparable main and baseline methods, accessible inputs and existing run evidence. Confirm how your assistant loads the file and obtains the required execution and file-writing capabilities.

Begin with one project question and inspect the evidence attached to every required check, including agreement between saved outputs and the run summary. Request repairs explicitly when wanted, and rerun affected checks whenever reviewed code changes.

Evidence for this report

.claude/skills/python-code-reviewer/SKILL.mdselected · checked 2026-11-17
LICENSEnotice · checked 2026-11-17