Agent skill

Apple Notes Core Workflow B

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

Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite.

MITAuto-check passedDatabases

Install Apple Notes Core Workflow B

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill apple-notes-core-workflow-b -a claude-code

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

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

At a glance

Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite.

  • Works in 4 steps: Export All Notes to JSON → Export Notes as Markdown Files → Export to SQLite Database → …
  • Backing up notes
  • SKILL.md covers Overview, Prerequisites, Instructions and Procedure, plus 5 more sections
  • Calls osascript, jq and pip

What it does

Apple Notes Core Workflow B is an agent skill from jeremylongshore/tons-of-skills-marketplace. Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite. Use when backing up notes, exporting to other apps, converting HTML to Markdown, or building searchable note archives from Apple Notes. Trigger: "export apple notes", "apple notes to markdown", "backup apple notes", "apple notes to JSON", "convert apple notes".

Its SKILL.md is about 1.4k 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 Databases, covering Markdown. It works with SQLite. 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

  • Backing up notes
  • Exporting to other apps
  • Converting HTML to Markdown
  • Building searchable note archives from Apple Notes

Example prompts

  • “export apple notes”
  • “apple notes to markdown”
  • “backup apple notes”
  • “/apple-notes-core-workflow-b”

Requirements

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

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Export All Notes to JSON
  2. Export Notes as Markdown Files
  3. Export to SQLite Database
  4. Full-Text Search on Exported Notes

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:*)
    • Bash(node:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • osascript
    • jq
    • pip
    • sqlite3

    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):

    • github.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 Core Workflow B loads about 1.4k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 306 words of instructions outside code blocks.

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

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). 306 words, ~1,448 tokens.

Download SKILL.mdSave it as .claude/skills/apple-notes-core-workflow-b/SKILL.md (or your agent's skills folder).
name
apple-notes-core-workflow-b
description
Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite. Use when backing up notes, exporting to other apps, converting HTML to Markdown, or building searchable note archives from Apple Notes. Trigger: "export apple notes", "apple notes to markdown", "backup apple notes", "apple notes to JSON", "convert apple notes".
allowed-tools
Read, Write, Edit, Bash(osascript:*), Bash(node:*), Grep
compatibility
Designed for Claude Code
version
1.6.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, macos, apple-notes, automation, export

Apple Notes Core Workflow B — Export & Conversion

Overview

Export Apple Notes to portable formats: Markdown, JSON, HTML files, and SQLite databases. Apple Notes stores content as HTML internally — these workflows convert it to developer-friendly formats.

Prerequisites

  • Authorization for exact folders and fields, an encrypted owner-only destination, and a retention/deletion policy.
  • A test export of synthetic notes and a checksum/reconciliation method.
  • A decision on attachment handling; do not infer that content or attachment export is complete from JXA metadata.

Instructions

  1. Export one named scope at a time, minimize fields, and keep note content out of command history and console output.
  2. Create the destination with restrictive permissions before export; sanitize filenames and HTML before writing derived files.
  3. Verify record count and checksum, then encrypt or move the artifact according to the approved handling policy.
  4. Keep SQLite or search indexes private and time-bounded; they replicate sensitive note data.

Procedure

Step 1: Export All Notes to JSON
bash
osascript -l JavaScript -e '
  const Notes = Application("Notes");
  const allNotes = Notes.defaultAccount.notes();
  const exported = allNotes.map(n => ({
    id: n.id(),
    title: n.name(),
    body: n.body(),
    folder: n.container().name(),
    created: n.creationDate().toISOString(),
    modified: n.modificationDate().toISOString(),
  }));
  JSON.stringify(exported, null, 2);
' > apple-notes-export.json

echo "Exported $(jq length apple-notes-export.json) notes to apple-notes-export.json"
Step 2: Export Notes as Markdown Files
bash
#!/bin/bash
# scripts/notes-to-markdown.sh
OUTPUT_DIR="${1:-./notes-export}"
mkdir -p "$OUTPUT_DIR"

osascript -l JavaScript -e '
  const Notes = Application("Notes");
  const notes = Notes.defaultAccount.notes();
  notes.map(n => JSON.stringify({
    title: n.name(),
    body: n.body(),
    folder: n.container().name(),
  })).join("\n---SEPARATOR---\n");
' | while IFS= read -r line; do
  if [ "$line" = "---SEPARATOR---" ]; then continue; fi
  title=$(echo "$line" | jq -r '.title' 2>/dev/null)
  body=$(echo "$line" | jq -r '.body' 2>/dev/null)
  folder=$(echo "$line" | jq -r '.folder' 2>/dev/null)

  # Convert HTML to basic Markdown
  md_body=$(echo "$body" | sed 's/<h1>/# /g; s/<\/h1>//g; s/<h2>/## /g; s/<\/h2>//g; s/<p>//g; s/<\/p>/\n/g; s/<br>/\n/g; s/<li>/- /g; s/<\/li>//g; s/<[^>]*>//g')

  safe_title=$(echo "$title" | tr '/:' '-' | head -c 100)
  mkdir -p "$OUTPUT_DIR/$folder"
  echo -e "# $title\n\n$md_body" > "$OUTPUT_DIR/$folder/$safe_title.md"
done

echo "Export complete: $OUTPUT_DIR"
Step 3: Export to SQLite Database
bash
# Using apple-notes-to-sqlite (pip install apple-notes-to-sqlite)
pip install apple-notes-to-sqlite
apple-notes-to-sqlite export notes.db

# Or build your own with JXA + sqlite3
osascript -l JavaScript -e '
  const Notes = Application("Notes");
  const notes = Notes.defaultAccount.notes();
  const rows = notes.map(n =>
    `INSERT INTO notes (title, body, folder, created) VALUES (${JSON.stringify(n.name())}, ${JSON.stringify(n.body())}, ${JSON.stringify(n.container().name())}, ${JSON.stringify(n.creationDate().toISOString())});`
  ).join("\n");
  rows;
' > /tmp/notes-inserts.sql

sqlite3 notes.db << 'SQL'
CREATE TABLE IF NOT EXISTS notes (id INTEGER PRIMARY KEY, title TEXT, body TEXT, folder TEXT, created TEXT);
.read /tmp/notes-inserts.sql
SELECT COUNT(*) || ' notes imported' FROM notes;
SQL
Step 4: Full-Text Search on Exported Notes
bash
# Search across all exported notes
osascript -l JavaScript -e '
  const Notes = Application("Notes");
  const query = "project plan";
  const results = Notes.defaultAccount.notes().filter(n => {
    const body = n.body().toLowerCase();
    const name = n.name().toLowerCase();
    return body.includes(query) || name.includes(query);
  });
  results.map(n => `${n.name()} (${n.container().name()})`).join("\n");
'

Output

  • JSON export of all notes with metadata
  • Markdown files organized by folder
  • SQLite database with full note content
  • Full-text search across notes

Error Handling

ErrorCauseSolution
Slow exportThousands of notesExport in batches by folder
HTML artifacts in MarkdownComplex formattingUse a proper HTML-to-MD library (turndown)
Missing attachmentsImages not exportedAttachments need separate export path
Encoding issuesUnicode in note titlesUse safe filename sanitization

Examples

For a rehearsal, export a synthetic folder to a temporary encrypted workspace, compare the expected count and checksum, then remove it. For a live backup, send only the resulting record count and artifact checksum to monitoring; never publish titles, folders, or full-text search results in the job log.

Resources

Next Steps

For common errors, see apple-notes-common-errors.

© 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-core-workflow-b of jeremylongshore/tons-of-skills-marketplace.

Open the folder on GitHubat commit cfae287

Compare with similar skills

Apple Notes Core Workflow B 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 Core Workflow B compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apple Notes Core Workflow B this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.4kAutomated safety check: PassMIT
Add Memory KindEverMind-AI/EverOS13k—~2.6kAutomated safety check: PassApache-2.0
Take Doc Screenshotspgplex/pgconsole155—~841Automated safety check: PassApache-2.0
Hackernews IntelVarnan-Tech/opendirectory674—~1.4kAutomated safety check: NotesMIT
Pp Nasa Imagesmvanhorn/printing-press-library2.1k—~4.1kAutomated safety check: NotesApache-2.0
SQL Database Support for pRESTprest/prest4.6k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Add Memory Kind

    EverMind-AI/EverOS

    Walks through adding a new persisted memory kind to EverOS: choose storage among Markdown, SQLite and LanceDB, pick a Markdown strategy, then wire schemas, repos and writers.

    13k GitHub stars~2.6k tokensUpdated today
    DatabasesAuto-check passed
  • Take Doc Screenshots

    pgplex/pgconsole

    Take screenshots of the running pgconsole app for documentation.

    155 GitHub stars~841 tokensUpdated 1 mo ago
    DatabasesAuto-check passed
  • Hackernews Intel

    Varnan-Tech/opendirectory

    Monitors Hacker News for user-configured keywords, deduplicates against a local SQLite cache, and sends Slack alerts for new matching posts.

    674 GitHub stars~1.4k tokensUpdated 1 mo ago
    DatabasesAuto-check: notes
  • Pp Nasa Images

    mvanhorn/printing-press-library

    Every NASA Image and Video Library endpoint, plus a local SQLite mirror, FTS search, resumable bulk download,...

    2.1k GitHub stars~4.1k tokensUpdated today
    DatabasesAuto-check: notes
  • Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.

    4.6k GitHub stars~1.6k tokensUpdated today
    DatabasesAuto-check passed
  • A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.

    7.3k GitHub stars~824 tokensUpdated today
    DatabasesAuto-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 Core Workflow B

What does Apple Notes Core Workflow B do?

Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite. Apple Notes Core Workflow B is an agent skill from jeremylongshore/tons-of-skills-marketplace. Export and convert Apple Notes to Markdown, JSON, HTML, and SQLite.

When should I use Apple Notes Core Workflow B?

Apple Notes Core Workflow B fits situations like: backing up notes; exporting to other apps; converting HTML to Markdown; building searchable note archives from Apple Notes.

How do I install Apple Notes Core Workflow B in Claude Code?

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

How do I install Apple Notes Core Workflow B in Codex?

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

Can I use Apple Notes Core Workflow B 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-core-workflow-b -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-core-workflow-b, .gemini/skills/apple-notes-core-workflow-b, .github/skills/apple-notes-core-workflow-b and .opencode/skills/apple-notes-core-workflow-b in your project.

What does Apple Notes Core Workflow B need to run?

Going by SKILL.md and its folder, Apple Notes Core Workflow B needs the command-line tools its instructions call (osascript, jq, pip and sqlite3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(osascript:*), Bash(node:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Apple Notes Core Workflow B access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Apple Notes Core Workflow B 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 Core Workflow B use?

Apple Notes Core Workflow B 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 Core Workflow B use?

About 1.4k tokens (SKILL.md is roughly 5.8k 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 Core Workflow B?

Skills that share tags, products or a category with Apple Notes Core Workflow B: Add Memory Kind (EverMind-AI/EverOS, 13k stars), Take Doc Screenshots (pgplex/pgconsole, 155 stars), Hackernews Intel (Varnan-Tech/opendirectory, 674 stars) and Pp Nasa Images (mvanhorn/printing-press-library, 2.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apple Notes Core Workflow B?

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.