List before you run. The shortcuts live on this Mac, not in the repo, so
their names cannot be known without asking. Call the list tool first and
read the names back; guessing a name burns a turn and fails.
Run by exact name and pass input.run takes the shortcut name plus an
optional input string, which becomes the shortcut's input. Pass the value
the user gave (a name, a path, a number) as input instead of expecting the
shortcut to prompt for it.
Runs happen in the background. Shortcuts run through Shortcuts Events,
so the Shortcuts app does not open or steal focus. A shortcut that shows its
own dialog may still need the user to click it.
Read the result, and explain empty output. A shortcut that returns a
value gives it back as output; one that acts without returning gives an
empty output, which is success, not failure. If the run fails with
"automation access" or "canceled", say so plainly and give the fix: grant
Automation permission, or pass input instead of leaving a dialog to fill in.
1---2name: shortcuts3description: Shortcuts4---56# Shortcuts781. **List before you run.** The shortcuts live on this Mac, not in the repo, so9 their names cannot be known without asking. Call the `list` tool first and10 read the names back; guessing a name burns a turn and fails.112. **Run by exact name and pass input.** `run` takes the shortcut name plus an12 optional `input` string, which becomes the shortcut's input. Pass the value13 the user gave (a name, a path, a number) as `input` instead of expecting the14 shortcut to prompt for it.153. **Runs happen in the background.** Shortcuts run through `Shortcuts Events`,16 so the Shortcuts app does not open or steal focus. A shortcut that shows its17 own dialog may still need the user to click it.184. **Read the result, and explain empty output.** A shortcut that returns a19 value gives it back as `output`; one that acts without returning gives an20 empty `output`, which is success, not failure. If the run fails with21 "automation access" or "canceled", say so plainly and give the fix: grant22 Automation permission, or pass `input` instead of leaving a dialog to fill in.
Run npx skillmds@latest add zfinix/shortcuts in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Shortcuts It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
zfinix (@zfinix) published this skill. Their other Agent Skills are listed on their SkillMD profile.