macOS Shortcuts Generator
Generate valid .shortcut files that can be signed and imported into Apple's Shortcuts app.
Quick Start
A shortcut is a binary plist with this structure:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WFWorkflowActions</key>
<array>
<!-- Actions go here -->
</array>
<key>WFWorkflowClientVersion</key>
<string>2700.0.4</string>
<key>WFWorkflowHasOutputFallback</key>
<false/>
<key>WFWorkflowIcon</key>
<dict>
<key>WFWorkflowIconGlyphNumber</key>
<integer>59511</integer>
<key>WFWorkflowIconStartColor</key>
<integer>4282601983</integer>
</dict>
<key>WFWorkflowImportQuestions</key>
<array/>
<key>WFWorkflowMinimumClientVersion</key>
<integer>900</integer>
<key>WFWorkflowMinimumClientVersionString</key>
<string>900</string>
<key>WFWorkflowName</key>
<string>My Shortcut</string>
<key>WFWorkflowOutputContentItemClasses</key>
<array/>
<key>WFWorkflowTypes</key>
<array/>
</dict>
</plist>
Minimal Hello World
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.gettext</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>UUID</key>
<string>A1B2C3D4-E5F6-7890-ABCD-EF1234567890</string>
<key>WFTextActionText</key>
<string>Hello World!</string>
</dict>
</dict>
<dict>
<key>WFWorkflowActionIdentifier</key>
<string>is.workflow.actions.showresult</string>
<key>WFWorkflowActionParameters</key>
<dict>
<key>Text</key>
<dict>
<key>Value</key>
<dict>
<key>attachmentsByRange</key>
<dict>
<key>{0, 1}</key>
<dict>
<key>OutputName</key>
<string>Text</string>
<key>OutputUUID</key>
<string>A1B2C3D4-E5F6-7890-ABCD-EF1234567890</string>
<key>Type</key>
<string>ActionOutput</string>
</dict>
</dict>
<key>string</key>
<string></string>
</dict>
<key>WFSerializationType</key>
<string>WFTextTokenString</string>
</dict>
</dict>
</dict>
Core Concepts
1. Actions
Every action has:
- Identifier:
is.workflow.actions.<name> (e.g., is.workflow.actions.showresult)
- Parameters: Action-specific configuration in
WFWorkflowActionParameters
- UUID: Unique identifier for referencing this action's output
2. Variable References
To use output from a previous action:
- The source action needs a
UUID parameter
- Reference it using
OutputUUID in an attachmentsByRange dictionary
- Use
 (U+FFFC) as placeholder in the string where the variable goes
