Manage and interact with macOS Shortcuts. Use this skill when the user wants to list available shortcuts, view a shortcut in the Shortcuts app, or run a shortcut...
This skill provides integration with macOS Shortcuts, allowing you to list, view, and run shortcuts directly from the command line.
Use the shortcuts list command to display all available shortcuts on the system.
Command:
shortcuts list
When to use:
Example output:
My Morning Routine
Send Weekly Report
Process Screenshots
Convert to PDF
Use the shortcuts view command to open a specific shortcut in the Shortcuts app for editing or inspection.
Command:
shortcuts view "<shortcut-name>"
When to use:
Important:
Example:
shortcuts view "My Morning Routine"
Use the shortcuts run command to execute a shortcut. You can optionally provide input to the shortcut.
Command (without input):
shortcuts run "<shortcut-name>"
Command (with input):
shortcuts run "<shortcut-name>" --input-path <file-path>
Or with text input:
echo "some text" | shortcuts run "<shortcut-name>"
When to use:
Important:
Examples:
# Run a simple shortcut
shortcuts run "Convert to PDF"
# Run a shortcut with file input
shortcuts run "Process Image" --input-path /path/to/image.jpg
# Run a shortcut with text input
echo "Hello World" | shortcuts run "Translate to Spanish"
If a shortcut name doesn't exist, you'll see an error like:
The shortcut "Name" could not be found.
In this case:
shortcuts list to see available shortcutsshortcuts list first if you're unsure of the exact name