# Matlab Share Content

Share MATLAB content by guiding users through uploading to GitHub, MATLAB Drive, or...

- Repository: https://github.com/matlab/matlab-agentic-toolkit (1237 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-10-27
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-share-content -g -a claude-code -y`
Codex: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-share-content -g -a codex -y`
Cursor: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-share-content -g -a cursor -y`
Gemini CLI: `npx skills add matlab/matlab-agentic-toolkit --skill matlab-share-content -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add matlab/matlab-agentic-toolkit`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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:

| Goal | Recommended Path | Why |
|------|-----------------|-----|
| Quick sharing or personal use | GitHub | Fully automated via CLI; works for public repos |
| Share with specific people (private) | MATLAB Drive | Supports access control; no public repo needed |
| Share with the MATLAB community | File Exchange | Discoverable by all MATLAB users; includes ratings/reviews |
| Embed in documentation/README | GitHub | Supports 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.

The rest: https://github.com/matlab/matlab-agentic-toolkit/blob/HEAD/skills-catalog/cloud-solutions/matlab-share-content/SKILL.md
