{"id":32819335,"url":"https://github.com/matlab/slash-commands","last_synced_at":"2026-06-24T22:32:01.521Z","repository":{"id":321796749,"uuid":"1087244283","full_name":"matlab/slash-commands","owner":"matlab","description":"Slash commands for MATLAB development workflows across multiple AI coding agents. Provides documentation generation, testing, optimization, code analysis, and live execution via MCP.","archived":false,"fork":false,"pushed_at":"2026-03-25T01:49:42.000Z","size":76,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-26T08:09:58.073Z","etag":null,"topics":["agentic-engineering","cursor","github-copilot","matlab","matlab-commands","matlab-slash-commands","slash-commands"],"latest_commit_sha":null,"homepage":"https://www.mathworks.com/matlabcentral/discussions/ai","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-31T15:40:28.000Z","updated_at":"2026-03-25T01:51:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matlab/slash-commands","commit_stats":null,"previous_names":["matlab/slash-commands"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matlab/slash-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fslash-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fslash-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fslash-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fslash-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab","download_url":"https://codeload.github.com/matlab/slash-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab%2Fslash-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-engineering","cursor","github-copilot","matlab","matlab-commands","matlab-slash-commands","slash-commands"],"created_at":"2025-11-07T13:01:31.454Z","updated_at":"2026-06-24T22:32:01.516Z","avatar_url":"https://github.com/matlab.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATLAB Slash Commands\n\nSlash commands for MATLAB development workflows across multiple AI coding agents. Provides documentation generation, testing, optimization, code analysis, and live execution via MCP.\n\n## Multi-Agent Support\n\n| Agent | Format | Commands | Install |\n|-------|--------|----------|---------|\n| **Claude Code** | Plugin | All 13 | `/plugin install github:matlab/slash-commands` |\n| **GitHub Copilot** | `.prompt.md` | 6 key commands | Copy `copilot/prompts/` to `.github/prompts/` |\n| **Cursor IDE** | `.mdc` rules | Rules (always-on) | Copy `cursor/rules/` to `.cursor/rules/` |\n| **Any MCP agent** | MCP server | Via MATLAB MCP Core Server | See [MCP Guide](docs/mcp-integration.md) |\n\n## MCP Integration\n\nWhen the [MATLAB MCP Core Server](https://github.com/matlab/matlab-mcp-core-server) is connected, commands gain live capabilities:\n\n| MCP Tool | What It Enables |\n|----------|----------------|\n| `check_matlab_code` | Real Code Analyzer diagnostics |\n| `evaluate_matlab_code` | Execute MATLAB expressions, benchmark code |\n| `run_matlab_file` | Run .m files and return output |\n| `run_matlab_test_file` | Execute test suites and report results |\n| `detect_matlab_toolboxes` | List installed toolboxes |\n\nAll 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).\n\n## Installation\n\n### Claude Code (Full Support)\n\n```bash\n/plugin install github:matlab/slash-commands\n```\n\n### GitHub Copilot\n\n```bash\ncp -r copilot/prompts/ .github/prompts/\n```\n\n### Cursor IDE\n\n```bash\nmkdir -p .cursor/rules\ncp cursor/rules/matlab-development.mdc .cursor/rules/\n```\n\n### Manual / Development\n\n```bash\ngit clone https://github.com/matlab/slash-commands.git\n```\n\n## Available Commands\n\n### Core Commands\n\n| Command | Description | MCP Enhanced |\n|---------|-------------|:------------:|\n| `/matlab-readme` | Generate project README | Yes |\n| `/matlab-docs` | Document MATLAB functions | Yes |\n| `/matlab-livescript` | Create formatted Live Scripts | Yes |\n| `/matlab-check` | Run Code Analyzer on code | **MCP** |\n| `/matlab-run` | Execute MATLAB code or files | **MCP** |\n\n### Testing Commands\n\n| Command | Description | MCP Enhanced |\n|---------|-------------|:------------:|\n| `/matlab-test` | Generate unit tests | Yes |\n| `/matlab-property-test` | Create property-based tests | Yes |\n| `/matlab-run-tests` | Run test suite and report results | **MCP** |\n\n### Quality Commands\n\n| Command | Description | MCP Enhanced |\n|---------|-------------|:------------:|\n| `/matlab-optimize` | Optimize code performance | Yes |\n| `/matlab-errors` | Add error handling and validation | Yes |\n\n### Development Commands\n\n| Command | Description | MCP Enhanced |\n|---------|-------------|:------------:|\n| `/matlab-explain` | Explain code functionality | Yes |\n| `/matlab-refine` | Refine requirements into specs | Yes |\n| `/matlab-toolboxes` | Detect installed toolboxes | **MCP** |\n\n**MCP Enhanced** = works without MCP but gains live capabilities with it\n**MCP** = primarily designed for MCP, with static fallback\n\n## Quick Start\n\n### Generate and Validate Tests (with MCP)\n```\n/matlab-test myFunction        # Generate tests\n/matlab-run-tests              # Run them via MCP, see pass/fail\n```\n\n### Optimize with Real Benchmarks (with MCP)\n```\n/matlab-optimize               # Optimizes and benchmarks before/after\n```\n\n### Full Development Pipeline\n```\n/matlab-refine \"process sensor data\"    # Clarify requirements\n/matlab-test processData                # Generate tests\n/matlab-check processData.m            # Run Code Analyzer\n/matlab-optimize                        # Optimize performance\n/matlab-errors                          # Add error handling\n/matlab-docs processData               # Generate documentation\n/matlab-readme                          # Generate project README\n```\n\n## Documentation\n\n- [Command Reference](docs/command-reference.md): Reference for all 13 commands\n- [MCP Integration Guide](docs/mcp-integration.md): Setup and usage with MATLAB MCP Core Server\n- [Cross-Agent Support](docs/cross-agent-support.md): Using commands with Copilot, Cursor, etc.\n- [Usage Guide](docs/usage-guide.md): Development patterns and best practices\n- [Installation Guide](docs/installation.md): Setup instructions for all agents\n- [Examples](examples/): Complete workflow examples\n\n## Requirements\n\n- An AI coding agent (Claude Code, GitHub Copilot, Cursor, or any MCP-compatible agent)\n- MATLAB development environment (for running generated code)\n- Optional: [MATLAB MCP Core Server](https://github.com/matlab/matlab-mcp-core-server) for live execution\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on adding commands, improving existing ones, and maintaining cross-agent formats.\n\n## License\n\nBSD 3-Clause License. See [LICENSE](LICENSE).\n\nCopyright (c) 2025, The MathWorks, Inc.\n\n## Related Projects\n\n- [matlab/matlab-mcp-core-server](https://github.com/matlab/matlab-mcp-core-server): MATLAB MCP server for AI agent integration\n- [matlab/prompts](https://github.com/matlab/prompts): MATLAB prompts for AI assistants and copilots\n- [matlab/skills](https://github.com/matlab/skills): Agents Skills for MATLAB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab%2Fslash-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab%2Fslash-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab%2Fslash-commands/lists"}