Skip to content
alyn
zhnnky329

Matlab Code Reviewer skill

Review, run, debug, and verify approved MATLAB or Beita Tianyuan modeling code against its plan, data contract, method decision, compatibility constraints, and experiment outputs, saving one compact JSON review.

$npx skills add zhnnky329/MathModeling-skills --skill matlab-code-reviewer
View this skill on GitHubzhnnky329/MathModeling-skills/.claude/skills/matlab-code-reviewer/SKILL.md
Pack stars
1,088
Pack installs
1k
Alyn Score
48/99
Updated
2 months ago
License
MIT
– views – installs via Alyn

Install Matlab Code Reviewer

Pick your agent. Every command is ready to paste.

$npx skills add zhnnky329/MathModeling-skills --skill matlab-code-reviewer

The 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 matlab-code-reviewer when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the matlab-code-reviewer skill”. In Codex, type $matlab-code-reviewer.

The skill itself

SKILL.md

FolderGitHub

Preconditions

  • MATLAB code and code/matlab/Qx/qx_code_plan.md exist.
  • Approved decision, method card, data profile, and run summary are available.
  • MATLAB or 北太天元 runtime availability is known.

Workflow

  1. Resolve approved main/baseline scope and any activated fallback.
  2. Inspect and run the code when a compatible runtime is available.
  3. Evaluate:
    • syntax
    • input_contract
    • method_alignment
    • reproducibility
    • output_contract
  4. Include compatibility evidence for toolbox usage, jsonencode, file I/O, plotting/export, and 北太天元 constraints.
  5. Add only relevant numerical, feasibility, leakage, or scale checks.
  6. If runtime is unavailable, use NOT_RUN rather than claiming execution success.
  7. If asked to fix findings, patch minimally and rerun affected checks.
  8. Save code/matlab/Qx/reviews/qx_matlab_review.json.

Review Schema

Use the same schema as python-code-reviewer, with:

  • "language": "matlab"
  • runtime
  • compatibility_target
  • optional compatibility check

Required named checks use PASS, FAIL, or justified NOT_APPLICABLE. Runtime-dependent checks use NOT_RUN when execution was impossible; this blocks G3 until executed.

Rules

  • Do not pad pass items.
  • Do not fabricate MATLAB/北太天元 execution.
  • Do not approve unavailable toolbox dependencies without an explicit target exception.
  • Do not change the mathematical model silently.
  • Do not require a duplicate Markdown review.

Verification

  • Approved main and baseline scope is enforced.
  • Compatibility constraints are checked.
  • Run summary and outputs agree.
  • Verdict follows required check statuses and runtime evidence.

Tips for Matlab 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 Matlab Code Reviewer

What does the Matlab Code Reviewer skill do?

Review, run, debug, and verify approved MATLAB or Beita Tianyuan modeling code against its plan, data contract, method decision, compatibility constraints, and experiment outputs, saving one compact JSON review.

How do I install Matlab Code Reviewer?

Run "npx skills add zhnnky329/MathModeling-skills --skill matlab-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 Matlab Code Reviewer work in Cursor and Codex?

Yes. Matlab 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 Matlab Code Reviewer free?

Matlab Code Reviewer is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Matlab Code Reviewer?

Matlab Code Reviewer is published by zhnnky329 in the zhnnky329/MathModeling-skills repository, together with 28 other skills.

Similar skills. From other creators.