Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

matlab-live-scriptmatlab 实时脚本

Agent Skill

matlab-live-script 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

988

周安装

42

GitHub Stars

74

下载量

346
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:matlab-live-script(matlab 实时脚本)
来源仓库:https://github.com/matlab/skills
仓库路径:skills/matlab-live-script
安装命令:
npx skills add https://github.com/matlab/skills --skill matlab-live-script
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/matlab/skills --skill matlab-live-script

简介

matlab-live-script 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行信息整理。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认权限范围和维护状态。
  • 建议结合原始 README 核验具体用法,注意是否会触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

MATLAB Plain Text Live Script Generator

This skill provides comprehensive guidelines for creating properly formatted MATLAB plain text Live Scripts. These scripts combine executable MATLAB code with rich text documentation in a single.m file.

When to Use This Skill

  • Creating new MATLAB Live Scripts in plain text format
  • Generating educational MATLAB content with explanations
  • When the user requests.m files with documentation
  • Converting code examples into Live Script format
  • Creating tutorial or example scripts

Critical Rules

File Format

  • ALWAYS use the.m suffix for plain text Live Scripts
  • NEVER create.mlx scripts (binary format)
  • MUST close every script with the required appendix

Required Appendix

Every Live Script must end with this exact formatting:

%[appendix]{"version":"1.0"}
%---
%[metadata:view]
%   data: {"layout":"inline"}
%---

Reading Live Scripts (Token Optimization)

When reading a Live Script file to pass back to the language model, you can save significant token count by ignoring everything below the appendix marker (which begins with %[appendix]). This optimization avoids passing large embedded images that are stored in the appendix section. All working code and text content appears before the appendix, so no functional information is lost.

Formatting Rules

Section Headers

CORRECT format:

%%
%[text] ## Section Title

INCORRECT format (DO NOT USE):

%% Section Title

Rich Text

  • Normal text uses %[text] prefix
  • Text intended for a single paragraph should appear on a single line
  • Use Markdown formatting after %[text]
  • DO NOT leave blank lines in the file

Bulleted Lists

Bulleted lists must have a backslash on the last item:

%[text] - bullet 1
%[text] - bullet 2
%[text] - bullet 3 \

Tables

%[text:table]
%[text] | Column A | Column B |
%[text] | --- | --- |
%[text] | Value 1 | Value 2 |
%[text] | Value 3 | Value 4 |
%[text:table]

LaTeX Equations

Format equations with double backslashes:

%[text] $ e = \\sum_{\\alpha=0}^\\infty \\alpha^n/n! $

Note: All backslashes in LaTeX must be doubled.

Comments for Readers

DO NOT use fprintf for reader comments:

fprintf('This is a comment')  % WRONG

Instead use rich text:

%[text] This is a comment  % CORRECT

Code Guidelines

Figures and Plots

  • Use implicit figure creation (just call plot, histogram, etc.)
  • DO NOT use the figure command to create new figures
  • Put no more than one plot per section (unless using tiled layouts)
  • Only use tiled plots when especially important to the illustration

Script Initialization

  • DO NOT start scripts with close all or clear commands
  • Let MATLAB handle workspace management

Complete Example

%[text] # Sinusoidal Signals
%[text] Examples of sinusoidal signal in MATLAB.
%[text] - sine waves
%[text] - cosine waves \
x = linspace(0,8*pi);
%%
%[text] ## Sine Wave
plot(x,sin(x))
title('Sine Wave')
xlabel('x (radians)')
ylabel('sin(x)')
grid on
%%
%[text] ## Cosine Wave
plot(x,cos(x))
title('Cosine Wave')
xlabel('x (radians)')
ylabel('cos(x)')
grid on
%[text]

%[appendix]{"version":"1.0"}
%---
%[metadata:view]
%   data: {"layout":"inline"}
%---

Structure Pattern

A typical Live Script follows this pattern:

  1. Title and Introduction %[text] # Main Title %[text] Brief description of what this script does.
  2. Setup Code (if needed) variable = value; data = load('file.mat');
  3. Sections with Explanations %% %[text] ## Section Name %[text] Explanation of what this section does. code_goes_here(); plot(results)
  4. Required Appendix %[appendix]{"version":"1.0"} %--- %[metadata:view] % data: {"layout":"inline"} %---

Common Patterns

Mathematical Explanations with Equations

%[text] ## Theory
%[text] The discrete Fourier transform is defined as:
%[text] $ X(k) = \\sum_{n=0}^{N-1} x(n)e^{-j2\\pi kn/N} $

Code with Inline Comments

%%
%[text] ## Data Processing
%[text] First, we load and filter the data.
data = load('measurements.mat');
filtered = lowpass(data, 0.5);  % Apply lowpass filter
%[text] Then we visualize the results.
plot(filtered)
title('Filtered Data')

Multiple Related Plots (Tiled Layout)

Only when necessary for comparison:

%%
%[text] ## Comparison of Methods
tiledlayout(1,2)
nexttile
plot(method1)
title('Method 1')
nexttile
plot(method2)
title('Method 2')

Checklist

Before finishing a Live Script, verify:

  • File has.m extension
  • Sections use %% followed by %[text] ##
  • No blank lines in the file
  • Bulleted lists end with backslash
  • LaTeX uses double backslashes
  • No figure commands
  • No close all or clear at start
  • Appendix is present and correctly formatted
  • No fprintf for comments (use %[text] instead)

Troubleshooting

Issue: Script doesn't display rich text properly

  • Solution: Ensure %[text] is at the start of each text line

Issue: Equations not rendering

  • Solution: Check that all backslashes are doubled in LaTeX

Issue: Sections not appearing correctly

  • Solution: Use %% on its own line, then %[text] ## on the next line

Issue: Script won't save with outputs

  • Solution: Verify appendix is exactly as specified, with proper indentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.8%
按下载量换算131

Claude

30.46%
按下载量换算105

Cursor

19.49%
按下载量换算67

Gemini CLI

9.79%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills