Shortcuts Playground

Create Apple Shortcuts with natural language using Claude Code or Codex.
Shortcuts Playground is a plugin for Claude Code and Codex that lets you turn any idea into a shortcut for Apple's Shortcuts app. Describe what you want in plain English; a few minutes later, you get a real, signed .shortcut file ready to import into the Shortcuts app.
Under the hood, shortcuts have always been XML files that get signed and encrypted into a special, Apple-only .shortcut format. Shortcuts Playground ships a comprehensive knowledge base that teaches Claude and Codex how Shortcuts actions work, what syntax they use, and how they connect to one another. Agents generate the XML, validate it through a loop, and sign it using Apple's native shortcuts CLI.
For OS 27-era Shortcuts, the plugin also ships target-gated ToolKit v78 action coverage from macOS 27 and iOS 27 Simulator, plus reviewed static Apple-derived grounding, parameter-key, enum-case, automation-trigger, and exported WFWorkflowTriggers catalogs. Those catalogs are generated from Apple's local ToolKit/ToolRenderer/WorkflowKit metadata and maintainer-exported shortcut XML, then packaged as JSON so existing users do not need macOS 27 or private Apple frameworks.
The result is a valid shortcut, built from a sentence.
A project by Federico Viticci. Read more here.
Current Release
v1.2.1 extends the early, opt-in macOS/iOS 27 support while keeping macOS 26 users on the existing validation surface by default.
- macOS/iOS 27 ToolKit v78 action snapshots, parameter catalogs, enum catalogs, trigger metadata, and sanitized exported
WFWorkflowTriggers samples ship as static JSON; users do not need macOS 27 or private Apple frameworks installed.
- New OS 27-era authoring coverage includes Stored Content, Add Item to List, Otherwise If, Get Selected Text, Get What's On Screen, VPN actions, Notes markdown, Safari tab groups, route options, and several AppIntent parameter/enum updates.
- The OS 27 automation header catalog includes exported Display and Stage Manager samples plus conservative External Drive, File Modified, and Folder Changed coverage. Display and Stage Manager have copyable headers; current Mac drive/file/folder exports are documented as lossy and require manual picker configuration in Shortcuts.
- Validators now catch more blank fields, wrong input keys, bad enum values, invalid boolean parameters, AppIntent schema typos, conditional wiring errors, and signing/import pitfalls across both Claude Code and Codex.
- OS 27-only identifiers and parameters require
target_macos = "27" / SHORTCUTS_PLAYGROUND_TARGET_MACOS=27; default validation remains conservative for existing macOS 26 users.
What It Does
You can install Shortcuts Playground in either Claude Code or Codex. At the moment, the Claude Code version of the plugin offers a richer experience thanks to dedicated commands and agents.
- Build from scratch. In Claude Code, type
/shortcuts-playground:build followed by a description of the shortcut you want. Claude designs the action list, wires variables, picks an icon, validates the XML through a self-correcting loop, and signs the result.
- Remix an existing shortcut. Type
/shortcuts-playground:remix with a path to an unsigned .xml shortcut file and describe what to change. The agent applies a surgical diff — preserving every action, UUID, and icon you didn't ask to touch.
- Automatic validation. Claude Code runs a
PostToolUse hook on every file write. Codex can do the same when Codex plugin hooks are enabled with [features].plugin_hooks = true. Errors feed back into the agent's context so it can fix them before signing. This is called a Craig Loop. It adds a few seconds of latency but dramatically improves output quality.
Requirements
- macOS. The signing step uses the built-in
shortcuts CLI, which is macOS-only.
- Claude Code or Codex. Install from claude.com/claude-code or openai.com/codex. Either the desktop apps or CLIs will work.
- Python 3.10+. The bundled validator requires 3.10 or later. The system Python on older macOS versions ships 3.9 and will fail. Install a newer version via Homebrew (
brew install python3) or set SHORTCUTS_PLAYGROUND_PYTHON to point at your interpreter.
Installation in Claude
In the terminal
Two commands. Run them from any directory:
# 1. Register the marketplace
claude plugin marketplace add https://github.com/viticci/shortcuts-playground-plugin
# 2. Install the plugin
claude plugin install shortcuts-playground@shortcuts-playground