rsun-notion-sync

Syncs markdown strategy documents to Notion as child pages with block conversion.

Updated May 20, 2026
One-click install
npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-notion-sync-ezonelai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rsun-notion-sync
Source: https://github.com/EZoneLai/claude-plugin-ronsunai-os/tree/main/commands/rsun-notion-sync
Command: npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-notion-sync-ezonelai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Maintaining a dual-write architecture where TRACKER markdown files remain the source of truth while Notion serves as a human-readable mirror requires manual copy-paste and reformatting. This Skill automates pushing markdown documents (strategy, specs, reports) into Notion as child pages under a designated parent page. ## Core Features & Use Cases - Markdown to Notion Conversion: Converts headings, tables, code blocks, quotes, and inline formatting into Notion blocks via a sync script. - Automatic Title and Parent Handling: Derives the page title from the first H1 and targets a default parent page, with overrides via --title and --parent flags. - Batch Upload Handling: Splits content into batches of 90 blocks to work around Notion's 100-block API limit, with debug output for failed chunks. - Use Case: After writing a strategy document in TRACKER/knowledge/nodes/rsun/strategy/, run the sync to create a Notion mirror, then annotate the TRACKER index with the Notion URL so the knowledge graph knows the mirror exists. ## Quick Start Sync the markdown file at TRACKER/knowledge/nodes/rsun/strategy/my-doc.md to Notion under the default parent page and update the TRACKER index with the resulting URL.

Frequently Asked Questions about rsun-notion-sync

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

FAQPage Schema
How do I sync a markdown file to Notion automatically?

Run the sync-to-notion.py script with the markdown file path as an argument. It converts the markdown to Notion blocks, creates a child page under the configured parent page, and appends the content in batches, returning the Notion URL when done.

How to convert markdown tables and code blocks to Notion?

The sync script parses markdown and maps tables, code blocks, quotes, and inline formatting to their Notion block equivalents. Code blocks are uploaded as plain text by default, so mermaid diagrams need their language manually switched to Mermaid in Notion afterward.

Does the Notion API have a block limit when creating pages?

Yes, the Notion API limits append requests to 100 blocks per call. The script handles this by batching appends in groups of 90, and nested children within blocks also count toward the limit, with failed chunks written to /tmp for debugging.

Why can't I create a Notion integration with an education account?

Notion education accounts on school-managed workspaces typically cannot create internal integrations because the workspace admin locks that capability. The workaround is to use a personal Notion workspace, where internal integrations can be created and connected to pages.

What happens if my Notion token stops working?

If the NOTION_TOKEN stored in ~/.claude/.env expires or is revoked, visit notion.so/my-integrations, open the integration, copy the new token, and update the environment file. The sync script reads the token from that file at runtime.