Origin Scripting

Origin 零安装脚本模式(v1.0.0)——教 AI 生成可直接粘贴进 Origin Script Window / Python Console 的 Python(originpro) 或 LabTalk 脚本,零依赖、零安装、不需要 MCP。用户拿去手动跑。

49 stars 3 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Fantasality/dsh-origin-plugin --skill origin-scripting
Manual install
git clone --depth 1 https://github.com/Fantasality/dsh-origin-plugin.git /tmp/dsh-origin-plugin
mkdir -p ~/.claude/skills
cp -r /tmp/dsh-origin-plugin/skills/origin-scripting ~/.claude/skills/origin-scripting

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Origin 脚本模式(零安装、零依赖、不碰 MCP)

## 什么时候用这个 skill(先判断,再生成)
- 用户**没有 MCP 客户端**、不会配 Python 环境、不想改 `mcp.json` → 直接给脚本让他手动跑。
- 用户只想要**一段可复制的脚本**(贴进 Origin 自己执行),而不是让 AI 自动画图。
- 用户想在 **Origin 内手动微调**前,先有现成脚本打底。
- 任何"给我段 Origin 脚本 / 贴进 Origin 怎么画 / 我自己跑"的表述 → 本 skill,不走 origin-plotting 的工具流。

## 铁律:生成脚本的硬规则(每条都对应本项目实测过的返工,违反必出错)
1. **内嵌 Python 一律 `import originpro as op`**:Origin 自带内嵌 Python + originpro,这是最稳通道;别用系统 python、别让用户 `pip install`。脚本开头固定:
   ```python
   import originpro as op
   op.set_show(True)   # 让 Origin 窗口可见(调试时)
   ```
2. **LabTalk 裸表达式只在"目标图页恰为活动窗口"时可靠** → 脚本里先 `activate()` 再操作,或优先用 **COM 作用域对象**(originpro 的 `wks`/`gp`/`gl` 对象自带作用域,不依赖哪个窗口活动)。需要 LabTalk 时务必先 `win -a <短名>` 或 `gp.activate()`,否则写进别的窗口/静默返回 NaN。
3. **已知静默失败通道(写进去像成功、实际没生效,最坑)**:
   - **3D 图(GL 层)的轴标题写不进去**——别给 3D 图设轴标题,留空或改用 2D;强行写会静默无效。
   - **矩阵 heatmap 的 `plotm` 全变体静默失败**——矩阵画热力图优先走 Origin 官方模板或先转工作表再画,别裸调 `plotm`。
4. **通道纪律(写后必须读回,NaN 比较恒为 False)**:
   - 设完轴标题/范围/样式,**读回**确认落点(`gl.xlabel` 再打印),不要假设写成功。
   - `NaN` 比较永远 False:`if x == float('nan')` 永远不成立;判空用 `import math; math.isnan(x)` 或 `x != x`。
   - LabTalk 读回值是 `NaN` → 该通道在当前图/版本无效,**别重试同一通道**,换 originpro COM 对象。

## 生成脚本的通用骨架(复制后只改"←改这里"标注行)
Read the full skill on GitHub

Details

Skill name
origin-scripting
Path
skills/origin-scripting/SKILL.md
License
MIT
Repo updated
17 October 2026

FAQ

What does the Origin Scripting skill do?

Origin 零安装脚本模式(v1.0.0)——教 AI 生成可直接粘贴进 Origin Script Window / Python Console 的 Python(originpro) 或 LabTalk 脚本,零依赖、零安装、不需要 MCP。用户拿去手动跑。

How do I install the Origin Scripting skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Fantasality/dsh-origin-plugin --skill origin-scripting. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Origin Scripting popular?

It lives in Fantasality/dsh-origin-plugin, which has 49 GitHub stars and 3 forks.

Related skills

Install Dsh Origin

49

Fantasality/dsh-origin-plugin

帮用户把 dsh-origin-plugin(AI 驱动 OriginLab Origin 画图的 MCP 插件)装好并验证可用。当用户说"帮我装 Origin 插件""配置 MCP""让 AI 能画 Origin 图"或遇到装到旧版本/连不上 Origin 时使用。

AI, LLMs & Agents

Origin Plotting

49

Fantasality/dsh-origin-plugin

Origin 全流程 SOP(v2.3.0,50 工具按步骤挂载):检查环境(失败先 diagnose)→ inspect 现状 → 规划(语义不明/发表级/多组对比强制 plan→确认→execute)→ 执行 → verify 校验(只有 fail 必须修)→ 失败恢复 → 交付。含快速/正式双路径、场景速查(origin_cookbook)、错误码→恢复动作映射、领域模板、细粒度改图、通道纪律。统计推断细节见 origin-stats skill。

Other

Origin Stats

49

Fantasality/dsh-origin-plugin

Origin 统计分析 SOP(v2.3.0,11 个统计工具):描述统计 / 变换 / 积分 / FFT / 相关 / 峰值 / 峰拟合 / t 检验 / ANOVA / PCA / 生存分析。含科学边界(自研统计仅探索用)、confidence_note 说明、结果解读与常见陷阱。

Other

Review Suno Song

43

nwp/suno-song-creator-plugin

This skill should be used when the user asks to "review my Suno song", "check Suno prompt quality", "evaluate song lyrics", "review this prompt", "check for AI-slop", "validate my Suno prompt", or wants independent quality assessment of Suno prompts and lyrics. Launches the quality-reviewer sub-agent to evaluate material against professional production standards including AI-slop detection, cliché detection, poor quality lines, rhyme assessment, style-lyric consistency, gender-pronoun consistency, and general taste.

AI, LLMs & Agents

Mcwander

43

Sirius0o0/McWander

Plan a local Citywalk with McDonald's rest stops using the McWander project, Amap walking routes and McDonald's MCP menu and price queries. Use for city strolls with time, walking-distance and dining-budget limits.

AI, LLMs & Agents

Suno Upload

43

nwp/suno-song-creator-plugin

Upload a Suno prompt.md file to suno.com using Chrome automation with NO human intervention required. Parses the prompt file, navigates to Suno's Create interface, fills all form fields including sliders (lyrics, style, title, weirdness, style influence, vocal gender, exclude styles), and submits for song generation. Uses proven coordinate-based slider manipulation for reliable automation. Use this skill when the user asks to "upload to Suno", "create on Suno", "generate with Suno", "submit to Suno", or wants to automatically upload a generated prompt to the Suno website.

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.