Agent skill

Matlab Set Up Worker State

by matlab in matlab/matlab-agentic-toolkit

Set up worker environment and per-worker state for parallel pools.

Custom licenceAuto-check passedDevelopment

Install Matlab Set Up Worker State

skills CLI
$ npx skills add matlab/matlab-agentic-toolkit --skill matlab-set-up-worker-state -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install matlab/matlab-agentic-toolkit matlab-set-up-worker-state --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-catalog/parallel-computing/matlab-set-up-worker-state .claude/skills/matlab-set-up-worker-state && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
matlab-set-up-worker-state
GitHub stars
1.1k
Token cost
~3.2k tokens
SKILL.md length
1,312 words
Files
2
Skills in repo
151
Repo updated
First seen
Licence
Custom licence

At a glance

Set up worker environment and per-worker state for parallel pools.

  • Works in 3 steps: No cleanup guarantee — if the parfor… → Makes the pool fragile to worker… → Composite variables cannot be used…
  • Code needs paths
  • SKILL.md covers When to Use, When NOT to Use, Decision Framework and The spmd Anti-Pattern, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Matlab Set Up Worker State is an agent skill from matlab/matlab-agentic-toolkit. Set up worker environment and per-worker state for parallel pools. Use when code needs paths, environment variables, database connections, loaded libraries, or expensive objects available on workers before parfor/parfeval runs. Teaches parallel.pool.Constant, parfevalOnAll, and parpool name-value pairs. Also use when refactoring existing code that uses spmd for side-effect setup (an anti-pattern). Triggers: worker setup, pool constant, per-worker state, non-serializable, loadlibrary on workers, database…

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `manifest.yaml`).

It sits in Development, covering Secrets management and Refactoring. The repository describes itself as: The MATLAB Agentic Toolkit brings proven MATLAB capabilities to AI agents, making engineering and scientific workflows agent-ready.

When your agent uses it

  • Code needs paths
  • Environment variables
  • Database connections
  • Loaded libraries

Example prompts

  • “/matlab-set-up-worker-state”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. No cleanup guarantee — if the parfor errors, the second spmd never runs
  2. Makes the pool fragile to worker disconnection — once a pool has run an
  3. Composite variables cannot be used inside parfor — values created in

What it can do on your machine

Read from SKILL.md and the folder at commit 69e71df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are matlab).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • mathworks.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Matlab Set Up Worker State loads about 3.2k tokens when it runs. Until then it costs about 211 tokens; SKILL.md has 1,312 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~211
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,312 words (~3,201 tokens).

“By default, process workers in a parallel pool inherit MATLAB path state from their controlling client, but they do not inherit loaded libraries, open connections, or expensive pre-computed objects. Code that relies on any of these needs explicit setup. This…”

— opening of SKILL.md by matlab, Custom licence
name
matlab-set-up-worker-state
license
https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata.author
MathWorks
metadata.version
2.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in skills-catalog/parallel-computing/matlab-set-up-worker-state of matlab/matlab-agentic-toolkit.

  • SKILL.md
  • manifest.yaml

Open the folder on GitHubat commit 69e71df

Compare with similar skills

Matlab Set Up Worker State next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Matlab Set Up Worker State compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Matlab Set Up Worker State this skillmatlab/matlab-agentic-toolkit1.1k—~3.2kAutomated safety check: PassCustom licence
Finalizezifeo/lade133—~1kAutomated safety check: PassMPL-2.0
Azure Bicep Skilltimothywarner-org/claude-code224—~2.9kAutomated safety check: PassMIT
Guidelinesakash-network/node1.1k20 repos~577Automated safety check: PassMIT
Component Refactoringlangflow-ai/langflow155k—~3.5kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0

Similar skills

  • Finalize

    zifeo/lade

    Finalize a merge request: rebase onto main, run bugs, simplify, and specs in parallel, apply, then refactor last.

    133 GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Azure Bicep Skill

    timothywarner-org/claude-code

    A skill your agent uses when authoring, reviewing, or refactoring Azure Bicep code.

    224 GitHub stars~2.9k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 20 repos~577 tokens
    DevelopmentAuto-check passed
  • Component Refactoring

    langflow-ai/langflow

    Refactor high-complexity React components in Langflow frontend.

    155k GitHub stars~3.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed

