[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78XE4YJ98JQF484EEBHS39S":3,"skill-same:01M78XE4YJ98JQF484EEBHS39S":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M78XE4YJ98JQF484EEBHS39S","apple-notes-webhooks-events",null,"Monitor Apple Notes changes using file system events and Shortcuts triggers.\nTrigger: \"apple notes events\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--apple-notes-pack--apple-notes-webhooks-events\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: apple-notes-webhooks-events\ndescription: |\n  Monitor Apple Notes changes using file system events and Shortcuts triggers.\n  Trigger: \"apple notes events\".\nallowed-tools: Read, Write, Edit, Bash(osascript:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, macos, apple-notes, automation]\ncompatible-with: claude-code\n---\n\n# Apple Notes Webhooks & Events\n\n## Overview\n\nApple Notes has no webhook, pub\u002Fsub, or event streaming API. To detect changes, you must build your own event system using one of three approaches: (1) JXA polling that compares note snapshots at intervals, (2) file system events (FSEvents) on the NoteStore.sqlite database file for near-real-time change detection, or (3) Apple Shortcuts automations that trigger scripts when specific conditions are met. Each approach has different latency, reliability, and resource consumption tradeoffs.\n\n## Approach 1: JXA Polling (Recommended)\n\n```typescript\n\u002F\u002F src\u002Fevents\u002Fnotes-watcher.ts\nimport { execSync } from \"child_process\";\n\ninterface NoteSnapshot { id: string; title: string; modified: string; }\n\nlet lastSnapshot: Map\u003Cstring, string> = new Map();\n\nfunction detectChanges(): { added: string[]; modified: string[]; deleted: string[] } {\n  const current = JSON.parse(execSync(\n    `osascript -l JavaScript -e 'JSON.stringify(Application(\"Notes\").defaultAccount.notes().map(n => ({id: n.id(), title: n.name(), modified: n.modificationDate().toISOString()})))'`,\n    { encoding: \"utf8\", timeout: 30000 }\n  )) as NoteSnapshot[];\n\n  const currentMap = new Map(current.map(n => [n.id, n.modified]));\n  const added = current.filter(n => !lastSnapshot.has(n.id)).map(n => n.title);\n  const modified = current.filter(n =>\n    lastSnapshot.has(n.id) && lastSnapshot.get(n.id) !== n.modified\n  ).map(n => n.title);\n  const deleted = [...lastSnapshot.keys()].filter(id => !currentMap.has(id));\n\n  lastSnapshot = currentMap;\n  return { added, modified, deleted };\n}\n\n\u002F\u002F Poll every 60 seconds\nsetInterval(() => {\n  const changes = detectChanges();\n  if (changes.added.length || changes.modified.length || changes.deleted.length) {\n    console.log(\"Changes detected:\", JSON.stringify(changes));\n    \u002F\u002F Trigger downstream actions: export, sync, notify\n  }\n}, 60000);\n```\n\n## Approach 2: FSEvents on Notes Database\n\n```bash\n#!\u002Fbin\u002Fbash\n# Watch the Notes database directory for changes (near real-time)\n# This detects ANY change to the local Notes SQLite database\nNOTES_DB_DIR=\"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\"\n\n# Using fswatch (install via: brew install fswatch)\nfswatch -r \"$NOTES_DB_DIR\" | while read -r changed_file; do\n  # Filter for actual database changes (ignore WAL\u002FSHM churn)\n  case \"$changed_file\" in\n    *.sqlite)\n      echo \"$(date -Iseconds) Notes database changed: $changed_file\"\n      # Trigger your handler — but throttle to avoid rapid-fire\n      # The DB changes frequently during sync; debounce by 5 seconds\n      ;;\n  esac\ndone\n\n# Alternative: use macOS built-in log stream for Notes events\n# log stream --predicate 'subsystem == \"com.apple.notes\"' --style compact\n```\n\n## Approach 3: Shortcuts Automation Triggers\n\n```bash\n# Apple Shortcuts can trigger automations based on:\n# - Time of day (run export at midnight)\n# - App opens\u002Fcloses (Notes.app launched)\n# - Focus mode changes (work mode → sync work notes)\n\n# Create a Shortcut that runs your script when Notes.app opens:\n# 1. Shortcuts > Automations > App > Notes > \"Is Opened\"\n# 2. Add \"Run Shell Script\" action:\n#    osascript -l JavaScript \u002FUsers\u002Fyou\u002Fscripts\u002Fon-notes-open.js\n\n# Trigger a Shortcut from your scripts (for cross-app events):\nshortcuts run \"Notes Changed\" --input-type text --input \"$(date -Iseconds)\"\n```\n\n## Event Handler Pattern\n\n```typescript\n\u002F\u002F src\u002Fevents\u002Fhandler.ts\ntype NoteEvent = \"added\" | \"modified\" | \"deleted\";\ntype EventHandler = (event: NoteEvent, noteTitle: string) => void;\n\nconst handlers: EventHandler[] = [];\n\nfunction onNoteChange(handler: EventHandler): void {\n  handlers.push(handler);\n}\n\nfunction emitEvent(event: NoteEvent, title: string): void {\n  handlers.forEach(h => h(event, title));\n}\n\n\u002F\u002F Register handlers\nonNoteChange((event, title) => {\n  console.log(`[${event.toUpperCase()}] ${title}`);\n});\n\nonNoteChange((event, title) => {\n  if (event === \"added\") {\n    \u002F\u002F Auto-export new notes to backup directory\n    execSync(`shortcuts run \"Export Note\" --input-type text --input \"${title}\"`);\n  }\n});\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Polling misses rapid changes | 60s interval too slow for burst edits | Reduce interval to 15-30s; accept higher CPU usage |\n| FSEvents fires too frequently | WAL\u002FSHM file writes during normal sync | Debounce: ignore events within 5s of each other |\n| False \"deleted\" events | Note moved between folders, not deleted | Track folder changes separately; verify deletion before acting |\n| Polling timeout on large vaults | >10,000 notes exceeds osascript timeout | Use incremental approach: only check `modificationDate` |\n| Shortcut automation unreliable | macOS may delay or skip automations | Use polling as primary; Shortcuts as supplementary trigger |\n\n## Resources\n\n- [FSEvents Programming Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FDarwin\u002FConceptual\u002FFSEvents_ProgGuide\u002F)\n- [Apple Shortcuts Automation](https:\u002F\u002Fsupport.apple.com\u002Fguide\u002Fshortcuts-mac\u002Fcreate-a-personal-automation-apd690170742\u002Fmac)\n- [Mac Automation Scripting Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002F)\n\n## Next Steps\n\nFor monitoring the health of your event system, see `apple-notes-observability`. For handling the events your watcher detects, see `apple-notes-data-handling`.\n","# Apple Notes Webhooks & Events\n\n## Overview\n\nApple Notes has no webhook, pub\u002Fsub, or event streaming API. To detect changes, you must build your own event system using one of three approaches: (1) JXA polling that compares note snapshots at intervals, (2) file system events (FSEvents) on the NoteStore.sqlite database file for near-real-time change detection, or (3) Apple Shortcuts automations that trigger scripts when specific conditions are met. Each approach has different latency, reliability, and resource consumption tradeoffs.\n\n## Approach 1: JXA Polling (Recommended)\n\n```typescript\n\u002F\u002F src\u002Fevents\u002Fnotes-watcher.ts\nimport { execSync } from \"child_process\";\n\ninterface NoteSnapshot { id: string; title: string; modified: string; }\n\nlet lastSnapshot: Map\u003Cstring, string> = new Map();\n\nfunction detectChanges(): { added: string[]; modified: string[]; deleted: string[] } {\n  const current = JSON.parse(execSync(\n    `osascript -l JavaScript -e 'JSON.stringify(Application(\"Notes\").defaultAccount.notes().map(n => ({id: n.id(), title: n.name(), modified: n.modificationDate().toISOString()})))'`,\n    { encoding: \"utf8\", timeout: 30000 }\n  )) as NoteSnapshot[];\n\n  const currentMap = new Map(current.map(n => [n.id, n.modified]));\n  const added = current.filter(n => !lastSnapshot.has(n.id)).map(n => n.title);\n  const modified = current.filter(n =>\n    lastSnapshot.has(n.id) && lastSnapshot.get(n.id) !== n.modified\n  ).map(n => n.title);\n  const deleted = [...lastSnapshot.keys()].filter(id => !currentMap.has(id));\n\n  lastSnapshot = currentMap;\n  return { added, modified, deleted };\n}\n\n\u002F\u002F Poll every 60 seconds\nsetInterval(() => {\n  const changes = detectChanges();\n  if (changes.added.length || changes.modified.length || changes.deleted.length) {\n    console.log(\"Changes detected:\", JSON.stringify(changes));\n    \u002F\u002F Trigger downstream actions: export, sync, notify\n  }\n}, 60000);\n```\n\n## Approach 2: FSEvents on Notes Database\n\n```bash\n#!\u002Fbin\u002Fbash\n# Watch the Notes database directory for changes (near real-time)\n# This detects ANY change to the local Notes SQLite database\nNOTES_DB_DIR=\"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\"\n\n# Using fswatch (install via: brew install fswatch)\nfswatch -r \"$NOTES_DB_DIR\" | while read -r changed_file; do\n  # Filter for actual database changes (ignore WAL\u002FSHM churn)\n  case \"$changed_file\" in\n    *.sqlite)\n      echo \"$(date -Iseconds) Notes database changed: $changed_file\"\n      # Trigger your handler — but throttle to avoid rapid-fire\n      # The DB changes frequently during sync; debounce by 5 seconds\n      ;;\n  esac\ndone\n\n# Alternative: use macOS built-in log stream for Notes events\n# log stream --predicate 'subsystem == \"com.apple.notes\"' --style compact\n```\n\n## Approach 3: Shortcuts Automation Triggers\n\n```bash\n# Apple Shortcuts can trigger automations based on:\n# - Time of day (run export at midnight)\n# - App opens\u002Fcloses (Notes.app launched)\n# - Focus mode changes (work mode → sync work notes)\n\n# Create a Shortcut that runs your script when Notes.app opens:\n# 1. Shortcuts > Automations > App > Notes > \"Is Opened\"\n# 2. Add \"Run Shell Script\" action:\n#    osascript -l JavaScript \u002FUsers\u002Fyou\u002Fscripts\u002Fon-notes-open.js\n\n# Trigger a Shortcut from your scripts (for cross-app events):\nshortcuts run \"Notes Changed\" --input-type text --input \"$(date -Iseconds)\"\n```\n\n## Event Handler Pattern\n\n```typescript\n\u002F\u002F src\u002Fevents\u002Fhandler.ts\ntype NoteEvent = \"added\" | \"modified\" | \"deleted\";\ntype EventHandler = (event: NoteEvent, noteTitle: string) => void;\n\nconst handlers: EventHandler[] = [];\n\nfunction onNoteChange(handler: EventHandler): void {\n  handlers.push(handler);\n}\n\nfunction emitEvent(event: NoteEvent, title: string): void {\n  handlers.forEach(h => h(event, title));\n}\n\n\u002F\u002F Register handlers\nonNoteChange((event, title) => {\n  console.log(`[${event.toUpperCase()}] ${title}`);\n});\n\nonNoteChange((event, title) => {\n  if (event === \"added\") {\n    \u002F\u002F Auto-export new notes to backup directory\n    execSync(`shortcuts run \"Export Note\" --input-type text --input \"${title}\"`);\n  }\n});\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Polling misses rapid changes | 60s interval too slow for burst edits | Reduce interval to 15-30s; accept higher CPU usage |\n| FSEvents fires too frequently | WAL\u002FSHM file writes during normal sync | Debounce: ignore events within 5s of each other |\n| False \"deleted\" events | Note moved between folders, not deleted | Track folder changes separately; verify deletion before acting |\n| Polling timeout on large vaults | >10,000 notes exceeds osascript timeout | Use incremental approach: only check `modificationDate` |\n| Shortcut automation unreliable | macOS may delay or skip automations | Use polling as primary; Shortcuts as supplementary trigger |\n\n## Resources\n\n- [FSEvents Programming Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FDarwin\u002FConceptual\u002FFSEvents_ProgGuide\u002F)\n- [Apple Shortcuts Automation](https:\u002F\u002Fsupport.apple.com\u002Fguide\u002Fshortcuts-mac\u002Fcreate-a-personal-automation-apd690170742\u002Fmac)\n- [Mac Automation Scripting Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002F)\n\n## Next Steps\n\nFor monitoring the health of your event system, see `apple-notes-observability`. For handling the events your watcher detects, see `apple-notes-data-handling`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","macos","apple-notes","automation","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Monitor Apple Notes changes using file system events and Shortcuts triggers.\nTrigger: \"apple notes events\".\n","Read, Write, Edit, Bash(osascript:*), Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--apple-notes-pack--apple-notes-webhooks-events",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill apple-notes-webhooks-events",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill apple-notes-webhooks-events",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill apple-notes-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--apple-notes-pack--apple-notes-webhooks-events\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]