MATLAB Slash Commands are available in multiple formats for different AI coding agents.
| Agent | Format | Directory | Commands |
|---|---|---|---|
| Claude Code | Plugin (markdown + YAML) | commands/ |
All 13 |
| GitHub Copilot | .prompt.md files |
copilot/prompts/ |
6 key commands |
| Cursor IDE | .mdc rules file |
cursor/rules/ |
Rules (not commands) |
| Any MCP agent | MCP server | External | Via MATLAB MCP Core Server |
Install via plugin system:
/plugin install github:matlab/slash-commandsAll 13 commands available as /matlab-* slash commands.
Copy prompt files to your repo:
cp -r copilot/prompts/ .github/prompts/Available as slash commands in Copilot Chat (VS Code, JetBrains).
/matlab-readme,/matlab-docs,/matlab-test/matlab-optimize,/matlab-check,/matlab-run
Copy rules to your project:
mkdir -p .cursor/rules
cp cursor/rules/matlab-development.mdc .cursor/rules/Provides always-on MATLAB context for .m, .mlx, and .mlapp files.
Copy the Cursor rules file to .windsurfrules at your project root.
Copy the Cursor rules file to .clinerules at your project root.
Create a custom agent JSON referencing the MATLAB MCP Core Server.
The MATLAB MCP Core Server provides live MATLAB capabilities (code execution, testing, analysis) to any MCP-compatible agent. This is the recommended way to add MATLAB integration across all agents.
Setup: See MCP Integration Guide.