/cli
Running and managing Apple Shortcuts via the macOS shortcuts CLI. Use when the user wants to run, list, or inspect shortcuts.
$ npx -y skills add bendrucker/claude --skill cli --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/cli
Context preview
The summary Claude sees to decide when to auto-load this skill.
Running and managing Apple Shortcuts via the macOS shortcuts CLI. Use when the user wants to run, list, or inspect shortcuts.
SKILL.md
cli.SKILL.mdname: shortcuts:cli
description: Running and managing Apple Shortcuts via the macOS shortcuts CLI. Use when the user wants to run, list, or inspect shortcuts.
disable-model-invocation: true
allowed-tools:
- Bash(shortcuts:*)
- Bash(open:*)
hooks:
PreToolUse:
- matcher: "Bash(shortcuts:*)"
hooks:
- type: command
command: |
cat | jq '{hookSpecificOutput: {hookEventName: "PreToolUse", permissionDecision: "allow", updatedInput: {dangerouslyDisableSandbox: true}}}'Shortcuts CLI
The `shortcuts` command manages and runs shortcuts on macOS.
Run
shortcuts run "My Shortcut"
shortcuts run "My Shortcut" -i input.txt
shortcuts run "My Shortcut" -o output.txt
echo "data" | shortcuts run "My Shortcut"
Run by identifier (stable across renames):
shortcuts run "01C97432-525A-4BF6-94DF-C35458FCD21A"
Get identifiers with `shortcuts list --show-identifiers`.
Headless behavior
Shortcuts with GUI actions (alerts, menus, input prompts) fail with "Running was cancelled" when run from the CLI. Only non-interactive shortcuts work headlessly.
Permissions
First-time actions (notifications, location, contacts, etc.) trigger a macOS permission dialog. The shortcut pauses until the user approves. Inform the user when running a shortcut that may trigger prompts.
List
shortcuts list
shortcuts list --show-identifiers
shortcuts list -f "Folder Name"
shortcuts list --folders
View
Opens a shortcut in the Shortcuts app editor.
shortcuts view "My Shortcut"
Sign
Sign a `.shortcut` file for import (requires network — contacts Apple's signing service):
mkdir -p out
shortcuts sign -i "My Shortcut.shortcut" -o "out/My Shortcut.shortcut"
Sign into an output directory to preserve the unsigned binary. The filename (minus `.shortcut`) becomes the shortcut name on import — don't add suffixes.
Import
There is no `shortcuts import` command. Open the signed file to trigger import.
open "out/My Shortcut.shortcut"
The user confirms import in the Shortcuts app GUI.
Read more
name: shortcuts:cli
description: Running and managing Apple Shortcuts via the macOS shortcuts CLI. Use when the user wants to run, list, or inspect shortcuts.
disable-model-invocation: true
allowed-tools:
- Bash(shortcuts:*)
- Bash(open:*)
hooks:
PreToolUse:
- matcher: "Bash(shortcuts:*)"
hooks:
- type: command
command: |
cat | jq '{hookSpecificOutput: {hookEventName: "PreToolUse", permissionDecision: "allow", updatedInput: {dangerouslyDisableSandbox: true}}}'Shortcuts CLI
The `shortcuts` command manages and runs shortcuts on macOS.
Run
shortcuts run "My Shortcut" shortcuts run "My Shortcut" -i input.txt shortcuts run "My Shortcut" -o output.txt echo "data" | shortcuts run "My Shortcut"
Run by identifier (stable across renames):
shortcuts run "01C97432-525A-4BF6-94DF-C35458FCD21A"
Get identifiers with `shortcuts list --show-identifiers`.
Headless behavior
Shortcuts with GUI actions (alerts, menus, input prompts) fail with "Running was cancelled" when run from the CLI. Only non-interactive shortcuts work headlessly.
Permissions
First-time actions (notifications, location, contacts, etc.) trigger a macOS permission dialog. The shortcut pauses until the user approves. Inform the user when running a shortcut that may trigger prompts.
List
shortcuts list shortcuts list --show-identifiers shortcuts list -f "Folder Name" shortcuts list --folders
View
Opens a shortcut in the Shortcuts app editor.
shortcuts view "My Shortcut"
Sign
Sign a `.shortcut` file for import (requires network — contacts Apple's signing service):
mkdir -p out shortcuts sign -i "My Shortcut.shortcut" -o "out/My Shortcut.shortcut"
Sign into an output directory to preserve the unsigned binary. The filename (minus `.shortcut`) becomes the shortcut name on import — don't add suffixes.
Import
There is no `shortcuts import` command. Open the signed file to trigger import.
open "out/My Shortcut.shortcut"
The user confirms import in the Shortcuts app GUI.
My personal plugin marketplace for Claude Code, Anthropic's AI coding assistant.
Repo: bendrucker/claude
Other skills on bendrucker-claude.
cleye
Type-safe CLI argument parsing with cleye, the standard parser for this repo's Bun scripts. Use when writing or editing any script that takes arguments (flags,…
activity
Report real device usage from ActivityWatch. Covers per-app time, window titles, and active vs idle spans. Use when asked "what apps did I use", "how long was…
history
Report shell history from atuin's local capture. Covers what commands ran, when, where, and how they exited. Use when asked "what commands did I run", "what…
bun
Bun runtime patterns. Use when running bun commands, working with package.json/bun.lock, writing TypeScript scripts under Bun, or developing Claude Code…
agent-team
Orchestrating Claude Code agent teams. Use when creating teams, spawning teammates, assigning tasks, configuring teammate modes, or setting up team quality…

