Skills

Matlab Share Content

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

Install

npx skills add matlab/matlab-agentic-toolkit --skill matlab-share-content -g -a claude-code -y
Category
AI and agents
Updated
8d ago
License
See repository
Context cost
Mediumabout 2,226 tokens
Runs scripts
No, instructions only

What it does

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.

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.

Read the whole SKILL.md on GitHub

More in AI and agents