一键导入
add-actions
Add Actions Menu commands to scripts and scriptlet bundles with setActions() and companion .actions.md files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add Actions Menu commands to scripts and scriptlet bundles with setActions() and companion .actions.md files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agent-facing DevTools for Script Kit GPUI: use protocol, MCP, and CLI primitives to inspect, control, measure, debug, benchmark, and prove real app UI behavior from bug reports without defaulting to prewritten agentic-testing recipes.
Manage the Notes window — creating, searching, editing, and automating notes via the SDK and automation protocol.
Use the local agy CLI as a fast Script Kit GPUI app inspector by prompting it to drive existing script-kit-devtools primitives, capture logs, and produce a compact investigation result from a user bug report or inspection prompt.
Configure external MCP servers for scripts and Agent Chat. Use when the user wants to add, remove, enable, disable, or inspect MCP servers in Script Kit.
Create or update scriptlet bundles for text expansions, snippets, shell commands, and lightweight helpers in a single markdown file.
Start and manage Agent Chat conversations from scripts, including typed context parts, streaming status, and chat lifecycle operations.
| name | add-actions |
| description | Add Actions Menu commands to scripts and scriptlet bundles with setActions() and companion .actions.md files. |
Use this skill when the user wants Actions Menu commands (Cmd+K), script-local actions via setActions(), or shared scriptlet actions via <bundle>.actions.md.
For scripts:
~/.scriptkit/plugins/main/scripts/<name>.ts
For scriptlet bundles:
~/.scriptkit/plugins/main/scriptlets/<bundle>.md
~/.scriptkit/plugins/main/scriptlets/<bundle>.actions.md
import "@scriptkit/sdk";
await setActions([
{
name: "Copy Input",
shortcut: "cmd+c",
onAction: async (input) => {
await copy(input);
await hud("Copied");
},
},
{
name: "Clear Input",
shortcut: "cmd+backspace",
onAction: async () => {
await setInput("");
await hud("Cleared");
},
},
]);
await arg("Type something");
Parent bundle:
## Script Kit
~~~metadata
description: Open the Script Kit homepage
~~~
~~~open
https://www.scriptkit.com
~~~
Companion actions file:
### Copy URL
~~~bash
echo -n "{{content}}" | pbcopy
~~~
### Open in Safari
~~~bash
open -a Safari "{{content}}"
~~~
main.md + main.actions.md.{{content}} inside companion actions to read the selected parent command content.~/.scriptkit/plugins/examples/scriptlets/custom-actions/main.md — parent bundle entries that receive shared actions~/.scriptkit/plugins/examples/scriptlets/custom-actions/main.actions.md — companion Actions Menu definitions using {{content}}~/.scriptkit/plugins/examples/scriptlets/custom-actions.md~/.scriptkit/plugins/examples/scriptlets/custom-actions.actions.md