Agent skill

Apple Notes Security Basics

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

Apply security best practices for Apple Notes automation scripts.

MITAuto-check passed

Install Apple Notes Security Basics

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

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace apple-notes-security-basics --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-security-basics .claude/skills/apple-notes-security-basics && 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-security-basics
GitHub stars
2.8k
Token cost
~1.5k tokens
SKILL.md length
493 words
Files
1
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Apply security best practices for Apple Notes automation scripts.

  • Works in 4 steps: Grant Apple Events consent only through… → Keep automation local and reject… → Encrypt backups, restrict access before… → …
  • Tasks that involve Security review
  • SKILL.md covers Overview, Prerequisites, Instructions and Security Checklist, plus 9 more sections
  • Calls osascript

What it does

Apple Notes Security Basics is an agent skill from jeremylongshore/tons-of-skills-marketplace. Apply security best practices for Apple Notes automation scripts. Trigger: "apple notes security".

Its SKILL.md is about 1.5k 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 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

  • Tasks that involve Security review

Example prompts

  • “apple notes security”
  • “/apple-notes-security-basics”

Requirements

  • 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. Grant Apple Events consent only through System Settings or an approved MDM profile for the exact client application.
  2. Keep automation local and reject network-provided note content, script fragments, and shell arguments.
  3. Encrypt backups, restrict access before writing, and delete temporary artifacts through a verified retention process.
  4. Skip locked or unreadable notes, record a redacted failure, and require a user to handle them in Notes.app.

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

    Shell commands in SKILL.md call:

    • osascript

    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
    • support.apple.com
    • rainforestqa.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 Security Basics loads about 1.5k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 493 words of instructions outside code blocks.

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

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). 493 words, ~1,541 tokens.

