360 Secure SkillHub
360 安全技能中心

Notesctl

notesctl 在 macOS(darwin) 上通过捆绑的 shell 脚本封装 Apple Notes 操作:notes_post/notes_new 创建笔记,notes_list 列出,notes_search 搜索,notes_export 交互选择后导出到指定目录;编辑建议用 memo notes -e 或改用追加。依赖 memo、python3、osascript。

clinchcc
clinchcc
热度 92.83
最近更新 2026-05-18 11:58:35
分类:知识依赖:代码执行 / 读写文件应用场景:笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add notesctl-skill-for-openclaw
Metadata
name
notesctl
description
Manage Apple Notes via deterministic local scripts (create, append, list, search, export, and edit). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
metadata
{"openclaw":{"emoji":"📝","os":["darwin"],"requires":{"bins":["memo","python3","osascript"]}}}

notesctl (Apple Notes, low-token)

Goal

Minimize token usage and avoid fragile quoting by routing Apple Notes operations through bundled scripts.

Quick start

Create a new note (deterministic title/body)

  • JSON stdin (recommended):
echo '{"title":"Title","body":"Line 1\nLine 2","folder":"Notes"}' | {baseDir}/scripts/notes_post.sh
  • Direct args:
{baseDir}/scripts/notes_new.sh "Title" $'Body line 1\nBody line 2' "Notes"

List/search/export

{baseDir}/scripts/notes_list.sh "Notes"
{baseDir}/scripts/notes_search.sh "query" "Notes"
{baseDir}/scripts/notes_export.sh "query" "Notes" "/tmp"  # interactive select then export

Output conventions

  • Keep receipts short: Wrote to Notes: <title>.

Notes on editing

Editing existing notes is inherently more fragile:

  • Prefer append workflows or create a new note with a reference.
  • If the user explicitly wants interactive editing, use memo notes -e (manual selection + editor).