← 返回 Skills 市场
maweis1981

Notion Md

作者 Patronum · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
574
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install notion-md
功能描述
Convert Markdown to Notion blocks with full format support. Handles bold, italic, strikethrough, inline code, headings, lists, tables, callouts, and more.
使用说明 (SKILL.md)

notion-md

Convert Markdown to Notion blocks with full format support.

Features

  • Rich Text: Bold, italic, strikethrough, inline code, underline, color
  • Headings: H1, H2, H3 with proper styling
  • Lists: Bulleted, numbered, toggle lists
  • Blocks: Quotes, callouts, dividers, code blocks
  • Advanced: Tables, nested content, links
  • Parent Page: Configurable parent page ID

Setup

1. Get Notion API Key

  1. Go to https://www.notion.so/my-integrations
  2. Create new integration
  3. Copy the API key (starts with ntn_)

2. Configure API Key

# Option A: Environment variable
export NOTION_API_KEY="ntn_your_key"

# Option B: Config file
mkdir -p ~/.config/notion
echo "ntn_your_key" > ~/.config/notion/api_key

3. Get Parent Page ID

The parent page where new pages will be created:

notion-md list-pages

Or set default:

export NOTION_PARENT_PAGE_ID="parent_page_id"

Usage

Create Page from File

notion-md create --file article.md --title "My Article" --emoji 📝

Create from stdin

echo "# Hello World" | notion-md create "Page Title"

Options

Option Description
--file, -f Input Markdown file
--title, -t Page title (required)
--emoji, -e Page icon (default: 📄)
--parent-id, -p Parent page ID
--dry-run Preview without creating

List Pages

notion-md list-pages

Append to Page

echo "## New Section" | notion-md append --page-id "abc123..."

Notion Format Mapping

Markdown Notion Block
# Title heading_1
## Title heading_2
### Title heading_3
**bold** bold annotation
*italic* italic annotation
~~text~~ strikethrough
`code` code annotation
--- divider
- item bulleted_list_item
1. item numbered_list_item
> quote quote
text code block
::: callout callout
| table | table (basic)

Examples

Rich Content

# My Article

**This is bold** and *this is italic*.

> Important quote here

## Code Example

```python
def hello():
    print("Hello World")
  • Item 1
  • Item 2

### Create with Options

```bash
notion-md create \
  --file blog-post.md \
  --title "My Blog Post" \
  --emoji ✍️ \
  --parent-id "page_id_here"

Environment Variables

Variable Description
NOTION_API_KEY Notion API key
NOTION_PARENT_PAGE_ID Default parent page ID

API Version

Notion API: 2022-06-28

安全使用建议
This skill looks like documentation for a CLI tool rather than a ready-to-run OpenClaw skill. Before installing or using it: 1) Confirm where the `notion-md` binary or package comes from (PyPI/GitHub release) — the skill bundle does not include it. 2) Only provide a Notion API key with the minimum required permissions (create pages in specified parent only); prefer a dedicated integration token you can revoke. 3) If the agent asks you to run commands or paste your API key, verify the origin and inspect the actual code that will run. 4) Ask the publisher for a proper install spec or source code; if none is available, treat the skill as documentation and avoid giving credentials to any unverified runtime.
功能分析
Type: OpenClaw Skill Name: notion-md Version: 1.0.0 The skill bundle appears benign. All files consistently describe a utility for converting Markdown to Notion blocks. The `SKILL.md` and `README.md` provide standard setup instructions for configuring a Notion API key (via environment variable or a local config file) and usage examples that align with the stated purpose. There are no signs of prompt injection attempts, malicious commands (e.g., `curl|bash`, `eval`), data exfiltration, or persistence mechanisms. The `requirements.txt` explicitly states 'No external dependencies - uses only standard library', which significantly reduces supply chain risks and is a strong indicator of benign intent.
能力评估
Purpose & Capability
Name/description (Markdown -> Notion blocks) aligns with the single declared secret (NOTION_API_KEY). Requesting a Notion API key is expected for this purpose.
Instruction Scope
The SKILL.md is written as CLI user documentation (commands like `notion-md create`, `list-pages`, `append`) but the package contains no executable, install spec, or runtime code. It also suggests storing the API key at ~/.config/notion/api_key and using NOTION_PARENT_PAGE_ID (optional) while only NOTION_API_KEY is declared in metadata. This mismatch means an agent following these instructions may try to run non-existent binaries or access a config path that wasn't declared.
Install Mechanism
No install spec and no code files are included (instruction-only), which minimizes write-to-disk risk. The manifest contains docs and empty requirements.txt but no downloadable artifacts or external URLs.
Credentials
Only NOTION_API_KEY is required — appropriate for the stated functionality. The SKILL.md also documents an optional NOTION_PARENT_PAGE_ID and a config file path (~/.config/notion/api_key) that are not listed in requires.env or required config paths; that is a minor inconsistency to be aware of.
Persistence & Privilege
Skill is not always-enabled and requests no persistent system-wide privileges. It does not modify other skills or system settings in the provided instructions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install notion-md
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /notion-md 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of notion-md – convert Markdown to Notion blocks - Converts Markdown to Notion blocks with support for bold, italic, strikethrough, code, headings, lists, tables, callouts, and more. - Configurable via environment variables, including Notion API key and parent page ID. - Includes commands for creating, appending, and listing Notion pages from Markdown input. - Supports preview mode with `--dry-run`. - Detailed Notion block mapping for all supported Markdown syntax. - Easy setup instructions for API integration.
元数据
Slug notion-md
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Notion Md 是什么?

Convert Markdown to Notion blocks with full format support. Handles bold, italic, strikethrough, inline code, headings, lists, tables, callouts, and more. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 574 次。

如何安装 Notion Md?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install notion-md」即可一键安装,无需额外配置。

Notion Md 是免费的吗?

是的,Notion Md 完全免费(开源免费),可自由下载、安装和使用。

Notion Md 支持哪些平台?

Notion Md 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Notion Md?

由 Patronum(@maweis1981)开发并维护,当前版本 v1.0.0。

💬 留言讨论