MATLAB Assignment Guardrails Tutor
Keeps MATLAB homework help academically honest by using policy checks and a five-level hint ladder instead of handing over finished code.
EducationBeginner★ 161⑂ 31AI score 9/10Last updated: Aug 12, 2026
What it does
- Triggers whenever a learner asks for help with MATLAB homework, labs, projects, quizzes, or take-home exams.
- Looks for an
AI-POLICY.mdcourse policy file in the working directory; if found, the local policy overrides the defaults, and the tutor states which policy is active. If not found, it says so and applies conservative defaults. - Applies a five-level escalation ladder: ①concept explanation → ②diagnostic questions about variable size/class/value → ③a smaller, non-identical analogous example → ④one line or one edit → ⑤full review after the learner drafts a solution.
- Draws a hard line on restricted help: no submission-ready programs, no filling in every blank of starter code, no polishing work the learner hasn't attempted — and gives a short redirect instead of a lecture.
Who it's for
- MATLAB instructors and TAs who want an AI tutor that respects course integrity rules.
- Engineering and numerical-computing students who want to actually learn the material.
- Course designers turning a written AI-use policy into concrete assistant behavior.
Example uses
- "My MATLAB homework throws 'Index exceeds matrix dimensions'" → the tutor explains the error class and asks what size the array actually is, without writing the fix.
- "It's due tomorrow, just write the whole script" → one brief refusal, then it teaches the concept and works an analogous example in numbers or pseudocode.
- The student pastes a completed draft → Level 5 review mode: bugs, style, and suggested sanity tests.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/matlab/agent-skills-playground/HEAD/demos/ai-tutoring/skills/matlab-apply-assignment-guardrails/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the demos/ai-tutoring/skills/matlab-apply-assignment-guardrails folder from the GitHub repo matlab/agent-skills-playground into my ~/.claude/skills/matlab-apply-assignment-guardrails/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/matlab/agent-skills-playground.git && mkdir -p ~/.claude/skills && cp -r agent-skills-playground/demos/ai-tutoring/skills/matlab-apply-assignment-guardrails ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/matlab/agent-skills-playground.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r agent-skills-playground/demos/ai-tutoring/skills/matlab-apply-assignment-guardrails ~/.claude/skills/ - (Recommended) Also copy
matlab-tutor-learners,matlab-coach-programming, andmatlab-create-ai-policyfrom the same demo folder so the cross-references work. - Restart Claude Code, and start sessions inside the course folder if it contains an
AI-POLICY.md. - Try: "Help me with this MATLAB assignment" — the guardrails should engage automatically.
View source on GitHub ↗License: NOASSERTION