A community-driven collection of Claude Skills for MATLAB development. Skills are specialized instruction sets that extend Claude's capabilities for specific tasks, automatically activating when needed.
Skills are modular, portable capabilities that work across all Claude platforms:
- Composable: Skills stack together automatically when needed
- Portable: Write once, use everywhere (Claude.ai, Claude Desktop, Claude Code, API)
- Efficient: Only load when relevant to your current task
- Powerful: Combine instructions with executable code for reliable results
Skill ID: matlab-live-script
Creates properly formatted MATLAB plain text Live Scripts (.m files) with rich text documentation, equations, and visualizations. Automatically handles:
- Correct section formatting with
%[text]markers - LaTeX equation rendering with double backslashes
- Bulleted lists with proper termination
- Required appendix formatting
- Plot and figure management
- Code and documentation integration
When it activates: Creating MATLAB scripts, educational content, Live Scripts, or .m files with documentation.
Skill ID: matlab-test-generator
Creates comprehensive unit tests using the MATLAB Testing Framework. Generates test classes, test methods, and test suites following best practices:
- Class-based test structure with
matlab.unittest.TestCase - Proper test method naming and organization
- Comprehensive assertion methods (
verifyEqual,verifyError, etc.) - Parameterized tests for data-driven testing
- Setup and teardown methods for test fixtures
- Test tagging and selective execution
- Mock objects and performance testing
When it activates: Generating test files, test cases, unit tests, test suites, or when testing MATLAB code is requested.
Skill ID: matlab-performance-optimizer
Optimizes MATLAB code for better performance through vectorization, memory management, and profiling guidance:
- Vectorization of loops and operations
- Array preallocation strategies
- Memory optimization techniques (data types, sparse matrices)
- Profiling and benchmarking workflows
- Built-in function usage over manual implementations
- Parallel computing with
parforand GPU arrays - Algorithm-specific optimizations
- Performance pitfall identification
When it activates: User requests optimization, mentions slow code, performance issues, speed improvements, or asks to make code faster or more efficient.
Skill ID: matlab-uihtml-app-builder
Builds interactive web applications using HTML/JavaScript interfaces with MATLAB computational backends via the uihtml component:
- Bidirectional HTML-MATLAB communication patterns
- Event handling and data transfer strategies
- Security and input validation best practices
- Complete working examples (calculator, visualizer, forms)
- Modern UI design with CSS styling
- Error handling and debugging techniques
- Performance optimization for web apps
- Testing strategies for HTML/MATLAB integration
When it activates: Creating HTML-based MATLAB apps, JavaScript MATLAB interfaces, web UIs, interactive GUIs, or when user mentions uihtml, HTML, JavaScript, web apps, or web interfaces.
Recommended: Install all skills together as a plugin:
/plugin install github:matlab/skillsThis installs all MATLAB skills (matlab-live-script, matlab-test-generator, matlab-performance-optimizer, matlab-uihtml-app-builder) in one command. Skills automatically activate when Claude detects relevant tasks.
Alternative: Manually install to your personal skills directory:
# Clone the repository
git clone https://github.com/matlab/skills.git
# Copy all skills to your Claude skills directory
cp -r skills/skills/* ~/.claude/skills/Once installed, just ask Claude to "create a MATLAB Live Script" or "optimize this code" and the appropriate skill will load automatically.
Skills are available to Pro, Max, Team, and Enterprise users. Each skill must be uploaded separately as a ZIP file.
Uploading Skills:
- Navigate to Settings β Capabilities
- Enable Skills (Team/Enterprise admins must enable organization-wide first)
- Click Upload Skill for each skill you want to add
Creating ZIP Files:
Each skill requires a ZIP file with SKILL.md at the root level:
# Navigate to the skills directory
cd skills
# Create ZIP for each skill
zip -r matlab-live-script.zip matlab-live-script/SKILL.md
zip -r matlab-test-generator.zip matlab-test-generator/SKILL.md
zip -r matlab-performance-optimizer.zip matlab-performance-optimizer/SKILL.md
zip -r matlab-uihtml-app-builder.zip matlab-uihtml-app-builder/SKILL.mdUpload all ZIP files to get the complete MATLAB skills collection. Skills work transparently - Claude automatically uses them when appropriate.
Each skill must be uploaded separately as a ZIP file.
Uploading Skills:
- Open Settings β Capabilities
- Enable the Skills feature
- Click Upload Skill for each skill you want to add
Creating ZIP Files:
Each skill requires a ZIP file with SKILL.md at the root level:
# Navigate to the skills directory
cd skills
# Create ZIP for each skill
zip -r matlab-live-script.zip matlab-live-script/SKILL.md
zip -r matlab-test-generator.zip matlab-test-generator/SKILL.md
zip -r matlab-performance-optimizer.zip matlab-performance-optimizer/SKILL.md
zip -r matlab-uihtml-app-builder.zip matlab-uihtml-app-builder/SKILL.mdUpload all ZIP files to get the complete MATLAB skills collection. Skills integrate seamlessly with your desktop workflow.
Use the Skills API for programmatic control:
import anthropic
client = anthropic.Anthropic(api_key="your-api-key")
response = client.messages.create(
model="claude-sonnet-4-5-20250929",
max_tokens=4096,
skills=["matlab-live-script"],
messages=[
{"role": "user", "content": "Create a Live Script showing Fourier transforms"}
]
)Requirements:
- Skills API access (see API documentation)
- Code Execution Tool beta enabled
skills/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest for Claude Code
βββ skills/
β βββ matlab-live-script/ # Live Script generation skill
β β βββ SKILL.md
β βββ matlab-test-generator/ # Unit testing skill
β β βββ SKILL.md
β βββ matlab-performance-optimizer/ # Performance optimization skill
β β βββ SKILL.md
β βββ matlab-uihtml-app-builder/ # HTML/JavaScript app builder skill
β βββ SKILL.md
βββ README.md # This file
βββ CONTRIBUTING.md # Contribution guidelines
βββ LICENSE # MathWorks BSD-3-Clause License
We welcome contributions! Whether you want to:
- Add new MATLAB skills (code generation, debugging, testing, etc.)
- Improve existing skills
- Fix bugs or typos
- Suggest enhancements
Please see CONTRIBUTING.md for detailed guidelines.
- Fork this repository
- Create a new skill directory:
skills/your-skill-name/ - Add a
SKILL.mdfile with proper frontmatter - Test thoroughly with Claude Code
- Submit a pull request
- Official Skills Documentation
- Agent Skills Specification
- Anthropic Skills Repository
- Claude Code Plugin Guide
- matlab/prompts - AI coding prompts for MATLAB development
- anthropics/skills - Official Anthropic skills repository
This project is licensed under the MathWorks BSD-3-Clause License - see the LICENSE file for details.
Copyright (c) 2025, The MathWorks, Inc. All rights reserved.
- Issues: Report bugs or request features via GitHub Issues
- Discussions: Share ideas and ask questions in MATLAB Central GenAI Discussions Channel
Note: Skills require Claude models with Code Execution Tool support. Feature availability may vary by plan and platform.