Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问clear审计通过

banana-sync-to-notionbanana sync TO Notion 开发

Agent Skill

用于处理 Notion 页面、数据库、工作区内容和结构化记录。它适合让 Agent 查询知识库、整理页面内容、创建记录或把外部信息同步到 Notion。使用时需要确认集成是否已被授权到目标页面或数据库,并区分读取、追加和覆盖更新;涉及批量写入或修改数据库属性时,应先核对字段名称、属性类型和目标页面。

总安装

594

周安装

25

GitHub Stars

15

下载量

208
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:banana-sync-to-notion(banana sync TO Notion 开发)
来源仓库:https://github.com/treydong/banana-skills
仓库路径:skills/banana-sync-to-notion
安装命令:
npx skills add https://github.com/treydong/banana-skills --skill banana-sync-to-notion
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/treydong/banana-skills --skill banana-sync-to-notion

简介

banana-sync-to-notion 将本地 Markdown 文件同步至 Notion,保留目录结构与原始格式。

  • 它依赖 NOTION_TOKEN 与根页面 ID 配置,逐层映射文件夹为嵌套页面与块引用。
  • 适用于文档协作与知识沉淀,实现本地写作与云端共享的无缝衔接。
  • 使用前应验证集成权限,并在小范围测试后执行批量同步以防数据错乱。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Banana Sync to Notion

Automatically sync local Markdown files to Notion while preserving directory structure and full Markdown formatting.

Setup

Before using this skill:

  1. Install dependencies in the skill directory: cd banana-sync-to-notion npm install
  2. Configure environment variables by creating a .env file: NOTION_TOKEN=your_notion_integration_token NOTION_ROOT_PAGE_ID=target_page_id

- NOTION_TOKEN: Get from Notion Integrations - NOTION_ROOT_PAGE_ID: The parent page ID where files will be synced - Ensure the integration has read/write permissions to the target page

Usage

Sync Files to Notion

Run from the skill directory:

npm run sync:notion

This command:

  • Recursively scans the source directory (default: Files/ in project root)
  • Converts Markdown files to Notion blocks
  • Preserves directory hierarchy as nested pages
  • Assigns emoji icons based on filenames
  • Skips existing pages (incremental sync)
  • Shows detailed progress and statistics

Clean Notion Pages

Remove all child pages under the target page:

npm run clean:notion

Use this before a fresh re-sync.

Re-sync Everything

Clean existing content and sync fresh:

npm run resync:notion

Combines clean:notion + sync:notion.

Markdown Support

All standard Markdown syntax is converted to native Notion blocks:

SyntaxNotion Output
**bold** or __bold__Bold text
*italic* or _italic_*Italic text*
***bold italic****Bold italic*
` code `Inline code
[text](url)Clickable link (http/https only)
``` `language... ` ```Code block
- item or * itemBullet list
1. itemNumbered list
> quoteQuote block
> 💡 noteCallout (emoji-prefixed quotes)
--- or ***Divider
Markdown tablesNative Notion tables

Relative Links:

  • ./file.md or ../folder/file.md → Converted to Notion page links
  • ./image.png → Preserved as text (no local file upload)
  • http://... → Clickable external links

Automatic Icon Selection

The script assigns emoji icons based on filename patterns:

  • 📖 Chapters (e.g., "01-intro.md")
  • 🎯 Getting started, basics
  • ❓ FAQ, troubleshooting, problems
  • 💡 Examples, case studies
  • 🔧 Tools, utilities
  • 📚 Methods, tutorials
  • 📊 Data, analysis, reports
  • ⚙️ Configuration, settings
  • 🏗️ Architecture, system
  • 💻 Scripts, code
  • ✍️ Writing, creative
  • 📝 Notes, records
  • 🚀 Advanced, recommendations
  • 📋 Guides
  • 📘 README files
  • 📦 Downloads, resources
  • 🎨 Presentations
  • 📄 Default (no match)

Customize icons by editing the selectIcon function in scripts/sync-notion.js.

Smart Features

Duplicate Detection: Automatically skips pages that already exist with the same title, enabling incremental syncs without duplicates.

Smart Chunking:

  • Handles Notion's 2000-character limit per block
  • Supports files with >100 blocks
  • Batches API requests to avoid rate limits
  • Automatic retry on temporary failures

Progress Reporting: Shows detailed statistics during sync:

  • Files processed
  • Files created vs skipped
  • Folders created
  • Duration and errors

Output Example

🚀 Starting Notion Sync...
📂 Source: /path/to/Files
📄 Target Page: My Knowledge Base

📁 Syncing directory: Files
  ✨ Creating: 📖 01-Introduction
  📁 Syncing directory: 01-Introduction
    ✨ Creating: 📖 01-overview.md
    ⏭️  Skipping existing: 02-concepts.md
    ✨ Creating: 🎯 03-quickstart.md

==================================================
✅ Sync Complete!
==================================================
⏱️  Duration: 45.2s
📊 Statistics:
   • Files processed: 35
   • Files created: 25
   • Files skipped: 10
   • Folders created: 5
   • Errors: 0
==================================================

File Structure

banana-sync-to-notion/
├── SKILL.md
├── .env (user created)
├── package.json
├── scripts/
│   ├── sync-notion.js   # Main sync logic
│   └── clean-notion.js  # Cleanup utility
└── Files/ (default source directory)

Troubleshooting

Image support: Current version focuses on text/Markdown. Images require hosted URLs (image hosting) to display in Notion. Local image upload requires more complex authentication.

Missing icons: Files that don't match any icon pattern use the default 📄 emoji. Add custom patterns in scripts/sync-notion.js.

Rate limits: The script includes automatic retry logic for Notion API rate limits. Large syncs (>100 files) may take several minutes.

Relative links not working: Ensure the linked Markdown file was also synced. Links only work to pages that exist in Notion.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

31.23%
按下载量换算65

Antigravity

25.14%
按下载量换算52

Gemini CLI

16.26%
按下载量换算34

OpenCode

13.06%
按下载量换算27

trae

8.38%
按下载量换算17

windsurf

3.66%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills