Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

notion-im-helperNotion IM 助手

Agent Skill

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

总安装

9,740

周安装

394

GitHub Stars

1

下载量

3,057
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:notion-im-helper(Notion IM 助手)
来源仓库:https://github.com/70asunflower/notion-im-helper
安装命令:
openclaw skills install notion-im-helper
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install notion-im-helper

简介

通过 Notion API 将 IM 消息同步到 Notion。支持 7 种内容类型、4 种格式、2 种元数据类型。仅附加到单个概念页面。

SKILL.md

name
notion-im-helper
description
Sync IM messages to Notion via Notion API. Supports 7 content types, 4 formats, 2 metadata types. Append-only to a single Notion page.

Notion IM Helper

通过消息自动同步内容到 Notion。支持日记、笔记、待办、想法、问题、链接、摘抄 7 种类型。

Environment Variables

  • NOTION_API_KEY - Notion Integration Token
  • NOTION_PARENT_PAGE_ID - Target Notion Page ID (32 chars)
  • NOTION_QUOTES_PAGE_ID (optional) - Separate page for quotes

Setup

  1. pip install notion-client
  2. Set env vars: NOTION_API_KEY and NOTION_PARENT_PAGE_ID
  3. Authorize integration on Notion page (··· > Connect to)

Usage

When the user sends a message matching a trigger pattern, execute the corresponding script:

python scripts/record.py record --type {type} "{content}"
python scripts/record.py heading --level {1|2|3} "{text}"
python scripts/record.py divider
python scripts/record.py list --kind {bullet|number} "{items}"
python scripts/record.py toggle "{json}"
python scripts/record.py image [--caption "text"] "{file_path_or_url}"
python scripts/record.py caption "{content_to_append}"
python scripts/record.py undo
python scripts/check_config.py
python scripts/summary.py {monthly|quote}

Trigger Rules

Content types (prefix → type):

  • 日记: / 今天: / riji: / d → diary
  • 笔记: / 学习: / note: / n → note
  • 待办: / todo: / t → todo
  • done: / 完成: / → done
  • 想法: / 灵感: / idea: / flash: / 闪念: / i → idea
  • 问题: / 疑问: / q: → question
  • 摘抄: / quote: / qu: / z → quote
  • 链接: / link: / url: / l → link
  • 图片: / photo: / img: / p → image
  • caption: / 说明: / 补: → caption (append to last entry)

Formats:

  • * text → H1 heading
  • ** text → H2 heading
  • *** text → H3 heading
  • > text → quote block
  • --- → divider
  • - text → bulleted list
  • 1. text / 2. text etc → numbered list
  • toggle: title + subsequent - / -- / --- lines → toggle block

Commands:

  • 月报 / monthly → extract current month records for summary
  • 摘抄 / 随机摘抄 → random historical entry
  • 搜: xxx / search: xxx → search records by keyword
  • 撤回 / undo → delete last batch of blocks (within 5 min window)
  • 配置检查 / check config → verify config

Smart detection (no prefix, AI infers):

  • Pure URL → link
  • Starts with YYYY-MM-DD → diary
  • Contains [ ] or 【 】 → todo
  • Default → idea

Caption — two distinct uses:

caption: / 说明: / 补: has two different behaviors depending on context:

1. Caption Append (standalone — no image/link in message)

When the user sends caption: as the primary prefix of a message with no images or links, it appends the content to the last callout on the Notion page:

  • caption: 补充一个角度 → appends "↳ 补充一个角度" as a child paragraph inside the last callout
  • 说明: 这个想法还有一个延伸 → same behavior
  • 补: 对了还有一点 → same behavior

Implementation: Write content to .pending_content.txt, then run python scripts/record.py caption.

Visual: The appended paragraph is prefixed with to distinguish it from the original content.

2. Caption Separator (with image/link in message)

When the message contains images or links, caption: acts as a separator between diary content and image/link caption:

  • OPPO园区很好 caption: 园区环境 + 3 images → last image gets caption "园区环境", diary "OPPO园区很好" synced separately
  • Without caption:, all text is diary/idea content, no caption on images

IMPORTANT: The AI must check whether the message contains images or links to determine which caption behavior to use.

Metadata

Scan the LAST line for metadata:

  • #关键词 → tag
  • /p:项目名 → project
  • Remove metadata from content before passing to script

Batch & Undo

  • Multi-line messages: each format line (heading/quote/divider/list) becomes a separate block, sent in a single API call
  • Undo within 5 minutes: deletes all blocks from the last batch
  • Undo after 5 minutes: deletes only the last single block
  • Day separator: a divider is auto-inserted when the last record is from a different day

Output Protocol

Scripts emit standardized output prefixes:

  • OK|message → success, relay success message to user
  • ERROR|CONFIG → guide user to set up Notion integration
  • ERROR|AUTH → invalid API key or page not authorized
  • ERROR|RATE_LIMIT → tell user to wait
  • ERROR|NETWORK → tell user to retry later

Always run check_config.py first on first use. Never modify or delete existing Notion blocks.

Image Upload

  • Supports local file paths (e.g., C:\Users\photos\img.jpg) and HTTP URLs (e.g., https://example.com/photo.png)
  • Local files are uploaded to Notion servers via the File Upload API, then attached as image blocks
  • URL images are referenced directly as external image blocks
  • Optional --caption flag to add caption text to the image
  • Max file size: 5MB (Notion API limit)
  • Supported formats: jpg, jpeg, png, gif, webp, bmp, svg

Image + Text Sync Rules

When user sends both image and text in one message:

  1. Parse text: split by caption: / 说明: keyword (if present) — this is the Caption Separator mode

- Before caption: → diary/idea/note content (synced as callout) - After caption: → image caption (added to last image via --caption)

  1. Upload images: first N-1 images without caption, last image with --caption
  2. Sync text: write diary/idea content to .pending_content.txt, then record.py record --type {type}

Examples:

  • OPPO园区很好 caption: 园区环境 + 3 images → last image gets caption "园区环境", diary "OPPO园区很好" synced separately
  • 这张图有意思 + 1 image → no caption keyword, so no caption on image, "这张图有意思" synced as idea
  • 2 images only → just upload both, no caption, no callout

IMPORTANT:

  • Image and text are always separate operations — image via record.py image, text via record.py record
  • Do NOT put image and text in the same command
  • When user sends image only (no text or just "同步到notion"), upload the image as-is using record.py image. Do NOT transcribe/OCR the image content into a callout

Link + Caption

Same caption: pattern works for links:

  • 链接: https://example.com caption: 好文章 → bookmark with caption "好文章"
  • Without caption:, just a plain bookmark card (Notion auto-fetches title)

Long Content Auto-Split

  • ≤2000 chars: Single callout (most entries)
  • >2000 chars: Auto-split into multiple callouts at paragraph boundaries (e.g., 3-4k chars → 2-3 callouts)
  • Metadata (tags/projects) only added to the last callout
  • AI should write the entire content to .pending_content.txt at once — do NOT manually split into multiple calls

Best Practices for AI Callers

  • Content passing: Always use .pending_content.txt (write file → run script). Never pass content via command-line args (PowerShell $ expansion issues).
  • Image passing: Copy to .pending_image.jpg, the script auto-detects and cleans up.
  • Type inference: If user says "notion" or "同步" without specifying type, infer from content:

- Starts with caption: / 说明: / 补: → caption (append to last entry) - Contains "日记"/"今天" → diary - Contains URL → link - Image only → image (use record.py image) - Default → idea

  • Undo: Use record.py undo — respects 5-min batch window, deletes all blocks from last batch.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

88.92%
按下载量换算2,718

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills