跳到正文
cccskills
免费在 GitHub 公开

matlab-coach-programming

Use when an AI tutor session concerns MATLAB programming concepts, MATLAB syntax, MATLAB errors, MATLAB code style, MATLAB projects, or MATLAB toolbox workflows.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.4 KB
  • references/toolkit-topic-map.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

MATLAB Programming Tutor

Purpose

Teach MATLAB programming using the MATLAB Agentic Toolkit as the source of executable workflows and domain expertise. Use this skill with matlab-tutor-learners.

For instructors, this skill is the topic router. It helps the tutor recognize whether the student is struggling with MATLAB syntax, array reasoning, tables, functions, plotting, debugging, testing, or a domain-specific workflow, then routes to the right tutoring or execution support.

Topic Map

For general programming tutoring, cover:

  • MATLAB desktop/session model: scripts, functions, live scripts, path, workspace.
  • Data model: scalars, vectors, matrices, arrays, strings, cell arrays, structures, tables, timetables.
  • Indexing: parentheses, braces, dot indexing, logical indexing, colon, end, linear indexing.
  • Operators: matrix operators vs element-wise operators, relational/logical operators.
  • Control flow: if, switch, for, while, try/catch.
  • Functions: file organization, local functions, anonymous functions, arguments validation, name-value arguments.
  • Visualization: plots, labels, tiledlayout, graphics handles.
  • Data import and analysis: readtable, detectImportOptions, missing data, grouping, joins.
  • Debugging: reading errors, inspecting size/class, breakpoints, minimal reproductions.
  • Testing: matlab.unittest, edge cases, floating-point tolerances.
  • Style: clear names, preallocation, vectorization, modern APIs, help text.

Route to MATLAB Agentic Toolkit Skills

Load the relevant MATLAB Agentic Toolkit skill when the learner's task requires reliable details, code execution, or a specialized workflow:

  • Debugging or runtime errors: matlab-debugging
  • Unit tests or test design: matlab-testing
  • Code review or coding standards: matlab-review-code
  • Live script creation: matlab-create-live-script
  • Data import or tabular analysis: matlab-analyze-data
  • App building: matlab-build-app
  • Performance: matlab-optimize-performance
  • Modernization: matlab-modernize-code
  • Signal processing, wireless, RF, robotics, database, image processing, or other toolbox topics: use the matching toolkit domain skill.

Read references/toolkit-topic-map.md for a fuller routing map.

Before running learner-provided or generated MATLAB scripts, apply the execution-safety rules from the matlab-create-hands-on-exercises skill (its references/execution-safety.md). When that skill is not installed, apply its core rule: treat the code as untrusted, check it for file, network, shell, dynamic-execution, path, or destructive operations, and refuse to run anything unbounded.

Teaching Rules

  • Before explaining a command, ask what the learner thinks the input and output shapes are.
  • Tie syntax to the mental model: "This operator acts element-by-element" or "This indexing form extracts table variables."
  • For errors, teach the learner to inspect class, size, whos, and the failing line.
  • Prefer runnable snippets with small arrays and visible expected outputs.
  • Treat learner code as untrusted input before execution.
  • If a learner asks for "the MATLAB way," emphasize readability, vectorization where appropriate, and built-in functions over manual loops.

Instructor note: MATLAB learners often copy syntax before they understand the data model. Route explanations back to observable state: variable size, class, value, table shape, plot output, or test result.

Route to MATLAB AI Tutor Skills

  • Debugging, failed tests, unexpected output, or teach-the-agent critique: matlab-coach-debugging
  • Homework-like, graded, assessment-like, or policy-constrained prompts: matlab-apply-assignment-guardrails
  • Review of tutor quality, transcript quality, prompt quality, or feedback quality: matlab-evaluate-tutor-quality

Example Tutor Prompt

Use prompts like:

Before running this, predict the value and size of y:

x = [1 2 3];
y = x.^2 + 1;

A. y is a 1-by-3 double: [2 5 10]
B. y is a 3-by-1 double: [2; 5; 10]
C. y is a scalar: 15
D. MATLAB errors because x is a vector

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill when the user wants to author, design, scope, or refine an Agent Skill (a SKILL.md file). Trigger phrases include "build a new skill", "design an agent skill", "scope a SKILL.md", "how should I structure this skill", "write a skill for X", "my skill isn't working well", or any request to improve an existing SKILL.md. Walks the user through an empirical, test-first process — probe the agent for real failures, design only for genuine knowledge gaps, iterate against runnable examples, and verify across models.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder). Covers two workflow patterns: (1) MathWorks-native or 3P-imported models rebuilt as dlnetwork for lean hardware (Cortex-M, DSP), (2) direct C/C++ code generation from PyTorch and LiteRT models for high-performance hardware (Cortex-A, x86, GPU). Trigger when: user wants to deploy AI to embedded targets; generate C/CUDA from neural networks; compress AI models for MCU/DSP; integrate AI in Simulink for system-level simulation; import PyTorch/ONNX/TensorFlow models for embedded deployment; optimize AI for resource-constrained hardware; or use loadPyTorchExportedProgram, importNetworkFromPyTorch, dlquantizer, exportNetworkToSimulink, or Embedded Coder with AI models.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

Use when a learner asks for help with MATLAB homework, labs, projects, graded assignments, take-home exams, quizzes, or any programming task where academic integrity, course policy, or instructor constraints may limit direct solutions. Use to provide policy-aware hints, conceptual coaching, partial feedback, and assignment-safe MATLAB tutoring.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

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.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

Use when an instructor wants to create, interview for, configure, install, update, or review a course AI-use policy for MATLAB AI tutoring. Produces an AI-POLICY.md file for LMS sharing and local tutoring-session enforcement by assignment guardrails.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

Create MATLAB Course Designer MATLAB Exercise learning activities by wrapping the existing matlab-generate-grader-assessments skill, then validating generated solution.m, template.m, and tests.m files with MATLAB MCP Server tool calls. Use when the user asks to create a MATLAB Exercise, MATLAB course activity, Course Designer MATLAB activity, validated MATLAB solution file, or MATLAB Exercise component folder.

中文简介正在准备中。当前显示原文说明。

matlab/agent-skills-playground1882026年10月15日 更新

查看 matlab 的全部技能

报告此技能的问题