跳到正文
Skillpedia
自动化6.0k · #14449

onlyswitch-deeplink

它能做什么

这项技能让你的 AI 在 Mac 上运行 OnlySwitch 内置的操作,例如开启保持唤醒或清空废纸篓。适合已经在使用 OnlySwitch 菜单栏应用的人。

适用场景

  • ✓当你想让 AI 切换 OnlySwitch 的开关,例如深色模式或静音时。
  • ✓当你想用一个请求清空废纸篓或清除剪贴板时。
  • ✓当你想执行清理缓存的操作,例如清除 Xcode 派生数据时。

技能链接

https://github.com/jacklandrin/OnlySwitch/blob/main/OpenClaw/skills/onlyswitch-deeplink/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/jacklandrin/OnlySwitch/blob/main/OpenClaw/skills/onlyswitch-deeplink/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用 OnlySwitch 开启保持唤醒。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体把你的请求匹配到一个 OnlySwitch 内置操作,并在你的 Mac 上打开它的链接,由应用执行该操作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

OnlySwitch Deeplink

Invoke OnlySwitch built-in switches or one-shot buttons by opening its deeplink. OnlySwitch must be installed and allowed to handle the onlyswitch:// URL scheme.

Workflow

  1. Resolve intent to switch id
    Map the user's request to a single built-in switch/button using references/switch-ids.md. Match phrases like "empty trash", "toggle keep awake", "mute mic", "clear xcode cache" to the correct id (e.g. empty trash → 16384, keep awake → 16).

  2. Open the deeplink
    Run on the user's machine (macOS):

    open "onlyswitch://run?type=builtIn&id=<id>"
    

    Replace <id> with the numeric id from the reference table. Example for "empty trash":

    open "onlyswitch://run?type=builtIn&id=16384"
    
  3. Confirm
    Tell the user which action was triggered (e.g. "Emptied trash via OnlySwitch" or "Toggled Keep Awake via OnlySwitch").

Notes

  • One deeplink per request: resolve to exactly one switch id per user message.
  • If the request doesn't match any built-in (e.g. custom switch or unknown action), say that OnlySwitch deeplinks only support the built-in list and suggest checking the app or docs.
  • IDs are raw enum values from SwitchType in the OnlySwitch app (see project's SwitchType.swift for the source of truth; this skill's reference table is derived from it).
常见问题

我需要安装 OnlySwitch 吗?

需要。应用必须已安装,并且允许处理其 onlyswitch 链接。

它能运行 OnlySwitch 中的任何操作吗?

不能。它只支持参考列表中的内置操作,不支持自定义开关。

它能在 Windows 上使用吗?

不能。这项技能是为 macOS 编写的,并使用 open 命令启动每个操作。

详情

作者的原始描述

Invoke OnlySwitch built-in switches or buttons via deeplink. Use when the user asks to toggle or trigger an OnlySwitch action (e.g. empty trash, keep awake, dark mode, mute, hide desktop, clear clipboard, eject discs, Xcode derived data, and any other built-in switch or button). Resolve the request to the correct switch id and open the onlyswitch deeplink.

repo: jacklandrin/OnlySwitch

热度

GitHub 星标
6.0k
排名
#14449
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能