Slash commands for MATLAB development workflows across multiple AI coding agents. Provides documentation generation, testing, optimization, code analysis, and live execution via MCP.
# MATLAB Slash Commands Slash commands for MATLAB development workflows across multiple AI coding agents. Provides documentation generation, testing, optimization, code analysis, and live execution via MCP. ## Multi-Agent Support | Agent | Format | Commands | Install | |-------|--------|----------|---------| | **Claude Code** | Plugin | All 13 | `/plugin install github:matlab/slash-commands` | | **GitHub Copilot** | `.prompt.md` | 6 key commands | Copy `cursor/prompts/` to `.github/prompts/` | | **Cursor IDE** | `.mdc` rules | Rules (always-on) | Copy `cursor/rules/` to `.cursor/rules/` | | **Any MCP agent** | MCP server | Via MATLAB MCP Core Server | See [MCP Guide](docs/mcp-integration.md) | ## MCP Integration When the [MATLAB MCP Core Server](https://github.com/matlab/matlab-mcp-core-server) is connected, commands gain live capabilities: | MCP Tool | What It Enables | |----------|----------------| | `check_matlab_code` | Real Code Analyzer diagnostics | | `evaluate_matlab_code` | Execute MATLAB expressions, benchmark code | | `run_matlab_file` | Run .m files and return output | | `run_matlab_test_file` | Execute test suites and report results | | `detect_matlab_toolboxes` | List installed toolboxes | All commands work without MCP. They generate code and instructions as before. MCP adds validation, execution, and measurement. See [MCP Integration Guide](docs/mcp-integration.md). ## Installation ### Claude Code (Full Support) ```bash /plugin install github:matlab/slash-commands ``` ### GitHub Copilot ```bash cp -r cursor/prompts/ .github/prompts/ ``` ### Cursor IDE ```bash mkdir -p .cursor/rules cp cursor/rules/matlab-development.mdc .cursor/rules/ ``` ### Manual / Development ```bash git clone https://github.com/matlab/slash-commands.git ``` ## Available Commands ### Core Commands | Command | Description | MCP Enhanced | |---------|-------------|:------------:| | `/matlab-readme` | Generate project README | Yes | | `/matlab-docs` | Document MA
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.