sync

Scaffolds Notion Worker sync capabilities with guided architecture, schema, and pagination design.

Updated Jun 13, 2026
One-click install
npx skills add https://github.com/MoneyPlug/money-plug-hub-mobile --skill sync-moneyplug
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sync
Source: https://github.com/MoneyPlug/money-plug-hub-mobile/tree/main/.agents/skills/sync
Command: npx skills add https://github.com/MoneyPlug/money-plug-hub-mobile --skill sync-moneyplug

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @notionhq/workers.

What problem does it solve? Building a data sync into Notion requires choosing the right architecture (replace vs backfill+delta), designing pagination state, handling authentication, and testing against real APIs — this Skill walks you through each decision and generates working TypeScript code for a Notion Worker. ## Core Features & Use Cases - Guided Architecture Selection: Recommends a simple replace sync or a backfill+delta pair based on the source API's change-tracking capabilities. - Schema and State Design: Proposes a Notion database schema mapped from API fields and designs pagination cursors, consistency buffers, and deletion handling. - End-to-End Code Generation and Testing: Writes the sync into src/index.ts, then guides local execution, deploy, preview, and go-live via the ntn CLI. - Use Case: You want Jira issues mirrored into a Notion database. The Skill identifies Jira's pagination and updated_at support, proposes a schema, generates a backfill+delta sync pair with OAuth or token auth, and walks you through testing and deployment. ## Quick Start Ask the assistant to scaffold a new sync for your data source, for example: "Create a sync that pulls Stripe customers into a Notion database."

Frequently Asked Questions about sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync external API data into a Notion database?▼

Define a managed database with worker.database, then implement a worker.sync execute function that fetches pages from the API and returns upsert changes with a hasMore flag. Deploy with ntn workers deploy and the sync runs on a schedule.

Should I use replace mode or incremental mode for a Notion sync?▼

Use replace mode when the dataset is small or the API lacks change tracking; the runtime auto-deletes records missing from each full cycle. Use a backfill plus incremental delta pair when the API exposes updated_at fields, events, or cursors.

How do I handle API pagination in a Notion Worker sync?▼

Store the pagination position in the sync state, such as an opaque cursor, page number, or keyset timestamp, and return it as nextState with hasMore true. The runtime calls the sync again with that state until the dataset is exhausted.

Can I test a Notion Worker sync locally before deploying?▼

Yes, run ntn workers exec <key> --local to execute the sync on your machine with .env loaded, passing -d with prior nextState to test subsequent pages. OAuth-based syncs cannot run locally and require deploy plus preview instead.

How are deletions handled when syncing into Notion?▼

If the API emits delete events, emit delete changes in the delta sync. Otherwise, replace mode's mark-and-sweep removes records absent from a full cycle, so periodic manual backfills clean up stale entries.

Why does my incremental sync miss recently updated records?▼

Eventually consistent APIs may not have indexed recent changes when the cursor advances past them. Apply a consistency buffer by never advancing the delta cursor closer than 10-15 seconds to the current time.