notes-automation-workflows
Skill75 starsChanged 4 months agoMITView on GitHub
notes-automation-workflows — Automate bulk Apple Notes workflows: discovery, filtering, and scripted enrichment for links/photos.
- Installs packages
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Use this skill for scripted, repeatable Apple Notes operations that go beyond single-note edits.
- Very specific: line 67
Avoid relying on memo index-based addressing for scripts.
- Very specific: line 73
Use AppleScript with body (not plain text) and id:
- Very specific: line 83
Prefer updating by id for correctness and stability.
- Distinctive: line 87
When a user asks for the last X days, start with a filtered enumeration in AppleScript so every candidate is in-bounds before heavy …
- Distinctive: line 107
After loading candidates, classify each note before writing:
- Very specific: line 123
Never duplicate summary blocks.
- Very specific: line 133
Keep all appended summaries as HTML and prepend via body.
- Distinctive: line 135
Keep summaries short and task-scoped (2–5 sentences max).
- Distinctive: line 143
keep a clear label so the next pass can retry when source access improves
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notes Automation Workflows
Use this skill for scripted, repeatable Apple Notes operations that go beyond single-note edits.
When to use
- "Review my notes from last N days" or periodic cleanup/triage tasks.
- Adding structured summaries to notes that contain links.
- Adding summaries for image/photo notes.
- Updating notes programmatically without manual, one-by-one edits.
- Creating a translated or otherwise transformed copy of a rich-text note while preserving its structure.
When not to use
- Single small edits: use the
memo/Notesinteractive flow directly. - Sensitive credential text cleanup: use explicit user confirmation before summarizing.
- Non-Apple notes sources (Obsidian, Notion, etc.)
Prerequisites
- macOS Notes.app
osascriptavailable- User has granted Automation access to Notes.app in System Settings → Privacy & Security → Automation
- Apple Notes has the target notes in a reachable account (usually iCloud)
memo CLI reliability
The memo CLI tool frequently breaks after Homebrew/Python updates due to a stale interpreter path. Diagnose with /opt/homebrew/bin/memo 2>&1 — typical error: bad interpreter: No such file or directory. Fix via brew uninstall memo && brew install antoniorodr/memo/memo. When broken, fall through entirely to AppleScript (see search section below).
Searching notes reliably
Title-only AppleScript query is the fastest, most reliable search method. Use before any other approach:
# Search by title only — instant even with thousands of notes
osascript -e 'tell application "Notes" to get name of every note whose name contains "keyword"'
# Retrieve title + body of a single matched note (use sparingly)
osascript -e 'tell application "Notes" to set target to first note whose name contains "keyword"' \
-e '{name:name of target, body:(body of target)}'Critical timing constraint: Body access (body of n) iterated across every note in a large account times out at 30s. Title-only search has no this problem. Restrict full-body iteration to single-note retrieval or folder-scoped queries.
Core strategy
For anything beyond one note, use AppleScript first-pass enumeration + AppleScript updates.
Avoid relying on memo index-based addressing for scripts.
For a single note that must be created and shown on screen, follow the quick-create procedure. It covers the memo bad-interpreter fallback, account/folder discovery, HTML-body creation, show/activate, and folder-scoped read-back verification.
Reliable read/write path
Use AppleScript with body (not plain text) and id:
tell application "Notes"
set target to first note whose id is "<note-id>"
set noteBody to (body of target) as string
set noteAttachments to count of attachments of target
end tellPrefer updating by id for correctness and stability.
14-day sweep pattern
When a user asks for the last X days, start with a filtered enumeration in AppleScript so every candidate is in-bounds before heavy processing.
tell application "Notes"
set cutoff to (current date) - (14 * days)
set out to ""
repeat with a in accounts
set nset to (notes of a whose (modification date >= cutoff))
repeat with n in nset
set out to out & (id of n as string) & "\u001f" & (name of n as string) & "\u001f" & (count of attachments of n as string) & "\u001f" & ((body of n) as string) & "\n"
end repeat
end repeat
return out
end tellThis keeps pagination/sort order issues out of the script and gives a stable candidate list.
Classification rules used in enrichment workflows
After loading candidates, classify each note before writing:
- Link note
- URL regex appears in title or body (
http://orhttps://).
- Photo/attachment note
attachments > 0- stripped text body is minimal/noisy (
len(text) <= ~40) or only boilerplate.
- Regular text note
- No actionable link
- Non-empty readable text and no dedicated attachment-only signals
For link notes, summarize source content and prepend the note body with a single summary block. For photo-only notes, prepend a concise photo summary block (or a clear placeholder if the image is inaccessible).
Idempotent updates
Never duplicate summary blocks. Before writing, check if body already contains your summary marker, e.g.:
if (body of target) does not contain "<b>Summary:</b>" then
set body of target to ("<div><b>Summary:</b> ...</div><div><br></div>") & (body of target)
end ifContent formatting requirements
- Keep all appended summaries as HTML and prepend via
body. - Wrap each inserted piece in
<div>and separate entries with<div><br></div>. - Keep summaries short and task-scoped (2–5 sentences max).
Link-source handling
web_extract coverage varies by site. If a source is unsupported:
- record that as a blocker in the summary
- summarize from cached context only when allowed
- keep a clear label so the next pass can retry when source access improves
Validation checklist
After writes, verify:
- expected notes in scope were touched
- link notes now include one summary block each
- photo/attachment-only notes are marked in a consistent format
- non-link/non-photo notes were not unexpectedly rewritten
Other versions1 project uses a version of this.
Word for word · 1
- AtlasOmnia/donna-starter★ 136100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- apple-remindersSkill
- application-security-reviewSkill
- browser-harness-authoringSkill
- claude-designSkill
- codebase-inspectionSkill
- coding-worktree-recoverySkill
- computer-useSkill
- content-styleSkill
- cross-browser-typography-qaSkill
- daily-news-digestsSkill
- daily-note-wrapupSkill
- destination-trip-planningSkill
- discord-connectSkill
- dogfoodSkill
- domestic-trip-planningSkill
- dynamic-content-extractionSkill
- evidence-based-repliesSkill
- external-model-reviewSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-pre-push-gatesSkill
- github-pr-workflowSkill
- github-readme-maintenanceSkill
- github-repo-managementSkill
- github-workflowsSkill
- google-workspaceSkill
- hermes-agent-skill-authoringSkill
- hermes-agentSkill
- hermes-config-editingSkill
- hermes-context-optimizationSkill
- hermes-desktop-pluginsSkill
- hermes-diagnostic-reviewSkill
- hermes-mnemosyneSkill
- hermes-nightly-self-check-decisionsSkill
- hermes-overnight-autonomySkill
- hermes-plugin-developmentSkill
- hermes-plugin-evaluationSkill
- hermes-self-evaluationSkill
- hermes-session-maintenanceSkill
- hermes-themesSkill
- hf-model-card-researchSkill
- imessageSkill
- inspecting-hermes-desktop-domSkill
- local-app-github-publishingSkill
- local-discoverySkill
- local-model-selectionSkill
- macos-app-automationSkill
- macos-storage-managementSkill
- mapsSkill
- marketing-collateral-designSkill
- marketplace-purchase-vettingSkill
- meal-trackerSkill
- messaging-gateway-troubleshootingSkill
- meta-business-postingSkill
- mnemosyne-maintenanceSkill
- notion-artifact-captureSkill
- notionSkill
- obsidian-memory-architectureSkill
- obsidianSkill
- The first 60 shown.
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
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.

