apple-notes-sync

apple-notes-sync is a skill for Claude Code, Codex, Cursor from nongjun/feishu-cursor-claw. It costs 55 tokens per session (717 once invoked), scanned A, original, MIT.

A Mac Notes synchronisation workflow that copies notes into a workspace and adds them to a searchable semantic index. Semantic search finds related meaning, not only exact words.

In plain words
What is it for?
Use it to sync Apple Notes, index the results, search them by meaning, process selected folders or limits, and optionally schedule daily synchronisation.
Why use it?
It makes notes available in the workspace and easier to find by topic or idea.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nongjun/feishu-cursor-claw/apple-notes-sync
Any agent
npx skills add nongjun/feishu-cursor-claw --skill apple-notes-sync
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Claude Code, Codex, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apple-notes-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/apple-notes-sync.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/apple-notes-sync)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/apple-notes-sync"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/apple-notes-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.00717
Opus 5 $0.00028 $0.00358
Sonnet 5 $0.00011 $0.00143
Haiku 4.5 $0.00006 $0.00072

Measured 5d ago against content hash 63c6004c3a38, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apple-notes-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/.cursor/skills/apple-notes-sync/SKILL.md · 96 lines

What it actually says

Mac 备忘录向量化同步

前置条件

  • macOS 系统
  • 备忘录应用中有内容
  • relay-bot/sync-apple-notes.ts 脚本存在

执行步骤

1. 同步备忘录

bun ~/Documents/Ai管理的文件夹/relay-bot/sync-apple-notes.ts

首次运行需要授权(系统弹窗),用户需允许访问备忘录。

备忘录数量大(>500 条)时先用 --limit 测试:

bun ~/Documents/Ai管理的文件夹/relay-bot/sync-apple-notes.ts --limit 50

2. 等待完成

  • 约 1000 条需要 15-20 分钟
  • 增量同步自动跳过未修改的备忘录
  • 输出目录:~/Documents/Ai管理的文件夹/apple-notes/

3. 加入向量索引

bun ~/Documents/Ai管理的文件夹/relay-bot/memory-tool.ts index

4. 验证搜索

bun ~/Documents/Ai管理的文件夹/relay-bot/memory-tool.ts search "关键词"

脚本参数

参数 说明 示例
--folder 只同步指定文件夹 --folder "工作"
--limit 限制每个文件夹处理数量 --limit 100

常见问题

数据库锁定 (database is locked)

lsof ~/Documents/Ai管理的文件夹/.memory.sqlite
kill <PID>  # 杀掉非 server.ts 的进程

AppleScript 超时

备忘录太多导致超时。用 --limit 分批处理。

授权被拒绝

系统设置 → 隐私与安全性 → 自动化 → 允许终端/Cursor 访问 Notes

定时同步(可选)

cron-jobs.json 添加:

{
  "id": "apple-notes-sync",
  "name": "每日同步 Mac 备忘录",
  "enabled": true,
  "schedule": { "kind": "cron", "expr": "0 3 * * *", "tz": "Asia/Shanghai" },
  "message": "执行 Mac 备忘录同步:\n1. 运行 sync-apple-notes.ts\n2. 运行 memory-tool.ts index\n3. 汇报同步结果"
}

输出结构

apple-notes/
├── Notes/              # 默认文件夹
│   ├── 备忘录1.md
│   └── 备忘录2.md
├── To Do/              # 待办文件夹
└── .sync-manifest.json # 同步状态记录
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 96 lines · 55 tokens per session scan A 63c6004c3a38

Subscribe to this mod's changes

apple-notes-sync is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 717 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.