agentleFS
fredchufredchu/claude-dotfiles/skills/apple-notes/SKILL.md

apple-notes

Skill2 starsChanged 4 months agoMITView on GitHub

Manages Apple Notes via MCP tools. Use when the user mentions 筆記, notes, 記一下, 進度, 做到哪了, or wants to save/search/read/update/organize notes in Apple Notes. Also triggers on Session Handoff and any operation targeting the 'Claude 工作區' folder. Does NOT handle: Reminders/待辦 (use rem-cli), calendar/行程 (use ical-cli).

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use teams-meeting-pipeline, songwriting-and-ai-music and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 8 projects that use this

  • braxtonROSE4Skill

    songwriting-and-ai-music

    Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

    Also in 10 projects that use this

  • aivrarSkill

    competitor-news-monitor

    Watch named companies for material news; cited digests.

    Also in 5 projects that use this

  • aivrarSkill

    document-to-action-items

    Extract cited obligations, deadlines, tasks from documents.

    Also in 5 projects that use this

  • braxtonROSE4Skill

    findmy

    Track Apple devices and AirTags via FindMy.app on macOS using AppleScript and screen capture.

    Also in 10 projects that use this

  • kevinnftSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 5 projects that use this

  • +2 more from aivrar
  • +3 more from braxtonROSE4

The file

Files
SKILL.md

Apple Notes — MCP 操作規則

Gotchas (Read First)

  1. 所有我產生的內容一律放「Claude 工作區」資料夾 — 不碰用戶其他資料夾,除非明確要求
  2. 建立筆記用 AppleScript(不用 MCP create-note,因為 title 參數會標題重複)
  3. 格式用 HTML — Apple Notes 不渲染 markdown
  4. update-note 是全量覆寫 — 必須先 get-note-content 讀取現有內容,合併後再寫回
  5. 搜尋先用用戶原話 — 搜不到再 list-folders 看結構,最後才擴展關鍵字
  6. 密碼保護的筆記無法存取 — 遇到時告知用戶

macOS 26 HTML 格式規則(必遵守)

macOS 26 Notes.app 會自動加 font-size: 11px。<h2>/<h3> 在 iPhone 上會變小字。

格式HTML
筆記標題<h1>...</h1>
段落標題<div><span style="font-size: 18px"><b>...</b></span></div>
內文<div>...</div>(不加 font-size)
清單<ul><li>...</li></ul> 或 <ol><li>...</li></ol>
空行<div><br></div>

禁止:<h2>/<h3>、<p>、font-size 19px+

建立筆記的標準流程

-- 用 AppleScript 建立(避免 MCP create-note 標題重複)
tell application "Notes"
    tell account "iCloud"
        make new note at folder "Claude 工作區" with properties {body:"<h1>標題</h1><div>內容</div>"}
    end tell
end tell

讀取/搜尋/更新用 MCP 工具即可。更新用 update-note(format: "html"),HTML 遵守上述格式規則。

更新筆記的標準流程

1. mcp__apple-notes__get-note-content  →  讀取現有內容
2. 合併/修改內容
3. mcp__apple-notes__update-note
   - title: "筆記標題"
   - body: "完整的新內容(HTML)"
   - format: "html"

搜尋筆記

1. mcp__apple-notes__search-notes
   - query: "用戶的原話關鍵字"

2. 搜不到 → mcp__apple-notes__list-folders 看結構
3. 還是找不到 → 擴展同義詞再搜

常用工具速查

工具用途
create-note建立筆記(需搭配 move-note)
search-notes搜尋筆記(title + content)
get-note-content讀取筆記內容
get-note-details取得 metadata(建立/修改時間)
update-note覆寫筆記內容(先讀再寫)
delete-note刪除筆記(移到 Recently Deleted)
move-note搬移筆記到指定資料夾
list-notes列出所有筆記或特定資料夾內的
list-folders列出所有資料夾
create-folder建立新資料夾
get-note-markdown取得 markdown 格式(checklist 自動標 [x]/[ ])
get-checklist-state讀取 checklist 勾選狀態(需 Full Disk Access)
batch-move-notes批次搬移
batch-delete-notes批次刪除

HTML 格式範例

<h1>筆記標題</h1>
<div><i>日期或副標題</i></div>
<div><br></div>
<div><span style="font-size: 18px"><b>段落標題</b></span></div>
<div>一般內文</div>
<div><b>粗體</b>、<i>斜體</i></div>
<ul>
  <li>無序清單項目</li>
</ul>
<ol>
  <li>有序清單項目</li>
</ol>

不要用 markdown 語法(#、**、-),Apple Notes 不會渲染。 詳細規則見 memory:feedback_apple_notes_html_formatting.md

Checklist 讀取

MCP 已原生支援 checklist 狀態讀取(v1.2.19+,需 Full Disk Access):

1. mcp__apple-notes__get-checklist-state  →  返回每項的 done/undone
   - noteTitle: "筆記標題"

2. mcp__apple-notes__get-note-markdown    →  自動標註 [x]/[ ]
   - noteTitle: "筆記標題"

如 MCP host 未授予 Full Disk Access,會優雅降級(checklist 項目不含勾選狀態)。

備用方案(不需 Full Disk Access):

  • Python 腳本:/Users/fredchu/Documents/For_Claude/scripts/parse_checklist_v2.py
  • 執行:/tmp/notes_parse/bin/python /Users/fredchu/Documents/For_Claude/scripts/parse_checklist_v2.py

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.