Matlab Share Content logo

Matlab Share Content

OrganizationPopular
matlab
matlab-share-content

Share MATLAB content by guiding users through uploading to GitHub, MATLAB Drive, or File Exchange, then generating "Open in MATLAB Online" URLs. Covers the full sharing workflow: choosing a platform, uploading content (automated via gh CLI for GitHub, manual for MATLAB Drive and File Exchange), and constructing the correct URL. Use when a user wants to share MATLAB code with others, open local files in MATLAB Online, generate an open-in-MATLAB-Online button or badge, or when an AI agent has generated MATLAB code locally and the user wants to share it or run it in MATLAB Online.

Overview

Publishermatlab
Repositorymatlab-agentic-toolkit
Skill namematlab-share-content
Stars
1.2K
Forks
138
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by matlab on GitHub. Read the source before you install it.

Installation

Install the Matlab Share Content AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/cloud-solutions/matlab-share-content
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/matlab-agentic-toolkit.git /tmp/matlab-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/matlab-agentic-toolkit/skills-catalog/cloud-solutions/matlab-share-content .claude/skills/matlab-share-content
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Matlab Share Content in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Matlab Share Content on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Matlab Share Content is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Sharing MATLAB Content

Share MATLAB content by uploading to GitHub, MATLAB Drive, or File Exchange, then generating "Open in MATLAB Online" URLs that let recipients open the content directly in a browser.

When to Use

  • User has local MATLAB files and wants to open them in MATLAB Online
  • User wants to share MATLAB code via a link that opens in MATLAB Online
  • AI agent generated MATLAB code locally and user wants to run/open it in MATLAB Online
  • User asks for an "Open in MATLAB Online" link, button, or badge
  • User has content on GitHub/MATLAB Drive/File Exchange and wants the direct-open URL

When NOT to Use

  • User wants to try out MATLAB code without needing to upload anywhere
  • User is asking about MATLAB Online features, licensing, or account setup
  • User wants to run MATLAB code interactively in MATLAB Online without generating a shareable link

Workflow

1. Identify the starting point

Ask what the user has:

  • Local files only → they need to upload first, then generate the URL
  • Already on GitHub → skip to URL generation (GitHub path)
  • Already on MATLAB Drive with a share link → skip to URL generation (Drive path)
  • Already on File Exchange → skip to URL generation (File Exchange path)

2. Help choose a path

If the user hasn't uploaded yet, recommend based on their goal:

GoalRecommended PathWhy
Quick sharing or personal useGitHubFully automated via CLI; works for public repos
Share with specific people (private)MATLAB DriveSupports access control; no public repo needed
Share with the MATLAB communityFile ExchangeDiscoverable by all MATLAB users; includes ratings/reviews
Embed in documentation/READMEGitHubSupports badge images in markdown

3. Guide the upload

Follow the appropriate path below.

4. Generate the URL

Use the exact templates in the URL Templates section. Present the final URL to the user.

If the user has multiple files, generate a separate URL for each file they want to open. To open all files at once:

  • GitHub: omit the file param — clones the entire repo without opening a specific file
  • MATLAB Drive: set file=/ — opens the shared folder
  • File Exchange: omit the file param — opens the full submission

5. Optionally generate a badge (GitHub path only)

If the user wants a clickable button for a README:

markdown
[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](URL_HERE)

URL Templates

GitHub

