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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
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).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"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
SwitchTypein the OnlySwitch app (see project'sSwitchType.swiftfor 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
コメント
- …
このリポジトリの他のスキル
app-store-review
6.0kApple のアプリコードを App Store のレビューガイドラインと照合し、提出前に却下されやすい問題を見つけるよう支援します。
swift-concurrency-pro
6.0kSwiftのasyncコードを確認し、並行処理の誤り、アクターの問題、古い非同期の書き方を見つけるようエージェントを支援します。
swift-testing-pro
6.0kSwift Testingのコードを書き、レビューするようエージェントを支援します。最新のテストAPI、非同期テストの書き方、整ったテストの構造を使います。