onlyswitch-deeplink
What it does
This skill lets your AI run built-in OnlySwitch actions on a Mac, such as turning on keep awake or emptying the trash. It is for people who already use the OnlySwitch menu bar app.
When to use it
- ✓When you want to toggle an OnlySwitch switch, such as dark mode or mute, from your AI.
- ✓When you want to empty the trash or clear the clipboard with one request.
- ✓When you want a cache clean-up action such as clearing Xcode derived data.
Skill link
https://github.com/jacklandrin/OnlySwitch/blob/main/OpenClaw/skills/onlyswitch-deeplink/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Turn on keep awake using OnlySwitch.”
5 new skills a week. 1 minute to read.
How it works
The agent matches your request to one built-in OnlySwitch action and opens its link on your Mac, which runs that action in the app.
Technical content (original SKILL.md)
Original text by the author, straight from 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).
FAQ
Do I need OnlySwitch installed?
Yes. The app must be installed and allowed to handle its onlyswitch link.
Can it run any action in OnlySwitch?
No. It only works with the built-in actions in its reference list, not custom switches.
Does it work on Windows?
No. The skill is written for macOS and uses the open command to start each action.
Details
Original description by the author
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
Popularity
- GitHub stars
- 6.0k
- Ranking position
- #14449
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
app-store-review
6.0kHelps your agent check Apple app code against App Store Review Guidelines to spot likely rejection problems before you submit.
swift-concurrency-pro
6.0kHelps your agent review Swift async code for concurrency mistakes, actor problems and outdated async patterns.
swift-testing-pro
6.0kHelps your agent write and review Swift Testing code, using modern test APIs, async test patterns and clean test structure.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.