一键导入
manage-notes
Manage the Notes window — creating, searching, editing, and automating notes via the SDK and automation protocol.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage the Notes window — creating, searching, editing, and automating notes via the SDK and automation protocol.
用 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.
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.
Start and manage Agent Chat conversations from scripts, including typed context parts, streaming status, and chat lifecycle operations.
| name | manage-notes |
| description | Manage the Notes window — creating, searching, editing, and automating notes via the SDK and automation protocol. |
Create and automate notes in Script Kit's floating Notes window.
Notes are stored in SQLite at ~/.scriptkit/db/notes.sqlite. The Notes window manages them directly. Scripts and agents must use the runtime write ports (kit/notes_create, kit/notes_update, kit/notes_delete) or the Notes automation target; do not raw-write the database.
Every active note is also mirrored as a read-only markdown file at ~/.scriptkit/notes/<slug>-<id8>.md, so external tools (grep, editors, git) can read note content as plain files. The mirror is write-through from the app; treat the files as read-only — edits to them are not synced back and are overwritten on the next save.
Cmd+Ctrl+N by default — override with notesHotkey or disable with notesHotkeyEnabled: false in config.ts// ~/.scriptkit/config.ts
notesHotkey: {
modifiers: ["meta", "shift"],
key: "KeyN"
}
#tag markdown[[Note Title]]Use the MCP notes tools when creating or organizing notes from an agent. They route through the app runtime, save any dirty open Notes editor before mutation, update the durable metadata index, and optionally open/select the changed note in the Notes window.
{
"name": "kit/notes_create",
"arguments": {
"title": "Project Plan",
"body": "# Project Plan\n\n#planning [[Research Notes]]",
"tags": ["planning", "projects/script-kit"],
"aliases": ["Plan"],
"open": true,
"select": true
}
}
{
"name": "kit/notes_update",
"arguments": {
"id": "NOTE_UUID",
"content": "# Project Plan\n\nUpdated body with [[Decision Log]].",
"tags": ["planning", "decisions"],
"aliases": ["Plan", "Project Plan"],
"open": true,
"select": true
}
}
Tags and aliases passed to the mutation tools are written into visible YAML frontmatter so users can edit them directly. Markdown #tags and [[Wiki Links]] are indexed from the note body. Backlinks are derived from the normalized link index; they are not copied into note content.
Read kit://notes to inspect organized notes. The resource returns each note's tags, aliases, outbound link count, and backlink count, and supports ?tag=..., ?alias=..., ?link=..., or ?q=... filters. Add &full=true to get complete note bodies instead of 240-char previews (bounded to 20 notes by default). Read kit://notes/{id} for full note content plus the same metadata.
Notes tagged #instructions (or tags: [instructions] in frontmatter) are standing agent guidance: new Agent Chat threads automatically stage kit://notes?tag=instructions&full=true as context, so the agent reads them at thread start. Use this for durable user preferences, style rules, or project conventions that should apply to every conversation.
Notes created from Agent Chat ("Save as Note") carry source: scriptkit://agent-chat/{thread_id} frontmatter linking back to the originating conversation. kit/notes_create accepts an optional source string for the same purpose.
The Notes window is a first-class automation target. Use target: { "type": "kind", "kind": "notes" } to address it.
| Semantic ID | Element |
|---|---|
panel:notes-window | The Notes window container |
input:notes-editor | The active editor area |
{
"type": "getElements",
"requestId": "elm-notes",
"target": { "type": "kind", "kind": "notes" },
"limit": 10
}
{
"type": "waitFor",
"requestId": "w-notes",
"target": { "type": "kind", "kind": "notes" },
"condition": {
"type": "elementExists",
"semanticId": "input:notes-editor"
},
"timeout": 3000,
"pollInterval": 25
}
{
"type": "batch",
"requestId": "b-notes",
"target": { "type": "kind", "kind": "notes" },
"commands": [
{ "type": "setInput", "text": "Hello from automation" }
]
}
Use the Notes UI actions for cross-surface handoffs:
These are UI actions, not JavaScript globals. The current public Notes script surface is the automation target (kind: notes) plus the runtime MCP notes tools above unless real Notes functions are added to scripts/kit-sdk.ts.
notes.sqlite directly from scripts. Use the MCP notes tools for creation/update/delete and the automation protocol for window/editor control.Cmd+Ctrl+N unless overridden via notesHotkey or disabled via notesHotkeyEnabled: false.getElements and batch commands targeting Notes require the Notes window to be open. Use waitFor with a timeout to handle the case where it is not yet visible.kind: notes) and MCP notes tools. Do not document or rely on notesOpen(), notesCreate(), or similar JavaScript globals unless they are added to scripts/kit-sdk.ts.~/.scriptkit/plugins/examples/scriptlets/notes/main.md — copy-ready Notes automation payloads for getElements, waitFor, and batch~/.scriptkit/plugins/examples/scriptlets/notes.md — auto-generated flat copy of the canonical sourcekit/notes_create can create a tagged/linked note and open/select it in NotesgetElements returns elements with panel:notes-window and input:notes-editor semantic IDsbatch commands successfully set editor content