/ Diretório / Playground / skills
● Oficial matlab ⚡ Instantâneo

skills

por matlab · matlab/skills

Official MathWorks Agent Skills for MATLAB — makes Claude actually write idiomatic MATLAB instead of generic numeric code.

A curated set of Agent Skills from matlab/skills that activate when Claude is doing MATLAB work: language idioms, toolbox-aware patterns, MATLAB Projects layout, test frameworks, and performance tips. Because it's published by MathWorks, it encodes current best practices rather than Stack-Overflow-of-2012 habits.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

skills-skill-4.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "skills-skill-4": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/matlab/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "skills-skill-4": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/matlab/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "skills-skill-4": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/matlab/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "skills-skill-4": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/matlab/skills",
        "~/.claude/skills/skills"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "skills-skill-4",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/matlab/skills",
        "~/.claude/skills/skills"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "skills-skill-4": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/matlab/skills",
          "~/.claude/skills/skills"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add skills-skill-4 -- git clone https://github.com/matlab/skills ~/.claude/skills/skills

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: skills

How to get Claude to write idiomatic MATLAB, not MATLAB-flavored Python

👤 MATLAB developers who noticed Claude defaulting to loops everywhere ⏱ ~25 min intermediate

Quando usar: Any MATLAB authoring task — from scripts to toolboxes.

Pré-requisitos
  • MATLAB R2023b+ recommended — mathworks.com/products/matlab.html
  • Skill cloned — git clone https://github.com/matlab/skills ~/.claude/skills/skills
Fluxo
  1. Describe the task
    Write a function that computes the moving-window correlation of two time series — MATLAB, idiomatic.✓ Copiado
    → Vectorized implementation, correct function signature, docstring
  2. Ask for tests
    Add MATLAB unit tests using matlab.unittest.✓ Copiado
    → Tests in a separate file following MATLAB Test conventions
  3. Profile
    If this is called in a tight loop, how would you profile and speed it up?✓ Copiado
    → tic/toc or profile() suggestions, preallocation hints

Resultado: Idiomatic, fast, tested MATLAB code.

Armadilhas
  • Claude reaches for Python-style loops — Explicitly ask for vectorized form; reference MATLAB docs style
Combine com: filesystem

Port a Python/NumPy script to MATLAB correctly

👤 Engineers moving research code into a MATLAB pipeline ⏱ ~30 min intermediate

Quando usar: You have a NumPy prototype and need a clean MATLAB equivalent.

Fluxo
  1. Share the Python
    Port this NumPy script to MATLAB. Preserve numerical behavior — flag where semantics differ.✓ Copiado
    → Translated code + explicit notes on 1-indexing, broadcasting, default dtypes
  2. Verify with a test
    Write a side-by-side test that shows both produce the same outputs on known inputs.✓ Copiado
    → A small cross-check script

Resultado: MATLAB port with documented semantic differences.

Armadilhas
  • Off-by-one from zero- vs one-indexing — Claude should call these out; if not, re-ask

Combinações

Combine com outros MCPs para 10× de alavancagem

skills-skill-4 + filesystem

Work across a MATLAB Projects folder structure

Read +mytools/, add a new function, and update the tests package.✓ Copiado
skills-skill-4 + github

Open PRs for MATLAB codebases with proper test coverage

Open a PR that adds the new function + tests.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
matlab-authoring task description Any MATLAB task 0
matlab-testing function under test After authoring 0
perf-guidance slow code + context When something is too slow 0

Custo e limites

O que custa rodar

Cota de API
none
Tokens por chamada
~3–10k per task
Monetário
free; MATLAB license sold separately
Dica
Constrain to a specific toolbox when asking — reduces context

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: none
Saída de dados: none

Solução de problemas

Erros comuns e correções

Generated code uses a toolbox you don't have licensed

Tell Claude which toolboxes are available.

Verificar: ver in MATLAB
Script errors in older MATLAB

Specify your MATLAB release; skill adapts suggestions.

Verificar: version in MATLAB

Alternativas

skills vs. outros

AlternativaQuando usarTroca
jupyterYou're really doing Python science and only occasionally MATLABDifferent ecosystem

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills