跳到正文
cccskills
免费在 GitHub 公开

python-code-reviewer

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Preconditions

  • Python code and code/Qx/qx_code_plan.md exist.
  • Approved method decision, method card, data profile, and relevant run summary are available.
  • Required inputs are accessible.

Workflow

  1. Resolve the approved main and usable baseline. Flag scripts for unapproved candidates unless a fallback activation exists.
  2. Inspect and run the code in the intended order.
  3. 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.
  4. Add risk-specific checks only when relevant, such as leakage, constraint feasibility, numerical stability, or scale.
  5. If asked to fix findings, make minimal changes, rerun affected checks, and record the repair. Otherwise report findings without changing code.
  6. 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

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.

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

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.

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

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.

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

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.

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

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

中文简介正在准备中。当前显示原文说明。

zhnnky329/MathModeling-skills10612026年9月24日 更新

查看 zhnnky329 的全部技能

报告此技能的问题