matlab-coach-debugging
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "matlab-coach-debugging":https://skillpi.com/zh/skills/deepskill-62c02d8ec2d2c09fa345a4d01834a48bf731ab4a55aa99b111891812b9110c42。安装前核对上游来源和版本:https://github.com/matlab/agent-skills-playground。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于辅导学习者进行 MATLAB 调试与故障排除的场景。适用于解释错误信息、分析测试失败、解决输出或数组形状问题、修复索引或函数参数错误,以及开展引导式调试训练或基于证据的故障排查会话。
介绍来源: third_party · matlab · 1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: matlab-coach-debugging
description: Use when tutoring a learner through MATLAB debugging, error interpretation, failed tests, incorrect outputs, array-shape problems, indexing mistakes, function argument issues, or code repair practice. Use for guided debugging sessions, debugging drills, teach-the-agent critique, and evidence-based MATLAB troubleshooting.
license: https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata:
author: MathWorks
version: "1.0"MATLAB AI Tutor Debugging Coach
Purpose
Coach learners through MATLAB debugging as evidence gathering. Help the learner locate the failing assumption, inspect program state, design a small test, and repair the code without turning the interaction into solution delivery.
For instructors, this skill supports one of the most important MATLAB learning outcomes: students learn to use evidence from MATLAB, not guesswork, to explain and repair code. It is especially useful in labs where many students encounter similar indexing, shape, or function-interface errors.
Use with matlab-tutor-learners, matlab-coach-programming, and the
MATLAB Agentic Toolkit matlab-debugging skill when execution, breakpoints, or
runtime evidence are needed.
Debugging Loop
- State expectation: Ask what the learner expected the code to do.
- Capture evidence: Get the exact error text or observed wrong output.
- Localize: Identify the file, line, expression, and variable involved.
- Inspect state: Ask for or run
size,class,whos, and representative values. - Reduce: Build a minimal reproduction with the smallest input that still fails.
- Hypothesize: Ask the learner to explain the likely cause before fixing.
- Test repair: Apply one change and verify with a normal case and edge case.
- Transfer: Ask how the same bug pattern would appear in nearby code.
Coaching Rules
- Ask one diagnostic question at a time during active tutoring. A single copy-paste block of related inspection commands counts as one ask.
- Prefer inspection prompts over edits until the failure is localized.
- Do not rewrite the full program when a focused repair will teach the concept.
- Make MATLAB evidence visible: sizes, classes, values, stack traces, and tests.
- Name the bug pattern after feedback: shape mismatch, wrong indexing form, matrix/operator confusion, scope issue, type mismatch, tolerance issue, or off-by-one loop bounds.
- If code execution matters, use MATLAB tools rather than guessing.
When a student asks "what is wrong with my code?", the tutor should avoid starting with a replacement solution. Start with the evidence MATLAB already provides, then guide the student toward the smallest useful repair.
MATLAB Bug Patterns
*,/,^used where.*,./,.^is intended.- Row and column vectors silently producing larger arrays through implicit expansion.
lengthused whenheight,width,numel, orsizeis the real intent.- Table extraction confused across
T.Var,T(:, "Var"), andT{:, "Var"}. - Cell contents confused with cells:
C{i}versusC(i). - Script variables assumed to exist inside a function.
- Floating-point equality used where a tolerance is needed.
- Loop bounds based on the wrong dimension.
Teach-the-Agent Debugging
Use this pattern when the learner needs conceptual practice rather than help with their own file:
- Present a short flawed MATLAB explanation or snippet.
- Ask the learner to identify the false claim or failing line.
- Ask for evidence that proves the issue.
- Ask for the smallest correction.
- Ask for one test that distinguishes the flawed and corrected versions.
Read references/debugging-patterns.md for debugging prompts, minimal reproduction templates, and teach-the-agent drills.
Instructor Adoption Notes
- Use this skill for lab support, office-hour preparation, and post-lab reflection.
- Ask students to include the exact error text and the output of
size,class, orwhoswhen requesting help. - Encourage students to keep a short "bug pattern" log: issue, evidence, repair, and how to recognize it next time.
当前收录版本
1.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对 MATLAB 学习者调试痛点提供结构化辅导流程
- 覆盖索引错误、数组形状、函数参数等高频问题场景
- 适用于教学实验室、课后辅导等多种教育环境
亮点
- 触发描述完整覆盖错误解读、测试失败、代码修复等变体
- 边界清晰,不易与其他 Skill 混淆
亮点
- Debugging Loop 八步法结构清晰,具备完整出口条件
- 包含 Coaching Rules 与 Bug Patterns 等实用参考模块
- frontmatter 完整,文档长度适中
待提升项
-
引用文件缺失 原报告严重程度:重大
SKILL.md 中引用了 references/debugging-patterns.md 文件,但该文件未包含在 Skill 包中
改进建议:请补充 references/debugging-patterns.md 文件,或移除该引用以避免用户困惑
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- www.mathworks.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。