Agent skill

Apple Notes Reference Architecture

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Reference architecture for Apple Notes automation systems. An agent skill from jeremylongshore/tons-of-skills-marketplace.

MITAuto-check passedBackend & APIs

Install Apple Notes Reference Architecture

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill apple-notes-reference-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace apple-notes-reference-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/apple-notes-reference-architecture .claude/skills/apple-notes-reference-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
apple-notes-reference-architecture
GitHub stars
2.8k
Token cost
~1.9k tokens
SKILL.md length
503 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Reference architecture for Apple Notes automation systems. An agent skill from jeremylongshore/tons-of-skills-marketplace.

  • Works in 4 steps: Place authorization, input validation,… → Bind any local service to loopback by… → Treat cache and event data as sensitive… → …
  • Backend & APIs work in your project
  • SKILL.md covers Overview, Prerequisites, Instructions and System Architecture, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Apple Notes Reference Architecture is an agent skill from jeremylongshore/tons-of-skills-marketplace. Reference architecture for Apple Notes automation systems. Trigger: "apple notes architecture".

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code

It sits in Backend & APIs. It works with macOS. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Backend & APIs work in your project

Example prompts

  • “apple notes architecture”
  • “/apple-notes-reference-architecture”

Requirements

  • Node.js
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(osascript:*), Grep

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Place authorization, input validation, idempotency, and audit logging above the JXA adapter; the adapter should receive only validated…
  2. Bind any local service to loopback by default and require an authenticated, approved transport for remote administration.
  3. Treat cache and event data as sensitive replicas: minimize fields, encrypt at rest, restrict access, rotate/delete under policy, and never…
  4. Separate liveness from readiness; pause mutations when authorization, reconciliation, or sync health is uncertain.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(osascript:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developer.apple.com
    • github.com
    • support.apple.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Apple Notes Reference Architecture loads about 1.9k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 503 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 503 words, ~1,927 tokens.

Download SKILL.mdSave it as .claude/skills/apple-notes-reference-architecture/SKILL.md (or your agent's skills folder).
name
apple-notes-reference-architecture
description
Reference architecture for Apple Notes automation systems. Trigger: "apple notes architecture".
allowed-tools
Read, Write, Edit, Bash(osascript:*), Grep
compatibility
Designed for Claude Code
version
1.6.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, macos, apple-notes, automation

Apple Notes Reference Architecture

Overview

Apple Notes automation systems are fundamentally different from cloud SaaS integrations. There is no REST API, no server-side SDK, and no webhook infrastructure. Everything runs locally on macOS through the Apple Events IPC bridge. This reference architecture defines the standard layered approach: a Node.js application layer that calls JXA scripts via osascript, a local SQLite cache for fast queries, a change detection poller for event-driven workflows, and optional Shortcuts integration for cross-app automation.

Prerequisites

  • An owned interactive macOS host, exact client TCC consent, and a declared account/folder scope.
  • A reviewed local-only service boundary, encrypted data stores, and an incident/rollback owner.
  • Mocked tests for all application logic; device integration tests run only on a protected self-hosted Mac.

Instructions

  1. Place authorization, input validation, idempotency, and audit logging above the JXA adapter; the adapter should receive only validated scoped commands.
  2. Bind any local service to loopback by default and require an authenticated, approved transport for remote administration.
  3. Treat cache and event data as sensitive replicas: minimize fields, encrypt at rest, restrict access, rotate/delete under policy, and never read NoteStore directly.
  4. Separate liveness from readiness; pause mutations when authorization, reconciliation, or sync health is uncertain.

System Architecture

┌─────────────────────────────────────────────────────┐
│                    macOS Machine                      │
│                                                       │
│  ┌──────────┐   ┌───────────┐   ┌────────────────┐  │
│  │ Your App │──▶│ osascript  │──▶│   Notes.app    │  │
│  │ (Node.js)│   │  (JXA)    │   │  (local DB)    │  │
│  └────┬─────┘   └───────────┘   └───────┬────────┘  │
│       │                                   │           │
│  ┌────▼─────┐   ┌───────────┐   ┌───────▼────────┐  │
│  │ SQLite   │   │ Shortcuts │   │  iCloud Sync   │  │
│  │ Cache    │   │ Automations│   │ (bird/cloudd)  │  │
│  └──────────┘   └───────────┘   └────────────────┘  │
│       │                                   │           │
│  ┌────▼─────┐                    ┌────────▼───────┐  │
│  │ Poller / │                    │  Other Apple   │  │
│  │ FSEvents │                    │  Devices       │  │
│  └──────────┘                    └────────────────┘  │
└─────────────────────────────────────────────────────┘

Project Structure

apple-notes-automation/
├── src/
│   ├── notes-client.ts        # JXA wrapper class (osascript calls)
│   ├── cache.ts               # SQLite cache layer
│   ├── templates/             # Note templates (HTML fragments)
│   ├── export/                # Export to MD/JSON/SQLite/CSV
│   ├── events/                # Change detection via polling
│   └── server.ts              # Optional: local HTTP API for remote access
├── scripts/
│   ├── notes-cli.sh           # CLI wrapper for common operations
│   ├── health-check.sh        # Monitoring and alerting
│   ├── export-all.sh          # Full backup export
│   └── install.sh             # launchd deployment installer
├── tests/
│   ├── mocks/                 # Mock JXA client for CI (non-macOS)
│   └── unit/                  # Unit tests (vitest)
├── config/
│   ├── environments.json      # Account/folder per environment
│   └── launchd.plist          # Service definition template
└── package.json

Component Design

typescript
// src/notes-client.ts — Core abstraction over osascript
import { execSync } from "child_process";

export class NotesClient {
  private account: string;

  constructor(account = "iCloud") { this.account = account; }

  private exec(jxa: string): string {
    return execSync(`osascript -l JavaScript -e '${jxa.replace(/'/g, "'\\''")}'`,
      { encoding: "utf8", timeout: 30000 }).trim();
  }

  count(): number {
    return parseInt(this.exec(`Application("Notes").accounts().find(a => a.name() === "${this.account}").notes.length`));
  }

  list(): Array<{ id: string; title: string; modified: string }> {
    return JSON.parse(this.exec(`
      JSON.stringify(Application("Notes").accounts().find(a => a.name() === "${this.account}")
        .notes().map(n => ({id: n.id(), title: n.name(), modified: n.modificationDate().toISOString()})))
    `));
  }

  create(title: string, body: string, folder = "Notes"): string {
    return this.exec(`
      const Notes = Application("Notes");
      const acct = Notes.accounts().find(a => a.name() === "${this.account}");
      const f = acct.folders().find(f => f.name() === "${folder}") || acct.folders[0];
      const n = Notes.Note({name: "${title}", body: "${body}"});
      f.notes.push(n); n.id();
    `);
  }
}

Key Constraints

ConstraintImpactWorkaround
macOS onlyNo Linux/Windows serversRun on Mac; export data for cross-platform consumption
No REST APICannot access remotelyOptional: expose local HTTP server; lock down to localhost
iCloud sync lagWrites may take 5-30s to appear on other devicesPoll with delay; verify on target device
No webhooksCannot receive push notificationsPoll for changes every 60s; watch FSEvents on Notes DB
HTML-only bodyNo native Markdown supportConvert HTML to/from Markdown in export/import layer
No attachment export via JXABinary data inaccessible from scriptingUse Shortcuts for attachment extraction
Show full SKILL.md (201 more words)Show less

Error Handling

IssueCauseSolution
Architecture requires macOS serverNo cloud-native optionDedicate a Mac mini as automation server; use Tailscale for remote access
Local HTTP API exposed to networkSecurity risk if not locked downBind to 127.0.0.1 only; use SSH tunnel for remote access
Cache out of sync with NotesPolling interval too longReduce poll interval; use FSEvents on NoteStore.sqlite for faster detection
Template HTML rejected by NotesInvalid HTML tagsTest templates with a canary note before bulk creation

Output

The architecture decision record identifies host ownership, scope, authorization layer, protected data stores, event/reconciliation flow, deployment version, and rollback path. It explicitly states which components are mock-tested versus device-tested and excludes hard-coded account identifiers or note data.

Examples

Run a Node service on the owned Mac with a loopback-only admin endpoint, a configuration-resolved test folder, and an encrypted metadata-only cache. The worker records an idempotency key before a mutation, validates the scoped result, and pauses its queue if readiness fails; it never exposes a general remote API to Notes.app.

Resources

Next Steps

For deploying this architecture as a service, see apple-notes-deploy-integration. For monitoring the running system, see apple-notes-observability.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/.curated/apple-notes-reference-architecture of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit cfae287

Compare with similar skills

Apple Notes Reference Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Apple Notes Reference Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apple Notes Reference Architecture this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.9kAutomated safety check: PassMIT
Agent Notifications777genius/agent-notifications816—~1.8kAutomated safety check: PassCustom licence
Qq Farm Activity Protocol Recoveryxxxscarlxrd404/qq-farm-bot134—~1.2kAutomated safety check: PassNone
Stellar iOS Mac SDKSoneso/stellar-ios-mac-sdk132—~4.3kAutomated safety check: PassApache-2.0
Test Convt Desktopopencoredev/convt286—~11kAutomated safety check: PassAGPL-3.0
Subspace Buildsdallison/subspace104—~990Automated safety check: PassApache-2.0

Similar skills

  • Agent Notifications

    777genius/agent-notifications

    Send an Agent Notifications desktop notification when the user requests one, attention is needed, or a meaningful milestone warrants an alert during ongoing work.

    816 GitHub stars~1.8k tokensUpdated today
    Backend & APIsAuto-check passed
  • Qq Farm Activity Protocol Recovery

    xxxscarlxrd404/qq-farm-bot

    Recover unknown QQ Farm ActivityService.Operate protobuf actions from the latest official macOS miniapp client.

    134 GitHub stars~1.2k tokensUpdated 17 days ago
    Backend & APIsAuto-check passed
  • Stellar iOS Mac SDK

    Soneso/stellar-ios-mac-sdk

    Guides Stellar blockchain development in Swift using stellar-ios-mac-sdk.

    132 GitHub stars~4.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Test Convt Desktop

    opencoredev/convt

    Run the headless window tests for the convt GPUI desktop app (crates/convt-app), and build, launch and screenshot it under Xvfb or natively on macOS and Windows.

    286 GitHub stars~11k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Subspace Builds

    dallison/subspace

    Build and test Subspace across supported platforms and build systems.

    104 GitHub stars~990 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Apple Web App

    joe-bell/skills

    A skill your agent uses when implementing, debugging, or auditing how any website or web app looks and behaves on iPhone and iPad — in Safari or added to the Home Screen — or added to the Mac Dock…

    211 GitHub stars~1.6k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Apple Notes Reference Architecture

What does Apple Notes Reference Architecture do?

Reference architecture for Apple Notes automation systems. An agent skill from jeremylongshore/tons-of-skills-marketplace. Apple Notes Reference Architecture is an agent skill from jeremylongshore/tons-of-skills-marketplace. Reference architecture for Apple Notes automation systems.

When should I use Apple Notes Reference Architecture?

Apple Notes Reference Architecture fits situations like: backend & APIs work in your project.

How do I install Apple Notes Reference Architecture in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apple-notes-reference-architecture -a claude-code`. Or copy the skill folder (skills/.curated/apple-notes-reference-architecture in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/apple-notes-reference-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Apple Notes Reference Architecture in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apple-notes-reference-architecture -a codex`. Or copy the skill folder (skills/.curated/apple-notes-reference-architecture in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/apple-notes-reference-architecture in your project. Codex loads it when a task matches its description.

Can I use Apple Notes Reference Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apple-notes-reference-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apple-notes-reference-architecture, .gemini/skills/apple-notes-reference-architecture, .github/skills/apple-notes-reference-architecture and .opencode/skills/apple-notes-reference-architecture in your project.

What does Apple Notes Reference Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: Apple Notes Reference Architecture is instructions for the agent only. Our summary lists: Node.js. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(osascript:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Apple Notes Reference Architecture access the network?

SKILL.md names 3 domains. As links in the text: developer.apple.com, github.com and support.apple.com. This is read from the text; nothing was executed.

Is Apple Notes Reference Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Apple Notes Reference Architecture use?

Apple Notes Reference Architecture is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Apple Notes Reference Architecture use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Apple Notes Reference Architecture?

Skills that share tags, products or a category with Apple Notes Reference Architecture: Agent Notifications (777genius/agent-notifications, 816 stars), Qq Farm Activity Protocol Recovery (xxxscarlxrd404/qq-farm-bot, 134 stars), Stellar iOS Mac SDK (Soneso/stellar-ios-mac-sdk, 132 stars) and Test Convt Desktop (opencoredev/convt, 286 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apple Notes Reference Architecture?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.