Download SKILL.mdSave it as .claude/skills/apple-notes-security-basics/SKILL.md (or your agent's skills folder).
name
apple-notes-security-basics
description
Apply security best practices for Apple Notes automation scripts. Trigger: "apple notes security".
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 Security Basics

Overview

Apple Notes security involves three layers: macOS TCC (Transparency, Consent, and Control) which gates which apps can send Apple Events to Notes.app, the macOS sandbox that prevents direct database access, and iCloud encryption that protects notes in transit and at rest. For automation scripts, the primary security concerns are: preventing unauthorized Apple Events access, securing exported note data, avoiding credential leakage in scripts, and understanding the difference between standard and end-to-end encrypted (locked) notes.

Prerequisites

  • An inventory of the invoking app, macOS user, account scope, and required operation class.
  • A documented incident owner and revocation procedure for automation permissions and exported artifacts.
  • A test account for exercising write paths; never use a live note as a security test fixture.

Instructions

  1. Grant Apple Events consent only through System Settings or an approved MDM profile for the exact client application.
  2. Keep automation local and reject network-provided note content, script fragments, and shell arguments.
  3. Encrypt backups, restrict access before writing, and delete temporary artifacts through a verified retention process.
  4. Skip locked or unreadable notes, record a redacted failure, and require a user to handle them in Notes.app.

Security Checklist

  • Scripts run only locally (never expose osascript to network input)
  • No note content written to log files (may contain PII or secrets)
  • TCC permissions scoped to specific apps only (not blanket approval)
  • Exported notes stored with restrictive permissions (chmod 600)
  • iCloud account uses two-factor authentication
  • Automation scripts do not hardcode note content or search terms
  • Temporary files cleaned up after processing (trap on exit)
  • Locked (encrypted) notes handled separately (cannot be read via JXA)

TCC Permission Management

bash
# View which apps have automation access in System Settings:
# System Settings > Privacy & Security > Automation
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Automation"

Safe Data Export Pattern

bash
#!/bin/bash
# Secure export with cleanup on exit
EXPORT_FILE=$(mktemp /tmp/notes-export-XXXXXX.json)
trap 'rm -f "$EXPORT_FILE"' EXIT

# Export with restricted permissions from the start
umask 077
osascript -l JavaScript -e '
  const Notes = Application("Notes");
  JSON.stringify(Notes.defaultAccount.notes().map(n => ({
    title: n.name(),
    body: n.plaintext(),
    folder: n.container().name()
  })));
' > "$EXPORT_FILE"

echo "Exported to $EXPORT_FILE ($(wc -c < "$EXPORT_FILE") bytes)"
# Process the file...
# File is automatically deleted on exit via trap

Locked Notes and Encryption

javascript
// Locked notes (end-to-end encrypted) cannot be read via JXA
// Attempting to access a locked note's body() returns an error
const Notes = Application("Notes");

const allNotes = Notes.defaultAccount.notes();
allNotes.forEach(n => {
  try {
    const body = n.body();
    // Note is unlocked — process normally
  } catch (e) {
    // Note is likely locked (encrypted)
    console.log(`Skipping locked note: ${n.name()}`);
  }
});

// Note: There is no JXA API to unlock notes programmatically.
// Locked notes require the user's password/biometrics in Notes.app UI.

Keychain Integration for Scripts

bash
# Store automation credentials in macOS Keychain (not in script files)
# Add a credential interactively; do not place a secret in command-line history.
security add-generic-password -a "notes-automation" -s "notes-export-key" \
  -T /usr/bin/osascript

# Retrieve in scripts
KEY=$(security find-generic-password -a "notes-automation" -s "notes-export-key" -w 2>/dev/null)
[ -z "$KEY" ] && echo "ERROR: Keychain credential not found" && exit 1
Show full SKILL.md (209 more words)Show less

Error Handling

IssueCauseSolution
TCC prompt never appearsApp already denied; macOS won't re-prompttccutil reset AppleEvents; retry
Cannot read locked notesEnd-to-end encrypted; no JXA accessSkip locked notes; document limitation for users
Export file readable by other usersDefault umask too permissiveSet umask 077 before writing; chmod 600 after
Script exposes note content in process listNote content passed as CLI argumentPipe content via stdin or temp file instead of -e argument
Automation works after upgrade but TCC resetmacOS upgrade clears some TCC entriesRe-approve automation permissions after every OS update

Output

The security review produces a permission inventory, export-protection decision, and redacted evidence that locked notes were skipped. It must not include TCC database rows, Keychain secrets, note bodies, or raw note titles.

Examples

After an operating-system upgrade, open the Automation privacy pane, review the exact client entry, and run a read-only scoped smoke test. If access is no longer approved, stop the job and request consent through the documented owner; do not reset system-wide permissions to force a prompt.

Resources

Next Steps

For enterprise access control and MDM integration, see apple-notes-enterprise-rbac. For production security validation, see apple-notes-prod-checklist.

© 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-security-basics of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit cfae287

Compare with similar skills

Apple Notes Security Basics 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 Security Basics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apple Notes Security Basics this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.5kAutomated safety check: PassMIT
Analyzing macOS Binariestrilwu/secskills157—~1.7kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
Site ArchitectureAvdLee/RocketSimApp80511 repos~3.3kAutomated safety check: PassCustom licence
Engine Whats Newflutter/flutter179k—~978Automated safety check: PassBSD-3-Clause
macOS Spm App PackagingDimillian/Skills4k5 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • Analyzing macOS Binaries

    trilwu/secskills

    Reverse engineer and security-review macOS applications and Mach-O binaries — thinning universal binaries, recovering Objective-C/Swift structure, reading code-signing entitlements and the hardened…

    157 GitHub stars~1.7k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Site Architecture

    AvdLee/RocketSimApp

    When the user wants to plan, map, or restructure their website's page hierarchy, navigation, URL structure, or internal linking.

    805 GitHub starsUsed in 11 repos~3.3k tokens
    Marketing & SEOAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • macOS Spm App Packaging

    Dimillian/Skills

    Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.

    4k GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-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

Questions about Apple Notes Security Basics

What does Apple Notes Security Basics do?

Apply security best practices for Apple Notes automation scripts. Apple Notes Security Basics is an agent skill from jeremylongshore/tons-of-skills-marketplace. Apply security best practices for Apple Notes automation scripts.

When should I use Apple Notes Security Basics?

Apple Notes Security Basics fits situations like: tasks that involve Security review.

How do I install Apple Notes Security Basics in Claude Code?

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

How do I install Apple Notes Security Basics in Codex?

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

Can I use Apple Notes Security Basics 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-security-basics -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-security-basics, .gemini/skills/apple-notes-security-basics, .github/skills/apple-notes-security-basics and .opencode/skills/apple-notes-security-basics in your project.

What does Apple Notes Security Basics need to run?

Going by SKILL.md and its folder, Apple Notes Security Basics needs the command-line tools its instructions call (osascript). Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(osascript:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Apple Notes Security Basics access the network?

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

Is Apple Notes Security Basics 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 Security Basics use?

Apple Notes Security Basics 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 Security Basics use?

About 1.5k tokens (SKILL.md is roughly 6.2k 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 Security Basics?

Skills that share tags, products or a category with Apple Notes Security Basics: Analyzing macOS Binaries (trilwu/secskills, 157 stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Site Architecture (AvdLee/RocketSimApp, 805 stars) and Engine Whats New (flutter/flutter, 179k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apple Notes Security Basics?

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.