Skip to content
Back to skills

Onlyswitch Deeplink

ASecurity

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.

  • 6,003 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 22, 2026
ai-agentsswiftbashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 22, 2026

npx -y skills add jacklandrin/OnlySwitch --skill onlyswitch-deeplink --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Onlyswitch Deeplink?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Onlyswitch Deeplink
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jacklandrin-onlyswitch-deeplink/badge)](https://www.skillsdirectory.com/skills/jacklandrin-onlyswitch-deeplink)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: onlyswitch-deeplink
description: 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.
metadata: {"openclaw":{"os":["darwin"],"homepage":"https://github.com/jacklandrin/OnlySwitch"}}
---

# 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](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):

   ```bash
   open "onlyswitch://run?type=builtIn&id=<id>"
   ```

   Replace `<id>` with the numeric id from the reference table. Example for "empty trash":

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

Files in this skill

  • SKILL.md1.9 KB
  • references/switch-ids.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.