Install Python Code Reviewer
Pick your agent. Every command is ready to paste.
npx skills add zhnnky329/MathModeling-skills --skill python-code-reviewerThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads python-code-reviewer when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the python-code-reviewer skill”. In Codex, type $python-code-reviewer.
Preconditions
- Python code and
code/Qx/qx_code_plan.mdexist. - Approved method decision, method card, data profile, and relevant run summary are available.
- Required inputs are accessible.
Workflow
- Resolve the approved main and usable baseline. Flag scripts for unapproved candidates unless a fallback activation exists.
- Inspect and run the code in the intended order.
- Evaluate required checks:
syntax: imports, execution, exceptions, and obvious runtime faults.input_contract: paths, fields, units, shapes, missing-data handling, and raw-data protection.method_alignment: formulas, objectives, constraints, assumptions, main/baseline roles, and fallback scope match the approved plan.reproducibility: seed, deterministic setup, dependency/runtime record, and rerun consistency.output_contract: saved tables/metrics/figures, valid run summary, comparable main/baseline metrics, degeneracy evidence, and fallback-trigger state.
- Add risk-specific checks only when relevant, such as leakage, constraint feasibility, numerical stability, or scale.
- If asked to fix findings, make minimal changes, rerun affected checks, and record the repair. Otherwise report findings without changing code.
- Save
code/Qx/reviews/qx_python_review.json.
Review Schema
{
"schema_version": 1,
"question_id": "Q1",
"language": "python",
"reviewed_files": [],
"decision_id": "q1_method_choice",
"checks": {
"syntax": {"status": "PASS", "evidence": []},
"input_contract": {"status": "PASS", "evidence": []},
"method_alignment": {"status": "PASS", "evidence": []},
"reproducibility": {"status": "PASS", "evidence": []},
"output_contract": {"status": "PASS", "evidence": []}
},
"findings": [],
"verdict": "PASSED",
"reviewed_at": "ISO-8601"
}
Statuses are PASS, FAIL, or NOT_APPLICABLE with a reason. Any required FAIL blocks G3.
Rules
- Do not pad evidence to reach a count.
- Do not fabricate execution or outputs.
- Do not approve a toy diagnostic reference as the official baseline.
- Do not silently change mathematical meaning.
- Do not create success logs beyond the review JSON.
- Treat code newer than its review as requiring the affected checks to rerun, not necessarily the entire pipeline.
Verification
- Every required named check has concrete evidence.
- Main and baseline are approved and comparable.
- Run summary and on-disk outputs agree.
- Review verdict follows check statuses.
Tips for Python Code Reviewer
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 29 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Python Code Reviewer
What does the Python Code Reviewer skill do?
Review, run, debug, and verify approved Python modeling code against its code plan, data contract, method decision, risk conditions, and experiment outputs, saving one compact JSON review.
How do I install Python Code Reviewer?
Run "npx skills add zhnnky329/MathModeling-skills --skill python-code-reviewer" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Python Code Reviewer work in Cursor and Codex?
Yes. Python Code Reviewer uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Python Code Reviewer free?
Python Code Reviewer is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Python Code Reviewer?
Python Code Reviewer is published by zhnnky329 in the zhnnky329/MathModeling-skills repository, together with 28 other skills.


