Matlab Review Fi Code

Beoordeelt MATLAB fixed-point (fi) code op prestaties, codegen-efficiëntie en correctheid

Door matlab · matlab/matlab-agentic-toolkit

Getest · Werkt ★ 9.2/10

Matlab Review Fi Code — Beoordeelt MATLAB fixed-point (fi) code op prestaties, codegen-efficiëntie en correctheid

Wat het doet

Een code-review checklist die MATLAB fixed-point code inspecteert en antipatronen signaleert via 11 controles: scalar fi() in loops, name-value constructors, accumulator bit-growth, default fimath, fixed-point division, transcendental functions on fi inputs, en meer. Activeert bij het reviewen van MATLAB code die fi, fimath, numerictype, of quantizenumeric gebruikt, of bij het voorbereiden van fixed-point code voor C of hardware code generatie. Geeft bevindingen weer in een gestructureerd [PERF]/[CODEGEN]/[CORRECTNESS]/[PATTERN]/[DEBUG] formaat, gekoppeld aan elke controle.

Testrapport

SKILL.md en manifest.yaml (beide HTTP 200) opgehaald van skills-catalog/code-generation/matlab-review-fi-code/; body is zelfstandig met inline MATLAB voorbeelden, geen externe scripts, geen beveiligingsrisico's. Een geplante MATLAB FIR snippet geschreven met 8 antipatronen, daarna een baseline review (geen skill) en een skill-volgende review geproduceerd. Baseline ving generieke problemen op (preallocatie, vectorisatie, dode acc, deling); de skill review signaleerde bovendien fixed-point-specifieke defecten die de baseline volledig miste — accumulator bit-growth die acc(:) toewijzing nodig heeft (Check 3), name-value versus positionele constructor kosten (Check 8), default-fimath bloated-C / KeepLSB (Check 4), bitsra voor power-of-2 divide (Check 6), sin(fi) naar FunctionApproximation/CORDIC (Check 7), en het types-table patroon (Check 2) — weergegeven in het vereiste [CATEGORY] Line N (Check N) formaat. Technische claims steekproefsgewijs gecontroleerd op nauwkeurigheid (bitsra, hdlfimath, FunctionApproximation.Problem, cordicsin, quantizenumeric).

Getest op: 2026-07-21 · Claude Code 2.x (agent harness)

Installatie

git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git /tmp/matlab-review-fi-code-src
mkdir -p ~/.claude/skills
cp -R /tmp/matlab-review-fi-code-src/skills-catalog/code-generation/matlab-review-fi-code ~/.claude/skills/matlab-review-fi-code
# Self-contained: SKILL.md + manifest.yaml only, no external scripts to fetch.
# The review itself (reading fi code, emitting categorized findings) runs with no MATLAB install.
# manifest.yaml lists required-products "Fixed-Point Designer" and required-tools
#   evaluate_matlab_code / check_matlab_code — only needed if you want the agent to
#   actually RUN/verify the suggested MATLAB, not to perform the static review.
# Official install path is the MATLAB Agentic Toolkit installer: in MATLAB run
#   setupAgenticToolkit("install")  (see repo README).

Commando's en voorbeeldprompts

  • /matlab-review-fi-codeBeoordeelt MATLAB fixed-point (fi) code op prestaties, codegen-efficiëntie en correctheid

Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):

  • Review this fimath code for performance issues
  • Check this numerictype usage for antipatterns
  • Suggest idiomatic fixes for this quantizenumeric code