一键导入
troubleshoot
Diagnose and fix common Script Kit issues. Use when the user reports bugs, crashes, missing features, or unexpected behavior in Script Kit GPUI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix common Script Kit issues. Use when the user reports bugs, crashes, missing features, or unexpected behavior in Script Kit GPUI.
用 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.
Add Actions Menu commands to scripts and scriptlet bundles with setActions() and companion .actions.md files.
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.
| name | troubleshoot |
| description | Diagnose and fix common Script Kit issues. Use when the user reports bugs, crashes, missing features, or unexpected behavior in Script Kit GPUI. |
Diagnose and fix common Script Kit issues.
~/.scriptkit/logs/script-kit-gpui.jsonl
JSONL format — each line is a JSON object with timestamp, level, message, and optional fields.
# Last 50 lines
tail -50 ~/.scriptkit/logs/script-kit-gpui.jsonl
# Filter errors
grep '"level":"ERROR"' ~/.scriptkit/logs/script-kit-gpui.jsonl | tail -20
# Filter by module
grep '"target":"script_kit"' ~/.scriptkit/logs/script-kit-gpui.jsonl | tail -20
Set SCRIPT_KIT_AI_LOG=1 for compact, human-readable log output (useful for debugging):
SCRIPT_KIT_AI_LOG=1 ~/.scriptkit/cache/Script\ Kit.app/Contents/MacOS/script-kit-gpui
~/.scriptkit/plugins/main/scripts/*.tsexport const metadata = { name: "..." }bun check ~/.scriptkit/plugins/main/scripts/your-script.tsimport "@scriptkit/sdk";which bun in terminalfs.readFile, child_process with Bun equivalents~/.scriptkit/config.ts has correct hotkey formatcat ~/.scriptkit/theme.json | python3 -m json.tool"#RRGGBB", "rgb(r,g,b)", or "rgba(r,g,b,a)"~/.scriptkit/plugins/main/scriptlets/*.md---\nname: ...\n--- at the top```bash, ```tool:name, or ```template:nametool: scriptletsimport "@scriptkit/sdk";
export const metadata = { name: "Debug Example", description: "Testing" };
console.log("Script started");
const input = await arg("Enter something");
console.log("User entered:", input);
// Check logs for output
cd ~/.scriptkit
bun run plugins/main/scripts/your-script.ts
cd ~/.scriptkit
bun run typecheck
| What | Where |
|---|---|
| App logs | ~/.scriptkit/logs/script-kit-gpui.jsonl |
| Scripts | ~/.scriptkit/plugins/main/scripts/ |
| Extensions | ~/.scriptkit/plugins/main/scriptlets/ |
| Config | ~/.scriptkit/config.ts |
| Theme | ~/.scriptkit/theme.json |
| SDK (read-only) | ~/.scriptkit/sdk/kit-sdk.ts |
| Databases | ~/.scriptkit/db/ |
| Cache | ~/.scriptkit/cache/ |
To reset configuration:
rm ~/.scriptkit/config.ts
rm ~/.scriptkit/theme.json
Script Kit will recreate them with defaults on next launch.
To reset everything (nuclear option):
rm -rf ~/.scriptkit
Script Kit will recreate the full workspace on next launch.