返回顶部
m

macos-notes

Create, read, search, and manage macOS Notes via AppleScript. Use when the user asks to take a note, jot something down, save an idea, create meeting notes, read a note, search notes, or anything involving Apple Notes on macOS. Triggers on requests like "note this down", "save this as a note", "create a note about X", "show my notes", "search my notes for X", "what did I write about X". macOS only.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
703
下载量
0
收藏
概述
安装方式
版本历史

macos-notes

# macOS Notes Manage Apple Notes via `$SKILL_DIR/scripts/notes.sh`. Notes content is stored as HTML internally; the script accepts plain text or HTML body and returns plaintext when reading. ## Quick start ### List folders Always list folders first to discover accounts and folder names: ```bash "$SKILL_DIR/scripts/notes.sh" list-folders ``` Output format: `account → folder` (one per line). ### Create a note ```bash echo '<json>' | "$SKILL_DIR/scripts/notes.sh" create-note ``` JSON fields: | Field | Required | Default | Description | |---|---|---|---| | `title` | yes | - | Note title (becomes the first line / heading) | | `body` | no | "" | Note content (plain text — converted to HTML automatically) | | `html` | no | "" | Raw HTML body (overrides `body` if both provided) | | `folder` | no | default folder | Folder name (from list-folders) | | `account` | no | default account | Account name (from list-folders) | ### Read a note ```bash echo '<json>' | "$SKILL_DIR/scripts/notes.sh" read-note ``` JSON fields: | Field | Required | Default | Description | |---|---|---|---| | `name` | yes | - | Note title (exact match) | | `folder` | no | all folders | Folder to search in | | `account` | no | default account | Account to search in | ### List notes ```bash echo '<json>' | "$SKILL_DIR/scripts/notes.sh" list-notes ``` JSON fields: | Field | Required | Default | Description | |---|---|---|---| | `folder` | no | default folder | Folder name | | `account` | no | default account | Account name | | `limit` | no | 20 | Max notes to return | ### Search notes ```bash echo '<json>' | "$SKILL_DIR/scripts/notes.sh" search-notes ``` JSON fields: | Field | Required | Default | Description | |---|---|---|---| | `query` | yes | - | Text to search for in note titles | | `account` | no | default account | Account to search in | | `limit` | no | 10 | Max results to return | ## Interpreting natural language Map user requests to commands: | User says | Command | Key fields | |---|---|---| | "Note this down: ..." | `create-note` | `title`, `body` | | "Save meeting notes" | `create-note` | `title: "Meeting notes — <date>"`, `body` | | "What did I write about X?" | `search-notes` | `query: "X"` | | "Show my notes" | `list-notes` | (defaults) | | "Read my note about X" | `read-note` | `name: "X"` | | "Save this in my work notes" | `create-note` | Match closest `account`/`folder` from list-folders | ## Example prompts **"Note down the API key format: prefix_xxxx"** ```bash echo '{"title":"API key format","body":"Format: prefix_xxxx"}' | "$SKILL_DIR/scripts/notes.sh" create-note ``` **"Show my recent notes"** ```bash echo '{}' | "$SKILL_DIR/scripts/notes.sh" list-notes ``` **"What did I write about passwords?"** ```bash echo '{"query":"password"}' | "$SKILL_DIR/scripts/notes.sh" search-notes ``` **"Read my note about Hinge"** ```bash echo '{"name":"Hinge"}' | "$SKILL_DIR/scripts/notes.sh" read-note ``` **"Create a meeting summary in my iCloud notes"** ```bash "$SKILL_DIR/scripts/notes.sh" list-folders ``` Then: ```bash echo '{"title":"Meeting summary — 2026-02-17","body":"Discussed roadmap.\n- Q1: launch MVP\n- Q2: iterate","account":"iCloud","folder":"Notes"}' | "$SKILL_DIR/scripts/notes.sh" create-note ``` ## Critical rules 1. **Always list folders first** if the user hasn't specified an account/folder — folder names are reused across accounts 2. **Specify both account and folder** when targeting a specific location — `folder: "Notes"` alone is ambiguous 3. **Password-protected notes are skipped** — the script cannot read or modify them 4. **Pass JSON via stdin** — never as a CLI argument (avoids leaking data in process list) 5. **All fields are validated** by the script (type coercion, range checks) — invalid input is rejected with an error 6. **All actions are logged** to `logs/notes.log` with timestamp, command, and note title 7. **Body uses plain text** — newlines in `body` are converted to `<br>` automatically; use `html` for rich formatting 8. **Note title = first line** — Notes.app treats the first line of the body as the note name

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 macos-notes-1776420070 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 macos-notes-1776420070 技能

通过命令行安装

skillhub install macos-notes-1776420070

下载 Zip 包

⬇ 下载 macos-notes v1.0.0

文件大小: 5.52 KB | 发布时间: 2026-4-17 19:57

v1.0.0 最新 2026-4-17 19:57
Initial release of macos-notes (v1.0.0):

- Create, read, search, and list macOS Notes via AppleScript and shell scripts.
- Supports specifying note title, body (plain text or HTML), account, and folder.
- Lists folders to identify accounts and folder names before creating or searching notes.
- Handles user requests like creating notes, searching, and listing notes using simple JSON input over stdin.
- Notes are stored as HTML internally; script ensures plaintext output when reading.
- Password-protected notes are skipped and cannot be read or modified.
- Actions are logged with command details and timestamps.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部