More from matlab/matlab-agentic-toolkit

All 151 skills in this repo
  • Matlab Analyze Time Frequency Content

    matlab/matlab-agentic-toolkit

    Perform time-frequency analysis in MATLAB using CWT, STFT, synchrosqueezing, reassignment, wavelet coherence, cross spectrogram, EMD/VMD, multiresolution analysis, and time-frequency filtering.

    1.1k GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Matlab Design Radar

    matlab/matlab-agentic-toolkit

    Launch and control the MATLAB Radar Designer app programmatically via MCP.

    1.1k GitHub stars~4.8k tokensUpdated yesterday
    Auto-check passed
  • Matlab Engineer Tabular Features

    matlab/matlab-agentic-toolkit

    A skill your agent uses when engineering or selecting the best features for single-response classification or regression in MATLAB, whatever the data's modality — for non-tabular data it routes…

    1.1k GitHub stars~4.8k tokensUpdated yesterday
    Auto-check passed
  • Matlab Enhance Camera Image

    matlab/matlab-agentic-toolkit

    Read BEFORE troubleshooting or enhancing camera image quality.

    1.1k GitHub stars~3.8k tokensUpdated yesterday
    Auto-check passed
  • Matlab Import External AI Model

    matlab/matlab-agentic-toolkit

    Import PyTorch, ONNX, or Keras 3 / TensorFlow 2.16+ deep learning models into MATLAB as dlnetwork objects.

    1.1k GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Matlab Modernize Daq

    matlab/matlab-agentic-toolkit

    Port MATLAB Data Acquisition Toolbox code from the discouraged (legacy) session-based interface (daq.createSession, addAnalogInputChannel, startBackground, DataAvailable listeners, queueOutputData…

    1.1k GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Matlab Set Up Worker State

What does Matlab Set Up Worker State do?

Set up worker environment and per-worker state for parallel pools. Matlab Set Up Worker State is an agent skill from matlab/matlab-agentic-toolkit. Set up worker environment and per-worker state for parallel pools.

When should I use Matlab Set Up Worker State?

Matlab Set Up Worker State fits situations like: code needs paths; environment variables; database connections; loaded libraries.

How do I install Matlab Set Up Worker State in Claude Code?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-set-up-worker-state -a claude-code`. Or copy the skill folder (skills-catalog/parallel-computing/matlab-set-up-worker-state in matlab/matlab-agentic-toolkit) into .claude/skills/matlab-set-up-worker-state in your project. Claude Code loads it when a task matches its description.

How do I install Matlab Set Up Worker State in Codex?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-set-up-worker-state -a codex`. Or copy the skill folder (skills-catalog/parallel-computing/matlab-set-up-worker-state in matlab/matlab-agentic-toolkit) into .agents/skills/matlab-set-up-worker-state in your project. Codex loads it when a task matches its description.

Can I use Matlab Set Up Worker State in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-set-up-worker-state -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/matlab-set-up-worker-state, .gemini/skills/matlab-set-up-worker-state, .github/skills/matlab-set-up-worker-state and .opencode/skills/matlab-set-up-worker-state in your project.

What does Matlab Set Up Worker State need to run?

SKILL.md names no scripts, command-line tools or credentials: Matlab Set Up Worker State is instructions for the agent only.

Does Matlab Set Up Worker State access the network?

SKILL.md names 1 domain. As links in the text: mathworks.com. This is read from the text; nothing was executed.

Is Matlab Set Up Worker State safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Matlab Set Up Worker State use?

Matlab Set Up Worker State has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Matlab Set Up Worker State use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Matlab Set Up Worker State?

Skills that share tags, products or a category with Matlab Set Up Worker State: Finalize (zifeo/lade, 133 stars), Azure Bicep Skill (timothywarner-org/claude-code, 224 stars), Guidelines (akash-network/node, 1.1k stars) and Component Refactoring (langflow-ai/langflow, 155k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Matlab Set Up Worker State?

matlab (a GitHub organization) maintains it in matlab/matlab-agentic-toolkit, which has 1,144 GitHub stars. The repository holds 151 skills in this directory. The repository was last updated on October 8, 2026.

Source: matlab/matlab-agentic-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.