- Set
WFSerializationType to WFTextTokenString
3. Control Flow
Control flow actions (repeat, conditional, menu) use:
GroupingIdentifier: UUID linking start/middle/end actions
WFControlFlowMode: 0=start, 1=middle (else/case), 2=end
Common Actions Quick Reference
| Action |
Identifier |
Key Parameters |
| Text |
is.workflow.actions.gettext |
WFTextActionText |
| Show Result |
is.workflow.actions.showresult |
Text |
| Ask for Input |
is.workflow.actions.ask |
WFAskActionPrompt, WFInputType |
| Use AI Model |
is.workflow.actions.askllm |
WFLLMPrompt, WFLLMModel, WFGenerativeResultType |
| Comment |
is.workflow.actions.comment |
WFCommentActionText |
| URL |
is.workflow.actions.url |
WFURLActionURL |
| Get Contents of URL |
is.workflow.actions.downloadurl |
WFURL, WFHTTPMethod |
| Get Weather |
is.workflow.actions.weather.currentconditions |
(none required) |
| Open App |
is.workflow.actions.openapp |
WFAppIdentifier |
| Open URL |
is.workflow.actions.openurl |
WFInput |
| Alert |
is.workflow.actions.alert |
WFAlertActionTitle, WFAlertActionMessage |
| Notification |
is.workflow.actions.notification |
WFNotificationActionTitle, WFNotificationActionBody |
| Set Variable |
is.workflow.actions.setvariable |
WFVariableName, WFInput |
| Get Variable |
is.workflow.actions.getvariable |
WFVariable |
| Number |
is.workflow.actions.number |
WFNumberActionNumber |
| List |
is.workflow.actions.list |
WFItems |
| Dictionary |
is.workflow.actions.dictionary |
WFItems |
| Repeat (count) |
is.workflow.actions.repeat.count |
WFRepeatCount, GroupingIdentifier, WFControlFlowMode |
| Repeat (each) |
is.workflow.actions.repeat.each |
WFInput, GroupingIdentifier, WFControlFlowMode |
| If/Otherwise |
is.workflow.actions.conditional |
WFInput, WFCondition, GroupingIdentifier, WFControlFlowMode |
| Choose from Menu |
is.workflow.actions.choosefrommenu |
WFMenuPrompt, WFMenuItems, GroupingIdentifier, WFControlFlowMode |
| Find Photos |
is.workflow.actions.filter.photos |
WFContentItemFilter (see FILTERS.md) |
| Delete Photos |
is.workflow.actions.deletephotos |
photos (NOT WFInput!) |
Detailed Reference Files
For complete documentation, see:
- PLIST_FORMAT.md - Complete plist structure
- ACTIONS.md - All 427 WF*Action identifiers and parameters
- APPINTENTS.md - All 728 AppIntent actions
- PARAMETER_TYPES.md - All parameter value types and serialization formats
- VARIABLES.md - Variable reference system
- CONTROL_FLOW.md - Repeat, Conditional, Menu patterns
- FILTERS.md - Content filters for Find/Filter actions (photos, files, etc.)
- EXAMPLES.md - Complete working examples
Signing Shortcuts
Shortcuts MUST be signed before they can be imported. Use the macOS shortcuts CLI:
# Sign for anyone to use
shortcuts sign --mode anyone --input MyShortcut.shortcut --output MyShortcut_signed.shortcut
# Sign for people who know you
shortcuts sign --mode people-who-know-me --input MyShortcut.shortcut --output MyShortcut_signed.shortcut
The signing process:
- Write your plist as XML to a
.shortcut file
- Run
shortcuts sign to add cryptographic signature (~19KB added)
- The signed file can be opened/imported into Shortcuts.app
Workflow for Creating Shortcuts
- Define actions - List what the shortcut should do
- Generate UUIDs - Each action that produces output needs a unique UUID
- Build action array - Create each action dictionary with identifier and parameters
- Wire variable references - Connect outputs to inputs using
OutputUUID
- Wrap in plist - Add the root structure with icon, name, version
- Write to file - Save as
.shortcut (XML plist format is fine)
- Sign - Run
shortcuts sign to make it importable
Key Rules
- UUIDs must be uppercase:
A1B2C3D4-E5F6-7890-ABCD-EF1234567890
- WFControlFlowMode is an integer: Use
<integer>0</integer> not <string>0</string>
- Range keys use format:
{position, length} - e.g., {0, 1} for first character
- The placeholder character:
 (U+FFFC) marks where variables are inserted
