Onlyswitch Deeplink
Apps & Automationonlyswitch-deeplinkOnlyswitch Deeplink is an Agent Skill for apps & automation published in the jacklandrin/OnlySwitch repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/jacklandrin/OnlySwitch/blob/HEAD/OpenClaw/skills/onlyswitch-deeplink/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/onlyswitch-deeplink, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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).