[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78XCPFNJ1RMM05S7XG1E18D":3,"skill-same:01M78XCPFNJ1RMM05S7XG1E18D":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},"01M78XCPFNJ1RMM05S7XG1E18D","apple-notes-incident-runbook",null,"Incident response runbook for Apple Notes automation failures.\nTrigger: \"apple notes incident\".","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-incident-runbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: apple-notes-incident-runbook\ndescription: |\n  Incident response runbook for Apple Notes automation failures.\n  Trigger: \"apple notes incident\".\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 Incident Runbook\n\n## Overview\n\nThis runbook covers the most common Apple Notes automation failures and their resolution procedures. Unlike cloud SaaS incidents that involve API endpoints and status pages, Apple Notes incidents are local to the macOS machine: app crashes, TCC permission revocations, iCloud sync failures, and database corruption. Each incident section follows a detect-diagnose-fix-verify structure. Keep this runbook accessible on any machine running Notes automation.\n\n## Severity Levels\n\n| Severity | Description | Example | Response Time |\n|----------|-------------|---------|---------------|\n| P1 | All automation blocked | TCC permissions revoked, Notes.app won't launch | Immediate |\n| P2 | Data inconsistency | iCloud sync stuck, notes missing | Within 1 hour |\n| P3 | Degraded performance | Slow operations, intermittent timeouts | Within 4 hours |\n| P4 | Cosmetic\u002Fminor | Log warnings, non-critical script errors | Next business day |\n\n## Incident 1: Notes.app Crash During Automation\n\n```bash\n# DETECT: Check if Notes is running\npgrep -x Notes > \u002Fdev\u002Fnull && echo \"Notes: running\" || echo \"Notes: NOT RUNNING\"\n\n# DIAGNOSE: Check crash logs\nls -lt ~\u002FLibrary\u002FLogs\u002FDiagnosticReports\u002FNotes* 2>\u002Fdev\u002Fnull | head -3\n\n# FIX: Restart Notes with stabilization delay\nkillall Notes 2>\u002Fdev\u002Fnull\nsleep 3\nopen -a Notes\nsleep 5  # Wait for full launch and iCloud handshake\n\n# VERIFY: Confirm access is restored\nosascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length'\n```\n\n## Incident 2: iCloud Sync Stuck\n\n```bash\n# DETECT: Compare note count with expected (from last known good)\nCURRENT=$(osascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length' 2>\u002Fdev\u002Fnull)\necho \"Current note count: ${CURRENT:-ERROR}\"\n\n# DIAGNOSE: Check iCloud daemons\nps aux | grep -E \"(bird|cloudd|nsurlsessiond)\" | grep -v grep\n\n# Check sync status\nbrctl status com.apple.Notes 2>\u002Fdev\u002Fnull || echo \"brctl unavailable\"\nlog show --predicate 'subsystem == \"com.apple.notes\"' --last 5m 2>\u002Fdev\u002Fnull | tail -20\n\n# FIX: Restart iCloud sync daemons\nkillall bird 2>\u002Fdev\u002Fnull; killall cloudd 2>\u002Fdev\u002Fnull\nsleep 10  # Allow daemons to restart and reconnect\n\n# VERIFY: Check note count is increasing \u002F stable\nsleep 30\nNEW_COUNT=$(osascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length' 2>\u002Fdev\u002Fnull)\necho \"Note count after sync restart: ${NEW_COUNT:-ERROR}\"\n```\n\n## Incident 3: TCC Permissions Revoked\n\n```bash\n# DETECT: Test Apple Events access\nosascript -l JavaScript -e 'Application(\"Notes\").name()' 2>&1 | grep -q \"Not authorized\" && echo \"TCC: DENIED\" || echo \"TCC: OK\"\n\n# DIAGNOSE: Check TCC database (may require Full Disk Access)\nsqlite3 ~\u002FLibrary\u002FApplication\\ Support\u002Fcom.apple.TCC\u002FTCC.db \\\n  \"SELECT client, allowed FROM access WHERE service='kTCCServiceAppleEvents';\" 2>\u002Fdev\u002Fnull\n\n# FIX: Reset and re-prompt\ntccutil reset AppleEvents\n# Run a simple command to trigger the permission dialog\nosascript -l JavaScript -e 'Application(\"Notes\").name()'\n# User must click \"Allow\" in the system dialog\n\n# VERIFY\nosascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length'\n```\n\n## Incident 4: Notes Database Corruption\n\n```bash\n# DETECT: Notes.app launches but shows no notes or crashes on open\n# DIAGNOSE: Check database integrity\nNOTES_DB=\"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\u002FNoteStore.sqlite\"\nsqlite3 \"$NOTES_DB\" \"PRAGMA integrity_check;\" 2>\u002Fdev\u002Fnull || echo \"Cannot access DB (sandboxed)\"\n\n# FIX: Force re-download from iCloud\n# 1. Quit Notes\nkillall Notes 2>\u002Fdev\u002Fnull\n# 2. Rename local database (iCloud will re-download)\nmv \"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\" \\\n   \"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes.backup.$(date +%s)\" 2>\u002Fdev\u002Fnull\n# 3. Relaunch Notes — it will rebuild from iCloud\nopen -a Notes\n# WARNING: \"On My Mac\" notes are NOT in iCloud and will be lost. Back up first.\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Crash loop after restart | Corrupt note triggering crash on load | Remove local DB; let iCloud rebuild |\n| Sync stuck for >1 hour | Apple iCloud service outage | Check apple.com\u002Fsystemstatus; wait for resolution |\n| Permissions reset after macOS update | OS upgrade resets TCC database | Re-approve automation permissions post-update |\n| Script hangs indefinitely | Notes.app showing modal dialog | Dismiss dialog manually; add `activate()` before operations |\n| Automation works for user A but not B | Per-user TCC grants | Each macOS user must approve automation separately |\n\n## Resources\n\n- [Apple System Status](https:\u002F\u002Fwww.apple.com\u002Fsupport\u002Fsystemstatus\u002F)\n- [Mac Automation Scripting Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002F)\n- [macOS Unified Logging](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fos\u002Flogging)\n\n## Next Steps\n\nFor root cause analysis of specific errors, see `apple-notes-common-errors`. For monitoring to detect incidents early, see `apple-notes-observability`.\n","# Apple Notes Incident Runbook\n\n## Overview\n\nThis runbook covers the most common Apple Notes automation failures and their resolution procedures. Unlike cloud SaaS incidents that involve API endpoints and status pages, Apple Notes incidents are local to the macOS machine: app crashes, TCC permission revocations, iCloud sync failures, and database corruption. Each incident section follows a detect-diagnose-fix-verify structure. Keep this runbook accessible on any machine running Notes automation.\n\n## Severity Levels\n\n| Severity | Description | Example | Response Time |\n|----------|-------------|---------|---------------|\n| P1 | All automation blocked | TCC permissions revoked, Notes.app won't launch | Immediate |\n| P2 | Data inconsistency | iCloud sync stuck, notes missing | Within 1 hour |\n| P3 | Degraded performance | Slow operations, intermittent timeouts | Within 4 hours |\n| P4 | Cosmetic\u002Fminor | Log warnings, non-critical script errors | Next business day |\n\n## Incident 1: Notes.app Crash During Automation\n\n```bash\n# DETECT: Check if Notes is running\npgrep -x Notes > \u002Fdev\u002Fnull && echo \"Notes: running\" || echo \"Notes: NOT RUNNING\"\n\n# DIAGNOSE: Check crash logs\nls -lt ~\u002FLibrary\u002FLogs\u002FDiagnosticReports\u002FNotes* 2>\u002Fdev\u002Fnull | head -3\n\n# FIX: Restart Notes with stabilization delay\nkillall Notes 2>\u002Fdev\u002Fnull\nsleep 3\nopen -a Notes\nsleep 5  # Wait for full launch and iCloud handshake\n\n# VERIFY: Confirm access is restored\nosascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length'\n```\n\n## Incident 2: iCloud Sync Stuck\n\n```bash\n# DETECT: Compare note count with expected (from last known good)\nCURRENT=$(osascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length' 2>\u002Fdev\u002Fnull)\necho \"Current note count: ${CURRENT:-ERROR}\"\n\n# DIAGNOSE: Check iCloud daemons\nps aux | grep -E \"(bird|cloudd|nsurlsessiond)\" | grep -v grep\n\n# Check sync status\nbrctl status com.apple.Notes 2>\u002Fdev\u002Fnull || echo \"brctl unavailable\"\nlog show --predicate 'subsystem == \"com.apple.notes\"' --last 5m 2>\u002Fdev\u002Fnull | tail -20\n\n# FIX: Restart iCloud sync daemons\nkillall bird 2>\u002Fdev\u002Fnull; killall cloudd 2>\u002Fdev\u002Fnull\nsleep 10  # Allow daemons to restart and reconnect\n\n# VERIFY: Check note count is increasing \u002F stable\nsleep 30\nNEW_COUNT=$(osascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length' 2>\u002Fdev\u002Fnull)\necho \"Note count after sync restart: ${NEW_COUNT:-ERROR}\"\n```\n\n## Incident 3: TCC Permissions Revoked\n\n```bash\n# DETECT: Test Apple Events access\nosascript -l JavaScript -e 'Application(\"Notes\").name()' 2>&1 | grep -q \"Not authorized\" && echo \"TCC: DENIED\" || echo \"TCC: OK\"\n\n# DIAGNOSE: Check TCC database (may require Full Disk Access)\nsqlite3 ~\u002FLibrary\u002FApplication\\ Support\u002Fcom.apple.TCC\u002FTCC.db \\\n  \"SELECT client, allowed FROM access WHERE service='kTCCServiceAppleEvents';\" 2>\u002Fdev\u002Fnull\n\n# FIX: Reset and re-prompt\ntccutil reset AppleEvents\n# Run a simple command to trigger the permission dialog\nosascript -l JavaScript -e 'Application(\"Notes\").name()'\n# User must click \"Allow\" in the system dialog\n\n# VERIFY\nosascript -l JavaScript -e 'Application(\"Notes\").defaultAccount.notes.length'\n```\n\n## Incident 4: Notes Database Corruption\n\n```bash\n# DETECT: Notes.app launches but shows no notes or crashes on open\n# DIAGNOSE: Check database integrity\nNOTES_DB=\"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\u002FNoteStore.sqlite\"\nsqlite3 \"$NOTES_DB\" \"PRAGMA integrity_check;\" 2>\u002Fdev\u002Fnull || echo \"Cannot access DB (sandboxed)\"\n\n# FIX: Force re-download from iCloud\n# 1. Quit Notes\nkillall Notes 2>\u002Fdev\u002Fnull\n# 2. Rename local database (iCloud will re-download)\nmv \"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes\" \\\n   \"$HOME\u002FLibrary\u002FGroup Containers\u002Fgroup.com.apple.notes.backup.$(date +%s)\" 2>\u002Fdev\u002Fnull\n# 3. Relaunch Notes — it will rebuild from iCloud\nopen -a Notes\n# WARNING: \"On My Mac\" notes are NOT in iCloud and will be lost. Back up first.\n```\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Crash loop after restart | Corrupt note triggering crash on load | Remove local DB; let iCloud rebuild |\n| Sync stuck for >1 hour | Apple iCloud service outage | Check apple.com\u002Fsystemstatus; wait for resolution |\n| Permissions reset after macOS update | OS upgrade resets TCC database | Re-approve automation permissions post-update |\n| Script hangs indefinitely | Notes.app showing modal dialog | Dismiss dialog manually; add `activate()` before operations |\n| Automation works for user A but not B | Per-user TCC grants | Each macOS user must approve automation separately |\n\n## Resources\n\n- [Apple System Status](https:\u002F\u002Fwww.apple.com\u002Fsupport\u002Fsystemstatus\u002F)\n- [Mac Automation Scripting Guide](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Fdocumentation\u002FLanguagesUtilities\u002FConceptual\u002FMacAutomationScriptingGuide\u002F)\n- [macOS Unified Logging](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fos\u002Flogging)\n\n## Next Steps\n\nFor root cause analysis of specific errors, see `apple-notes-common-errors`. For monitoring to detect incidents early, see `apple-notes-observability`.\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","Incident response runbook for Apple Notes automation failures.\nTrigger: \"apple notes incident\".\n","Read, Write, Edit, Bash(osascript:*), Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--apple-notes-pack--apple-notes-incident-runbook",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-incident-runbook",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill apple-notes-incident-runbook",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill apple-notes-incident-runbook","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--apple-notes-pack--apple-notes-incident-runbook\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",[],[]]