- Control flow needs matching ends: Every repeat/if/menu start needs an end action with same
GroupingIdentifier
Related Skills
applescript-jxa — Mac automation
keyboard-maestro — workflow automation
raycast-extensions — Raycast shortcuts
GitNexus Index
This skill is indexed by GitNexus for knowledge graph traversal.
Index path: /Users/localuser/.claude/skills/shortcuts-skill/.gitnexus
Last indexed: 2026-05-23
1---2name: shortcuts-generator3description: Generate macOS/iOS Shortcuts by creating plist files. Use when asked to create shortcuts, automate workflows, build .shortcut files, or generate Shortcuts plists. Covers 1,155 actions (427 WF*Actions + 728 AppIntents), variable references, and control flow.4---56# macOS Shortcuts Generator78Generate valid `.shortcut` files that can be signed and imported into Apple's Shortcuts app.910## Quick Start1112A shortcut is a binary plist with this structure:1314```xml15<?xml version="1.0" encoding="UTF-8"?>16<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">17<plist version="1.0">18<dict>19 <key>WFWorkflowActions</key>20 <array>21 <!-- Actions go here -->22 </array>23 <key>WFWorkflowClientVersion</key>24 <string>2700.0.4</string>25 <key>WFWorkflowHasOutputFallback</key>26 <false/>27 <key>WFWorkflowIcon</key>28 <dict>29 <key>WFWorkflowIconGlyphNumber</key>30 <integer>59511</integer>31 <key>WFWorkflowIconStartColor</key>32 <integer>4282601983</integer>33 </dict>34 <key>WFWorkflowImportQuestions</key>35 <array/>36 <key>WFWorkflowMinimumClientVersion</key>37 <integer>900</integer>38 <key>WFWorkflowMinimumClientVersionString</key>39 <string>900</string>40 <key>WFWorkflowName</key>41 <string>My Shortcut</string>42 <key>WFWorkflowOutputContentItemClasses</key>43 <array/>44 <key>WFWorkflowTypes</key>45 <array/>46</dict>47</plist>48```4950### Minimal Hello World5152```xml53<dict>54 <key>WFWorkflowActionIdentifier</key>55 <string>is.workflow.actions.gettext</string>56 <key>WFWorkflowActionParameters</key>57 <dict>58 <key>UUID</key>59 <string>A1B2C3D4-E5F6-7890-ABCD-EF1234567890</string>60 <key>WFTextActionText</key>61 <string>Hello World!</string>62 </dict>63</dict>64<dict>65 <key>WFWorkflowActionIdentifier</key>66 <string>is.workflow.actions.showresult</string>67 <key>WFWorkflowActionParameters</key>68 <dict>69 <key>Text</key>70 <dict>71 <key>Value</key>72 <dict>73 <key>attachmentsByRange</key>74 <dict>75 <key>{0, 1}</key>76 <dict>77 <key>OutputName</key>78 <string>Text</string>79 <key>OutputUUID</key>80 <string>A1B2C3D4-E5F6-7890-ABCD-EF1234567890</string>81 <key>Type</key>82 <string>ActionOutput</string>83 </dict>84 </dict>85 <key>string</key>86 <string></string>87 </dict>88 <key>WFSerializationType</key>89 <string>WFTextTokenString</string>90 </dict>91 </dict>92</dict>93```9495## Core Concepts9697### 1. Actions98Every action has:99- **Identifier**: `is.workflow.actions.<name>` (e.g., `is.workflow.actions.showresult`)100- **Parameters**: Action-specific configuration in `WFWorkflowActionParameters`101- **UUID**: Unique identifier for referencing this action's output102103### 2. Variable References104To use output from a previous action:1051. The source action needs a `UUID` parameter1062. Reference it using `OutputUUID` in an `attachmentsByRange` dictionary1073. Use `` (U+FFFC) as placeholder in the string where the variable goes1084. Set `WFSerializationType` to `WFTextTokenString`109110### 3. Control Flow111Control flow actions (repeat, conditional, menu) use:112- `GroupingIdentifier`: UUID linking start/middle/end actions113- `WFControlFlowMode`: 0=start, 1=middle (else/case), 2=end114115## Common Actions Quick Reference116117| Action | Identifier | Key Parameters |118|--------|------------|----------------|119| Text | `is.workflow.actions.gettext` | `WFTextActionText` |120| Show Result | `is.workflow.actions.showresult` | `Text` |121| Ask for Input | `is.workflow.actions.ask` | `WFAskActionPrompt`, `WFInputType` |122| Use AI Model | `is.workflow.actions.askllm` | `WFLLMPrompt`, `WFLLMModel`, `WFGenerativeResultType` |123| Comment | `is.workflow.actions.comment` | `WFCommentActionText` |124| URL | `is.workflow.actions.url` | `WFURLActionURL` |125| Get Contents of URL | `is.workflow.actions.downloadurl` | `WFURL`, `WFHTTPMethod` |126| Get Weather | `is.workflow.actions.weather.currentconditions` | (none required) |127| Open App | `is.workflow.actions.openapp` | `WFAppIdentifier` |128| Open URL | `is.workflow.actions.openurl` | `WFInput` |129| Alert | `is.workflow.actions.alert` | `WFAlertActionTitle`, `WFAlertActionMessage` |130| Notification | `is.workflow.actions.notification` | `WFNotificationActionTitle`, `WFNotificationActionBody` |131| Set Variable | `is.workflow.actions.setvariable` | `WFVariableName`, `WFInput` |132| Get Variable | `is.workflow.actions.getvariable` | `WFVariable` |133| Number | `is.workflow.actions.number` | `WFNumberActionNumber` |134| List | `is.workflow.actions.list` | `WFItems` |135| Dictionary | `is.workflow.actions.dictionary` | `WFItems` |136| Repeat (count) | `is.workflow.actions.repeat.count` | `WFRepeatCount`, `GroupingIdentifier`, `WFControlFlowMode` |137| Repeat (each) | `is.workflow.actions.repeat.each` | `WFInput`, `GroupingIdentifier`, `WFControlFlowMode` |138| If/Otherwise | `is.workflow.actions.conditional` | `WFInput`, `WFCondition`, `GroupingIdentifier`, `WFControlFlowMode` |139| Choose from Menu | `is.workflow.actions.choosefrommenu` | `WFMenuPrompt`, `WFMenuItems`, `GroupingIdentifier`, `WFControlFlowMode` |140| Find Photos | `is.workflow.actions.filter.photos` | `WFContentItemFilter` (see FILTERS.md) |141| Delete Photos | `is.workflow.actions.deletephotos` | `photos` (**NOT** `WFInput`!) |142143## Detailed Reference Files144145For complete documentation, see:146- [PLIST_FORMAT.md](PLIST_FORMAT.md) - Complete plist structure147- [ACTIONS.md](ACTIONS.md) - All 427 WF*Action identifiers and parameters148- [APPINTENTS.md](APPINTENTS.md) - All 728 AppIntent actions149- [PARAMETER_TYPES.md](PARAMETER_TYPES.md) - All parameter value types and serialization formats150- [VARIABLES.md](VARIABLES.md) - Variable reference system151- [CONTROL_FLOW.md](CONTROL_FLOW.md) - Repeat, Conditional, Menu patterns152- [FILTERS.md](FILTERS.md) - Content filters for Find/Filter actions (photos, files, etc.)153- [EXAMPLES.md](EXAMPLES.md) - Complete working examples154155## Signing Shortcuts156157Shortcuts MUST be signed before they can be imported. Use the macOS `shortcuts` CLI:158159```bash160# Sign for anyone to use161shortcuts sign --mode anyone --input MyShortcut.shortcut --output MyShortcut_signed.shortcut162163# Sign for people who know you164shortcuts sign --mode people-who-know-me --input MyShortcut.shortcut --output MyShortcut_signed.shortcut165```166167The signing process:1681. Write your plist as XML to a `.shortcut` file1692. Run `shortcuts sign` to add cryptographic signature (~19KB added)1703. The signed file can be opened/imported into Shortcuts.app171172## Workflow for Creating Shortcuts1731741. **Define actions** - List what the shortcut should do1752. **Generate UUIDs** - Each action that produces output needs a unique UUID1763. **Build action array** - Create each action dictionary with identifier and parameters1774. **Wire variable references** - Connect outputs to inputs using `OutputUUID`1785. **Wrap in plist** - Add the root structure with icon, name, version1796. **Write to file** - Save as `.shortcut` (XML plist format is fine)1807. **Sign** - Run `shortcuts sign` to make it importable181182## Key Rules1831841. **UUIDs must be uppercase**: `A1B2C3D4-E5F6-7890-ABCD-EF1234567890`1852. **WFControlFlowMode is an integer**: Use `<integer>0</integer>` not `<string>0</string>`1863. **Range keys use format**: `{position, length}` - e.g., `{0, 1}` for first character1874. **The placeholder character**: `` (U+FFFC) marks where variables are inserted1885. **Control flow needs matching ends**: Every repeat/if/menu start needs an end action with same `GroupingIdentifier`189190## Related Skills191- `applescript-jxa` — Mac automation192- `keyboard-maestro` — workflow automation193- `raycast-extensions` — Raycast shortcuts194195## GitNexus Index196This skill is indexed by GitNexus for knowledge graph traversal.197Index path: /Users/localuser/.claude/skills/shortcuts-skill/.gitnexus198Last indexed: 2026-05-23