Notion助手

v1.0.0

Notion API助手 - 创建和管理Notion页面、数据库,支持笔记和知识管理。

0· 29·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for 534422530/laosi-notion.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Notion助手" (534422530/laosi-notion) from ClawHub.
Skill page: https://clawhub.ai/534422530/laosi-notion
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install laosi-notion

ClawHub CLI

Package manager switcher

npx clawhub@latest install laosi-notion
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description describe Notion API operations (create/query/update/search). The SKILL.md provides pip install instructions and Python examples using notion-client and a Notion integration token — these are coherent with the stated purpose.
Instruction Scope
Runtime instructions and example code are limited to interacting with the Notion API and do not instruct reading unrelated files, system config, or sending data to external endpoints other than Notion. The examples do show passing an integration token directly to the helper (inline 'secret_xxx'), which is a documentation choice rather than scope creep.
Install Mechanism
This is an instruction-only skill with no install spec; SKILL.md recommends 'pip install notion-client' (a public PyPI package). This is a common, low-risk installation route, but users should install Python packages in a virtual environment and verify the package source/version before installing.
Credentials
The skill reasonably requires a Notion integration token, and does not request unrelated credentials. However, the registry metadata lists no required env vars while the examples expect a token value; the author should declare a primary credential (e.g., NOTION_TOKEN). Users should avoid pasting tokens into chat and prefer environment variables or secure secrets storage with least privilege.
Persistence & Privilege
The skill does not request persistent privileges (always:false), does not modify other skills or system-wide settings, and is user-invocable. Autonomous invocation is permitted by platform default but is not combined with any broad or unexplained privileges here.
Assessment
This skill appears to be what it says: instructions and examples only interact with the Notion API. Before installing or using it: 1) Install 'notion-client' in a virtualenv and verify the package/version on PyPI. 2) Create a Notion integration with the minimum scopes needed and share only the relevant database(s). 3) Do not paste your integration token into public chat; prefer setting NOTION_TOKEN (or another env var) and passing it to the code at runtime. 4) If you plan to let an automated agent use this skill, restrict the token's permissions and monitor activity in your Notion workspace.

Like a lobster shell, security has layers — review code before you run it.

databasevk978y4vbnc9zt8mwt1yv6cvxkd85ps07latestvk978y4vbnc9zt8mwt1yv6cvxkd85ps07notesvk978y4vbnc9zt8mwt1yv6cvxkd85ps07notionvk978y4vbnc9zt8mwt1yv6cvxkd85ps07
29downloads
0stars
1versions
Updated 7h ago
v1.0.0
MIT-0

Notion Helper - Notion助手

激活词: Notion / 笔记管理 / 知识库

安装

pip install notion-client

获取API密钥

  1. 访问 https://www.notion.so/my-integrations
  2. 创建新集成
  3. 复制API密钥
  4. 分享数据库给集成

Python实现

from notion_client import AsyncClient
import asyncio

class NotionHelper:
    def __init__(self, token: str):
        self.client = AsyncClient(auth=token)
    
    async def create_page(self, parent_id: str, title: str, content: str = ""):
        await self.client.pages.create(
            parent={"database_id": parent_id},
            properties={
                "title": {
                    "title": [{"text": {"content": title}}]
                }
            },
            children=[{
                "object": "block",
                "type": "paragraph",
                "paragraph": {
                    "rich_text": [{"type": "text", "text": {"content": content}}]
                }
            }]
        )
    
    async def query_database(self, db_id: str, filter_props: dict = None):
        params = {"database_id": db_id}
        if filter_props:
            params["filter"] = filter_props
        return await self.client.databases.query(**params)
    
    async def update_page(self, page_id: str, properties: dict):
        await self.client.pages.update(page_id, properties=properties)
    
    async def get_page(self, page_id: str):
        return await self.client.pages.retrieve(page_id)
    
    async def search(self, query: str):
        return await self.client.search(query)

使用示例

async def main():
    helper = NotionHelper("secret_xxx")
    
    # 创建页面
    await helper.create_page(
        parent_id="database_id",
        title="AI学习笔记",
        content="今天学习了机器学习..."
    )
    
    # 搜索页面
    results = await helper.search("AI")
    for page in results['results']:
        print(page['title'])
    
    # 查询数据库
    pages = await helper.query_database("database_id")
    for page in pages['results']:
        print(page['properties']['title']['title'][0]['text']['content'])

asyncio.run(main())

数据类型

类型说明
title标题
rich_text文本
number数字
checkbox复选框
select单选
multi_select多选
date日期
url链接
email邮箱
phone_number电话

使用场景

  1. 知识库管理
  2. 任务跟踪
  3. 笔记整理
  4. 项目管理

Comments

Loading comments...