Agent skill

Matlab Code Reviewer

by zhnnky329 in zhnnky329/MathModeling-skills

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…

MITAuto-check passedDevelopment

Install Matlab Code Reviewer

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhnnky329/MathModeling-skills matlab-code-reviewer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhnnky329/MathModeling-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/matlab-code-reviewer .claude/skills/matlab-code-reviewer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
matlab-code-reviewer
GitHub stars
1.1k
Token cost
~484 tokens
SKILL.md length
203 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

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…

  • Works in 8 steps: Resolve approved main/baseline scope and… → Inspect and run the code when a… → Evaluate → …
  • Tasks that involve Code review
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Data governance

What it does

Matlab Code Reviewer is an agent skill from zhnnky329/MathModeling-skills. 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.

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review and Data governance. The repository describes itself as: 面向数学建模竞赛的 Claude Code / Codex Skills ,支持分阶段建模流程与 Python、MATLAB/北太天元代码分支。 The licence is MIT.

When your agent uses it

  • Tasks that involve Code review
  • Tasks that involve Data governance

Example prompts

  • “/matlab-code-reviewer”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Resolve approved main/baseline scope and any activated fallback.
  2. Inspect and run the code when a compatible runtime is available.
  3. Evaluate
  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 0b46e9c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Matlab Code Reviewer loads about 484 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 203 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~484

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zhnnky329/MathModeling-skills at commit 0b46e9c, republished under its MIT licence (© zhnnky329). 203 words, ~484 tokens.

Download SKILL.mdSave it as .claude/skills/matlab-code-reviewer/SKILL.md (or your agent's skills folder).
name
matlab-code-reviewer
description
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.

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.

© zhnnky329, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/matlab-code-reviewer of zhnnky329/MathModeling-skills.

Open the folder on GitHubat commit 0b46e9c

Compare with similar skills

Matlab Code Reviewer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Matlab Code Reviewer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Matlab Code Reviewer this skillzhnnky329/MathModeling-skills1.1k—~484Automated safety check: PassMIT
Math AuditorCliMA/EnsembleKalmanProcesses.jl128—~2.6kAutomated safety check: PassApache-2.0
Frontend Data Contractssickn33/agentic-awesome-skills47k1 repos~3.6kAutomated safety check: PassMIT
Review Rbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~1.3kAutomated safety check: PassCustom licence
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Math Auditor

    CliMA/EnsembleKalmanProcesses.jl

    Run an adversarial mathematical-accuracy review of a Julia package's src/ and test/ directories, producing a dated markdown report plus concise, self-contained fix-prompt markdowns suitable for…

    128 GitHub stars~2.6k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Frontend Data Contracts

    sickn33/agentic-awesome-skills

    A portable, framework-agnostic discipline for type safety at the network edge of any React or React Native app.

    47k GitHub starsUsed in 1 repo~3.6k tokens
    DevelopmentAuto-check passed
  • Review R

    brycewang-stanford/Auto-Empirical-Research-Skills

    R code review for the sewage project. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.6k GitHub stars~1.3k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check: notes

More from zhnnky329/MathModeling-skills

All 29 skills in this repo
  • Method Selector

    zhnnky329/MathModeling-skills

    Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion.

    1.1k GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check passed
  • Problem Classifier

    zhnnky329/MathModeling-skills

    Classify each parsed mathematical-modeling subquestion by required output and structure, surface ambiguous framing trade-offs for human choice, and record primary/secondary task types without…

    1.1k GitHub stars~611 tokensUpdated 16 days ago
    Auto-check passed
  • Data Auditor Cleaner

    zhnnky329/MathModeling-skills

    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…

    1.1k GitHub stars~1.1k tokensUpdated 16 days ago
    Auto-check passed
  • Decision Prompt Builder

    zhnnky329/MathModeling-skills

    Build one compact choice card at a genuine mathematical-modeling judgment point.

    1.1k GitHub stars~837 tokensUpdated 16 days ago
    Auto-check passed
  • Matlab Model Code Generator

    zhnnky329/MathModeling-skills

    Generate and run minimal reproducible MATLAB or Beita Tianyuan compatible code for the human-approved main method and usable baseline, with compact experiment artifacts and a canonical run summary.

    1.1k GitHub stars~685 tokensUpdated 16 days ago
    Auto-check passed
  • Model Code Analyzer

    zhnnky329/MathModeling-skills

    Translate a human-approved main method and usable baseline into a minimal language-neutral implementation and experiment contract.

    1.1k GitHub stars~881 tokensUpdated 16 days ago
    Auto-check passed

Questions about Matlab Code Reviewer

What does Matlab Code Reviewer 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…. Matlab Code Reviewer is an agent skill from zhnnky329/MathModeling-skills. 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.

When should I use Matlab Code Reviewer?

Matlab Code Reviewer fits situations like: tasks that involve Code review; tasks that involve Data governance.

How do I install Matlab Code Reviewer in Claude Code?

Run `npx skills add zhnnky329/MathModeling-skills --skill matlab-code-reviewer -a claude-code`. Or copy the skill folder (.codex/skills/matlab-code-reviewer in zhnnky329/MathModeling-skills) into .claude/skills/matlab-code-reviewer in your project. Claude Code loads it when a task matches its description.

How do I install Matlab Code Reviewer in Codex?

Run `npx skills add zhnnky329/MathModeling-skills --skill matlab-code-reviewer -a codex`. Or copy the skill folder (.codex/skills/matlab-code-reviewer in zhnnky329/MathModeling-skills) into .agents/skills/matlab-code-reviewer in your project. Codex loads it when a task matches its description.

Can I use Matlab Code Reviewer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhnnky329/MathModeling-skills --skill matlab-code-reviewer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/matlab-code-reviewer, .gemini/skills/matlab-code-reviewer, .github/skills/matlab-code-reviewer and .opencode/skills/matlab-code-reviewer in your project.

What does Matlab Code Reviewer need to run?

SKILL.md names no scripts, command-line tools or credentials: Matlab Code Reviewer is instructions for the agent only.

Does Matlab Code Reviewer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Matlab Code Reviewer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Matlab Code Reviewer use?

Matlab Code Reviewer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Matlab Code Reviewer use?

About 484 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Matlab Code Reviewer?

Skills that share tags, products or a category with Matlab Code Reviewer: Math Auditor (CliMA/EnsembleKalmanProcesses.jl, 128 stars), Frontend Data Contracts (sickn33/agentic-awesome-skills, 47k stars), Review R (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Matlab Code Reviewer?

zhnnky329 (a GitHub user) maintains it in zhnnky329/MathModeling-skills, which has 1,060 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 24, 2026.

Source: zhnnky329/MathModeling-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.