https://matlab.mathworks.com/open/github/v1?repo=<owner>/<repo>&file=<relative-path>
ParameterRequiredDescription
repoYesowner/reponame (no https://github.com/ prefix)
hostNoGitHub host (default: github.com). Required for GitHub Enterprise (e.g., github.mathworks.com)
fileNoSpecific file to open after clone
projectNoMATLAB project file to open (e.g., myProject.prj)
lineNoLine number to navigate to
focusNoSet to true to open in focused editor view

There is NO branch or tag parameter. The URL always clones the default branch.

URL generator tool: Users can also generate these URLs interactively at https://www.mathworks.com/products/matlab-online/git.html

MATLAB Drive

https://matlab.mathworks.com/open/matlabdrive/v1?namespace=SHARED&id=<share-uuid>&file=<filename>
ParameterRequiredDescription
namespaceYesAlways SHARED for shared content
idYesUUID from the share link
fileYesFilename from the share link

The host parameter is optional — it defaults to gds.mathworks.com if omitted.

File Exchange

https://matlab.mathworks.com/open/fileexchange/v1?id=<submission-id>
ParameterRequiredDescription
idYesNumeric submission ID from the File Exchange URL
fileNoSpecific file to open after download
projectNoMATLAB project file to open
versionNoSpecific version of the submission
lineNoLine number to navigate to
focusNoSet to true to open in focused editor view

GitHub Path: Step-by-Step

This is the only path with full CLI automation.

Before running any commands, verify the gh CLI is installed and authenticated:

  1. Check installation: gh --version
  2. Check authentication: gh auth status

If gh is not installed, guide the user to install it (e.g., brew install gh on macOS, or visit https://cli.github.com). If not authenticated, have the user run gh auth login before proceeding.

If the user has local files not yet on GitHub, run these commands for them:

bash
# 1. Initialize and commit
git init my-project
cd my-project
cp /path/to/your/file.m .
git add .
git commit -m "Add MATLAB code"

# 2. Create public repo and push
gh repo create my-project --public --source=. --push

Before running step 2, warn the user explicitly: creating a --public repo makes the code visible to anyone on the internet. Ask them to confirm they are comfortable making the code public and to review the files being pushed. Only proceed with their explicit permission.

Once the repo exists (either just created or already on GitHub), construct the Open in MATLAB Online URL using the repo name and file path:

https://matlab.mathworks.com/open/github/v1?repo=<owner>/<repo>&file=<filename>

Present this final URL to the user.

MATLAB Drive Path: Step-by-Step

There is no CLI for MATLAB Drive. MATLAB Drive sharing only works at the folder level — individual files cannot be shared directly. The user uploads all files into a folder, shares the folder, and the resulting share link targets a specific file within that folder.

Give the user these instructions:

  1. Go to https://drive.mathworks.com/
  2. Create a folder in MATLAB Drive
  3. Upload all file(s) into that folder
  4. Right-click the folder → Share → Create Link
  5. Copy the share link and provide it back

Once the user provides the share link, extract the UUID and filename from it. The share link format is:

https://drive.matlab.com/sharing/<uuid>/<filename>

Then construct the Open in MATLAB Online URL:

https://matlab.mathworks.com/open/matlabdrive/v1?namespace=SHARED&id=<uuid>&file=<filename>

The same UUID can be used to open other files in the shared folder — just change the file parameter. To open the entire folder, set file=/.

Present this final URL to the user.

File Exchange Path: Step-by-Step

There is no CLI for File Exchange.

Give the user these instructions:

  1. Go to https://www.mathworks.com/matlabcentral/fileexchange/
  2. Sign in and publish the submission
  3. After publishing, provide the submission ID or the File Exchange page URL

Once the user provides the submission ID or URL, extract the numeric ID. The File Exchange URL format is:

https://www.mathworks.com/matlabcentral/fileexchange/<ID>-<title-slug>

Then construct the Open in MATLAB Online URL:

https://matlab.mathworks.com/open/fileexchange/v1?id=<ID>

To open a specific file within the submission, add the file parameter:

https://matlab.mathworks.com/open/fileexchange/v1?id=<ID>&file=<filename>

Omitting file opens the full submission.

Present this final URL to the user.

Common Mistakes

MistakeWhy It's WrongCorrect Approach
Adding &branch=main to GitHub URLParameter doesn't exist; URL always clones default branchOmit branch — only repo, file, and project are valid
Using /open/drive/v1 for MATLAB DriveWrong path segmentUse /open/matlabdrive/v1
Using ?sharing=<uuid> for MATLAB DriveWrong parameter formatUse ?namespace=SHARED&id=<uuid>&file=...
Omitting namespace for Drive URLsURL won't resolve without itAlways include namespace=SHARED
Including https://github.com/ in the repo paramFormat is owner/repo onlyStrip the domain: aanithap/my-project not https://github.com/aanithap/my-project
Suggesting email or cloud storageDoesn't give an "Open in MATLAB Online" experienceUse one of the 3 supported paths

Conventions

  • Always present all 3 options when the user hasn't decided on an upload path
  • Always use the exact URL templates — do not guess or interpolate URL patterns
  • For GitHub: recommend --public for shareable links (private repos require auth)
  • Never suggest a branch or tag parameter for GitHub URLs
  • URL-encode file paths that contain spaces or special characters (e.g., My File.m → My%20File.m)

Copyright 2026 The MathWorks, Inc.


Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Matlab Share Content AI skill do?

Share MATLAB content by guiding users through uploading to GitHub, MATLAB Drive, or File Exchange, then generating "Open in MATLAB Online" URLs. Covers the full sharing workflow: choosing a platform, uploading content (automated via gh CLI for GitHub, manual for MATLAB Drive and File Exchange), and constructing the correct URL. Use when a user wants to share MATLAB code with others, open local files in MATLAB Online, generate an open-in-MATLAB-Online button or badge, or when an AI agent has generated MATLAB code locally and the user wants to share it or run it in MATLAB Online.

Why use Matlab Share Content on TypingMind?

Because you install it once and use it with any model. Matlab Share Content is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Matlab Share Content in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/cloud-solutions/matlab-share-content. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Matlab Share Content?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Matlab Share Content?

As many as you like. As long as a model supports skills, you can use Matlab Share Content with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Matlab Share Content AI skill free?

It is published on GitHub by matlab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