本文へスキップ
Skillpedia
自動化6.0k · #14449

onlyswitch-deeplink

できること

このスキルにより、AIがMacで組み込みのOnlySwitchの操作を実行できます。例えば、スリープを防ぐ設定を入れたり、ゴミ箱を空にしたりします。OnlySwitchのメニューバーアプリをすでに使っている人のためのものです。

使う場面

  • ✓AIからOnlySwitchのスイッチ(ダークモードやミュートなど)を切り替えたいとき。
  • ✓一つの依頼でゴミ箱を空にしたり、クリップボードを消したりしたいとき。
  • ✓Xcodeのderived dataの削除など、キャッシュを掃除する操作がほしいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/jacklandrin/OnlySwitch/blob/main/OpenClaw/skills/onlyswitch-deeplink/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル