/ Verzeichnis / Playground / skills
● Offiziell matlab ⚡ Sofort

skills

von 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.

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

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

Installieren

Wählen Sie Ihren Client

~/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
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

~/.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 nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

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

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "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
    }
  }
}

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

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

Continue nutzt ein Array von Serverobjekten statt einer Map.

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

In context_servers hinzufügen. Zed lädt beim Speichern neu.

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

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: 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

Wann einsetzen: Any MATLAB authoring task — from scripts to toolboxes.

Voraussetzungen
  • MATLAB R2023b+ recommended — mathworks.com/products/matlab.html
  • Skill cloned — git clone https://github.com/matlab/skills ~/.claude/skills/skills
Ablauf
  1. Describe the task
    Write a function that computes the moving-window correlation of two time series — MATLAB, idiomatic.✓ Kopiert
    → Vectorized implementation, correct function signature, docstring
  2. Ask for tests
    Add MATLAB unit tests using matlab.unittest.✓ Kopiert
    → 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?✓ Kopiert
    → tic/toc or profile() suggestions, preallocation hints

Ergebnis: Idiomatic, fast, tested MATLAB code.

Fallstricke
  • Claude reaches for Python-style loops — Explicitly ask for vectorized form; reference MATLAB docs style
Kombinieren mit: filesystem

Port a Python/NumPy script to MATLAB correctly

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

Wann einsetzen: You have a NumPy prototype and need a clean MATLAB equivalent.

Ablauf
  1. Share the Python
    Port this NumPy script to MATLAB. Preserve numerical behavior — flag where semantics differ.✓ Kopiert
    → 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.✓ Kopiert
    → A small cross-check script

Ergebnis: MATLAB port with documented semantic differences.

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

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

skills-skill-4 + filesystem

Work across a MATLAB Projects folder structure

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

Open PRs for MATLAB codebases with proper test coverage

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

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
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

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
none
Tokens pro Aufruf
~3–10k per task
Kosten in €
free; MATLAB license sold separately
Tipp
Constrain to a specific toolbox when asking — reduces context

Sicherheit

Rechte, Secrets, Reichweite

Credential-Speicherung: none
Datenabfluss: none

Fehlerbehebung

Häufige Fehler und Lösungen

Generated code uses a toolbox you don't have licensed

Tell Claude which toolboxes are available.

Prüfen: ver in MATLAB
Script errors in older MATLAB

Specify your MATLAB release; skill adapts suggestions.

Prüfen: version in MATLAB

Alternativen

skills vs. andere

AlternativeWann stattdessenKompromiss
jupyterYou're really doing Python science and only occasionally MATLABDifferent ecosystem

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen