EV

evernote-data-handling

Learn patterns for storing, parsing, and syncing Evernote notes, resources, and ENML content.

Install

mkdir -p .claude/skills/evernote-data-handling && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7112" && unzip -o skill.zip -d .claude/skills/evernote-data-handling && rm skill.zip

Installs to .claude/skills/evernote-data-handling

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Best practices for handling Evernote data.
42 charsno explicit “when” trigger
Advanced

Key capabilities

  • Design local database schemas for Evernote data
  • Parse and convert ENML content
  • Manage attachments and resources
  • Implement incremental sync using USN
  • Export notes to ENEX, JSON, or Markdown

How it works

It defines a local database schema and provides utilities for syncing data chunks, processing ENML, and managing binary attachments.

Inputs & outputs

You give it
Evernote note data
You get back
Processed local storage schema or exported file

When to use evernote-data-handling

  • Design a local database schema for notes
  • Process and convert ENML content
  • Implement incremental sync with USN
  • Manage note attachments and resources

About this skill

Evernote Data Handling

Overview

Best practices for handling Evernote data including ENML content processing, attachment management, local database sync, and ENEX export/import.

Prerequisites

  • Understanding of Evernote data model (Notes, Notebooks, Tags, Resources)
  • Database for local storage (SQLite, PostgreSQL, etc.)
  • File storage for attachments

Instructions

Step 1: Data Schema Design

Design a local database schema that mirrors Evernote's data model. Key tables: notes (guid, title, content, notebookGuid, created, updated, USN), notebooks (guid, name, stack), tags (guid, name), resources (guid, noteGuid, mime, hash, size). Track Update Sequence Numbers (USN) for incremental sync.

CREATE TABLE notes (
  guid TEXT PRIMARY KEY,
  title TEXT NOT NULL,
  content TEXT,
  notebook_guid TEXT REFERENCES notebooks(guid),
  created BIGINT,
  updated BIGINT,
  usn INTEGER DEFAULT 0
);

Step 2: ENML Content Processing

Parse ENML to extract plain text (strip tags), convert to HTML (replace <en-note> with <body>, resolve <en-media> to <img>/<a> tags), or convert to Markdown. Validate ENML before sending to the API by checking for required declarations and forbidden elements.

function enmlToPlainText(enml) {
  return enml
    .replace(/<\?xml[^>]*\?>/g, '')
    .replace(/<!DOCTYPE[^>]*>/g, '')
    .replace(/<[^>]+>/g, ' ')
    .replace(/\s+/g, ' ')
    .trim();
}

Step 3: Resource (Attachment) Handling

Download resources via noteStore.getResource(guid, withData, ...). Store binary data locally with the MD5 hash as filename. Track MIME types for proper content-type serving. Compute hashes for integrity verification.

Step 4: Sync Data Manager

Implement incremental sync using getSyncState() to get the current server USN, then getSyncChunk() to fetch changes since your last sync. Process chunks in order: notebooks first, then tags, then notes, then resources.

const syncState = await noteStore.getSyncState();
if (syncState.updateCount > lastSyncUSN) {
  const chunk = await noteStore.getSyncChunk(lastSyncUSN, 100, true);
  // Process chunk.notebooks, chunk.tags, chunk.notes, chunk.resources
}

Step 5: Data Export

Export notes to ENEX (Evernote's XML export format), JSON, or Markdown. ENEX preserves the full note structure including resources and is compatible with Evernote import.

For the complete data schema, sync manager, ENML processor, and export implementations, see Implementation Guide.

Output

  • SQL schema for local Evernote data storage
  • ENML-to-text and ENML-to-HTML converters
  • Resource download and local storage manager
  • Incremental sync engine using USN tracking
  • ENEX, JSON, and Markdown export utilities

Error Handling

ErrorCauseSolution
BAD_DATA_FORMATMalformed ENML during updateValidate ENML with DTD check before API call
QUOTA_REACHEDUpload limit exceededCheck user.accounting.uploaded before creating notes
DATA_CONFLICTNote modified since last readRefetch note by GUID and merge changes
Sync chunk gapsMissed USN rangeRequest full sync from USN 0

Resources

Next Steps

For enterprise features, see evernote-enterprise-rbac.

Examples

Local mirror: Sync all notes to a local SQLite database using incremental sync. Store resources on disk keyed by MD5 hash. Use the local mirror for full-text search without API calls.

Markdown export: Convert all notes in a notebook to Markdown files, preserving folder structure from notebook stacks, and saving attachments to an assets/ directory.

Prerequisites

Understanding of Evernote data modelDatabase for local storageFile storage for attachments

Limitations

  • Requires local database and file storage setup
  • Sync chunk gaps require full re-sync

How it compares

It provides a structured approach to local mirroring and USN-based synchronization instead of manual API polling.

Compared to similar skills

evernote-data-handling side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
evernote-data-handling (this skill)126dNo flagsAdvanced
backend-development174moNo flagsIntermediate
using-neon16moReviewIntermediate
backend-patterns01moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry