Skip to content
Skillpedia
Automations6.0k · #14449

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.md

Copy 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

Use this skill to help me: https://github.com/jacklandrin/OnlySwitch/blob/main/OpenClaw/skills/onlyswitch-deeplink/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  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).
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills