Openyida Cross Platform Release Guard logo

Openyida Cross Platform Release Guard

Organization
openyida
openyida-cross-platform-release-guard

OpenYida 跨端发布风险守卫。当改动涉及浏览器/URL 拉起(openyida login、bridge 页面唤起、resolveBrowserLauncher、openBrowser、spawn 打开浏览器),或用户明确要求检查 Windows/Linux 发布风险时使用。用于静态扫描并拦截「cmd /c start 截断 URL」「open -n 假装开新窗口」等跨端问题;普通版本 tag 发布请使用 openyida-release。

Overview

Publisheropenyida
Repositoryopenyida
Skill nameopenyida-cross-platform-release-guard
Stars
228
Forks
50
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Openyida Cross Platform Release Guard 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/openyida/openyida/tree/main/.agents/skills/openyida-cross-platform-release-guard
  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/openyida/openyida.git /tmp/openyida
mkdir -p .claude/skills
cp -r /tmp/openyida/.agents/skills/openyida-cross-platform-release-guard .claude/skills/openyida-cross-platform-release-guard
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Openyida Cross Platform Release Guard 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 Openyida Cross Platform Release Guard 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 Openyida Cross Platform Release Guard 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.

OpenYida 跨端发布风险守卫

macOS 本地测试跑通 ≠ 发布安全。浏览器/URL 拉起这类代码在 macOS 上正常,却可能在 Windows/Linux 用户侧直接炸掉——因为每个平台的浏览器拉起命令、URL 转义规则、默认浏览器 标识(bundle id / ProgId / .desktop)完全不同,而 CI 只跑纯函数单测,覆盖不到真实系统拉起。

触发条件

  • 改动 lib/auth/oauth-loopback.js、lib/bridge/bridge.js,或任何 resolveBrowserLauncher / openBrowser / spawn(...浏览器...) 相关逻辑。
  • 在 macOS 开发、发布对象包含 Windows / Linux 用户。
  • 用户明确要求对浏览器拉起或 URL 传递改动做跨端发布检查。

第一步:跑发布风险静态扫描(必做)

bash
npm run check:release-risks
  • HARD 反模式 → exit 1,阻断发布(已纳入 check:ci 第 10 步):
    • cmd-c-start-url / cmd-c-start-argv:cmd /c start <url> 会把 URL 里的 & 当命令 分隔符截断,丢失 client_id/state(登录)或 oy_bridge_url/oy_bridge_token(bridge)。 → 改用 rundll32 url.dll,FileProtocolHandler,并复用 resolveBrowserLauncher。
    • open-n-url-new-tab:open -n <url> 在 macOS 不会开新窗口,只在默认浏览器开新标签页 (假装开窗口)。→ 要真开新窗口须指定浏览器 App 并传其 --new-window/-new-window; 检测不到默认浏览器时回退纯 open <url>。
  • SOFT 提示 → 不阻断:列出涉及浏览器/URL 拉起的文件,提醒补人工跨端验证。

扫描逻辑见 scripts/check-release-risks.js(纯静态扫描 lib/,会跳过注释,并正确识别字符串中的 // / /* 不是注释;命令字符串仍会保留扫描,确保能抓到 spawn('cmd', ...) 这类真实反模式); 契约由 tests/check-release-risks.test.js 锁定。

第二步:跨端人工验证清单

CI 通过只代表纯逻辑没问题,浏览器真实拉起必须在目标 OS 各自实测:

平台拉起方式默认浏览器标识必测
macOSopen(新标签页)/ open -b <bundle> -n --args --new-window(新窗口)LaunchServices bundle id(com.google.chrome)openyida login 弹出浏览器且回调页自动关闭;bridge 页面能唤起
Windowsrundll32 url.dll,FileProtocolHandler(默认)/ 浏览器 exe --new-window注册表 ProgId(ChromeHTML/MSEdgeHTM/FirefoxURL)登录 URL 的 client_id/state 不被 & 截断;bridge 参数不丢
Linuxxdg-open(默认)/ 浏览器 exe --new-window.desktop 文件名(google-chrome.desktop)openyida login 能拉起浏览器

要点:

  • 三端「默认浏览器标识」互不通用,各自独立分类;未知/不支持的默认浏览器一律回退到 系统默认浏览器新标签页 + 回调页自动关闭,绝不假装开新窗口。
  • URL 必须作为单个 argv 元素传递,任何经过 shell(cmd /c、sh -c)的路径都要确认 & 不被解释。

第三步:发布收尾

  1. 确认 package.json version 与 CHANGELOG 顶部版本一致(日期格式 vYYYY.MM.DD,同日多次 发布用 -1/-2 后缀)。
  2. npm run check:ci 全绿(含发布风险扫描)。
  3. CHANGELOG 记录本次改动,浏览器/登录/bridge 类改动务必写明受影响平台。

反哺

发现新的「只在某平台暴露」的拉起坑时,在 scripts/check-release-risks.js 的 HARD_RULES 增加一条规则 + 在 tests/check-release-risks.test.js 补对应用例,让守卫随坑增长。

Frequently asked questions

What does the Openyida Cross Platform Release Guard AI skill do?

OpenYida 跨端发布风险守卫。当改动涉及浏览器/URL 拉起(openyida login、bridge 页面唤起、resolveBrowserLauncher、openBrowser、spawn 打开浏览器),或用户明确要求检查 Windows/Linux 发布风险时使用。用于静态扫描并拦截「cmd /c start 截断 URL」「open -n 假装开新窗口」等跨端问题;普通版本 tag 发布请使用 openyida-release。

Why use Openyida Cross Platform Release Guard on TypingMind?

Because you install it once and use it with any model. Openyida Cross Platform Release Guard 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 Openyida Cross Platform Release Guard in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openyida/openyida/tree/main/.agents/skills/openyida-cross-platform-release-guard. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Openyida Cross Platform Release Guard?

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 Openyida Cross Platform Release Guard?

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

Is the Openyida Cross Platform Release Guard AI skill free?

Yes. It is published on GitHub by openyida under the MIT license. 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 👇