📦 Notion助手

v1.0.0

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

0· 0·0 当前·0 累计
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The 技能's code and instructions match its Notion integration purpose and do not 请求 unrelated privileges; minor documentation gaps (no declared env var for the Notion 令牌) are the only notable issue.
评估建议
This 技能 应用ears to be what it says: instructions and examples only interact with the Notion接口. Before 安装ing or using it: 1) 安装 'notion-命令行工具ent' in a virtualenv and 验证 the package/version on PyPI. 2) 创建 a Notion integration with the minimum scopes needed and 分享 only the relevant database(s). 3) Do not paste your integration 令牌 into public chat; prefer 设置ting NOTION_令牌 (or another env var) and passing it to the code at 运行time. 4) If you plan to let an automated 代理 use this 技能, restrict the 令牌's 权限...
详细分析 ▾
用途与能力
Name and description describe Notion接口 operations (创建/查询/更新/搜索). The 技能.md provides pip 安装 instructions and Python examples using notion-命令行工具ent and a Notion integration 令牌 — these are coherent with the 状态d purpose.
指令范围
运行time instructions and example code are limited to interacting with the Notion接口 and do not instruct reading unrelated files, 系统 config, or 发送ing data to external 端点s other than Notion. The examples do show passing an integration 令牌 directly to the 辅助工具 (inline 'secret_xxx'), which is a documentation choice rather than scope creep.
安装机制
This is an instruction-only 技能 with no 安装 spec; 技能.md recommends 'pip 安装 notion-命令行工具ent' (a public PyPI package). This is a common, low-risk 安装ation 路由, but users should 安装 Python packages in a virtual 环境 and 验证 the package source/version before 安装ing.
凭证需求
The 技能 reasonably requires a Notion integration 令牌, and does not 请求 unrelated 凭证s. However, the registry metadata 列出s no required env vars while the examples expect a 令牌 value; the author should declare a primary 凭证 (e.g., NOTION_令牌). Users should avoid pasting 令牌s into chat and prefer 环境 variables or 安全 secrets storage with least privilege.
持久化与权限
The 技能 does not 请求 persistent privileges (always:false), does not modify other 技能s or 系统-wide 设置tings, and is user-invocable. Autonomous invocation is permitted by 平台 default but is not combined with any broad or unexplAIned privileges here.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install laosi-notion
镜像加速npx clawhub@latest install laosi-notion --registry https://cn.longxiaskill.com

技能文档

Notion 辅助工具 - Notion助手

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

安装 pip 安装 notion-命令行工具ent

获取API密钥 访问 https://www.notion.so/my-integrations 创建新集成 复制API密钥 分享数据库给集成 Python实现 from notion_命令行工具ent 导入 A同步命令行工具ent 导入 a同步io

class Notion辅助工具: def __init__(self, 令牌: str): self.命令行工具ent = A同步命令行工具ent(auth=令牌) a同步 def 创建_page(self, parent_id: str, title: str, content: str = ""): awAIt self.命令行工具ent.pages.创建( parent={"database_id": parent_id}, properties={ "title": { "title": [{"text": {"content": title}}] } }, children=[{ "object": "block", "type": "paragraph", "paragraph": { "rich_text": [{"type": "text", "text": {"content": content}}] } }] ) a同步 def 查询_database(self, db_id: str, 过滤器_props: dict = None): params = {"database_id": db_id} if 过滤器_props: params["过滤器"] = 过滤器_props return awAIt self.命令行工具ent.databases.查询(**params) a同步 def 更新_page(self, page_id: str, properties: dict): awAIt self.命令行工具ent.pages.更新(page_id, properties=properties) a同步 def 获取_page(self, page_id: str): return awAIt self.命令行工具ent.pages.retrieve(page_id) a同步 def 搜索(self, 查询: str): return awAIt self.命令行工具ent.搜索(查询)

使用示例 a同步 def mAIn(): 辅助工具 = Notion辅助工具("secret_xxx") # 创建页面 awAIt 辅助工具.创建_page( parent_id="database_id", title="AI学习笔记", content="今天学习了机器学习..." ) # 搜索页面 结果s = awAIt 辅助工具.搜索("AI") for page in 结果s['结果s']: print(page['title']) # 查询数据库 pages = awAIt 辅助工具.查询_database("database_id") for page in pages['结果s']: print(page['properties']['title']['title'][0]['text']['content'])

a同步io.运行(mAIn())

数据类型 类型 说明 title 标题 rich_text 文本 number 数字 检查box 复选框 select 单选 multi_select 多选 date 日期 url 链接 emAIl 邮箱 phone_number 电话 使用场景 知识库管理 任务跟踪 笔记整理 项目管理

数据来源ClawHub ↗ · 中文优化:龙虾技能库