Xpersona
N

Notion IM Helper

CLAWHUB · Unverified

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

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ca2fr2847fppd7kx7w6vhmn83v1m6:notion-im-helper
  1. Install using `clawhub skill install s17ca2fr2847fppd7kx7w6vhmn83v1m6:notion-im-helper` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/70asunflower/notion-im-helper before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-70asunflower-notion-im-helper/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

85,741 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

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:

```bash
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 cont

_meta.json

{
  "ownerId": "kn7c6rgp0xfwe98aehgx90fdss837thq",
  "slug": "notion-im-helper",
  "version": "1.7.1",
  "publishedAt": 1777457801148
}

scripts/.pending_batch.json

{
  "block_ids": [
    "340294df-130c-8163-939c-cd3622d7ee4f"
  ],
  "timestamp": "2026-04-12T08:02:57.204629+00:00"
}

CLAUDE.md

# Notion IM Helper — Claude Agent Definition

When the user sends a message, check the message against the trigger rules below. If it matches, execute the corresponding script and return the result.

## Environment Variables
```env
NOTION_API_KEY
NOTION_PARENT_PAGE_ID
```

## Content Type Triggers

Check the user message against these patterns:

### Prefix Patterns (check first)
- `日记:` or `今天:` or starts with `riji:` → `diary`
- `笔记:` or `学习:` or starts with `note:` → `note`
- `待办:` or starts with `todo:` → `todo`
- starts with `done:` or `完成:` or starts with `√ ` → `done`
- `想法:` or `灵感:` or starts with `idea:` → `idea`
- `问题:` or `疑问:` or starts with `q:` → `question`
- `摘抄:` or starts with `quote:` or starts with `qu:` → `quote`
- starts with `链接:` or `link:` or `url:` → `link`
- `图片:` or `photo:` or `img:` → `image`
- `caption:` or `说明:` or `补:` → `caption` (append to last callout, standalone use — see below)

### Shortcut Keys (single letter prefix followed by space)
- `d ` at start → `diary`
- `n ` at start → `note`
- `t ` at start → `todo`
- `√ ` at start → `done`
- `i ` at start → `idea`
- `q ` at start → `question`
- `z ` at start → `quote`
- `l ` at start → `link`
- `p ` at start → `image`

### Command Patterns (match entire line)
- `月报` / `monthly` → extract current month records for agent to summarize
- `摘抄` / `随机摘抄` → random quote
- `搜: xxx` / `search: xxx` → search (pass xxx as argument to scripts/search_notes.py)
- `撤回` / `undo` → delete last block batch (within 5 min window)
- `配置检查` / `check config` → verify config

### Format Patterns
- Line starts with `* text` → heading H1
- Line starts with `** text` → heading H2
- Line starts with `*** text` → heading H3
- Line starts with `> text` → quote block
- Line is exactly `---` → divider
- Line starts with `- text` → bulleted list item
- Line starts with `1. text` / `2. text` etc → numbered list item
- Line starts with `toggle: title` → toggle block (parse subsequent `-` / `--` / `---` lines as children)

### Smart Detection (no prefix matched → AI infers)
- If line is a pure URL (starts with http:// or https://) → link
- If line is a local file path pointing to an image file (e.g., `C:\Users\...\photo.jpg`) → image
- If line starts with YYYY-MM-DD or `今天` → diary
- If line contains `[ ]` or `【 】` → todo
- Otherwise → idea

### Caption — Two Distinct Uses

**1. Caption Append (standalone, no image/link in message)**:
- `caption: 补充内容` or `说明: 补充内容` or `补: 补充内容` → append to the last callout on Notion
- Write content to `.pending_content.txt`, then run `python scripts/record.py caption`
- The script finds the last callout and appends a `↳ 补充内容` paragraph as a child

**2. Caption Separator (with image/link in message)**:
- `caption:` / `说明:` keyword splits the message into two parts:
  - **Before `caption:`** → diary/idea/note content (synced as callout)
  - **After `caption:`** → image/link caption (added to last i

skill-card.md

## Description:

Syncs IM-style notes, tasks, links, images, captions, searches, and summaries to Notion through the Notion API.

This skill is ready for commercial/non-commercial use.

## Publisher:

[70asunflower](https://clawhub.ai/user/70asunflower)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to let an agent classify IM-style messages and run Notion scripts that record notes, todos, links, images, captions, monthly summaries, and searches in a configured Notion workspace.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: A broadly authorized Notion integration can expose or affect more workspace content than the user expects.

Mitigation: Authorize the integration only to a dedicated Notion page and avoid granting broad workspace access.

Risk: Matched messages and local images may be written or uploaded to Notion automatically.

Mitigation: Review triggers, message content, and file paths before execution, especially when handling sensitive or private content.

Risk: Search and monthly-summary commands read existing Notion content, and undo can delete recent Notion blocks.

Mitigation: Limit the target page to content suitable for agent access and confirm destructive undo commands before running them.

## Reference(s):

- [ClawHub skill listing](https://clawhub.ai/70asunflower/skills/notion-im-helper)
- [Notion integrations setup](https://www.notion.so/my-integrations)
- [Notion API endpoint](https://api.notion.com/v1)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration guidance]

**Output Format:** [Plain text and Markdown with shell command invocations and Notion status prefixes.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires NOTION_API_KEY and NOTION_PARENT_PAGE_ID; operations can write to Notion, read existing Notion content, upload local images, and delete recent Notion blocks through undo.]

## Skill Version(s):

1.7.1 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Notion IM Helper and adjacent AI workflows.