开发与测试
code-reviewer
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 · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add zhnnky329/MathModeling-skills --skill code-reviewer技能说明
name: code-reviewer description: 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.
Workflow
- Inspect target code extensions and the implementation target in
qx_code_plan.md. - Route
.pywork topython-code-reviewer. - Route
.mwork tomatlab-code-reviewer. - If both languages are intentionally present, review each separately.
- If the language or target is ambiguous, report the exact conflict.
Review Contract
New reviews write JSON and evaluate these named checks:
syntaxinput_contractmethod_alignmentreproducibilityoutput_contract
Additional checks are allowed when risk-driven. A review passes when all required applicable checks pass; no arbitrary bullet count is used.
Rules
- Do not perform a second independent review in this router.
- Do not infer success because scripts exist.
- Do not require a Markdown review when the canonical JSON review exists.
- Read legacy Markdown reviews only for compatibility.