name: notion description: Work with Notion pages and databases via the official Notion API. homepage: https://developers.notion.com metadata: clawdbot: emoji: 🧠 requires: env: - NOTION_API_KEY install: - id: node kind: note label: "Requires notion-cli (Node.js) or notion-cli-py (Python). See docs below."
This skill lets the agent work with Notion pages and databases using the official Notion API.
The skill is declarative: it documents safe, recommended operations and assumes a local CLI
(notion-cli) that actually performs API calls.
export NOTION_API_KEY=secret_xxx
Share the integration with the pages or databases you want to access. Unshared content is invisible to the API.
You may define multiple profiles (e.g. personal, work) via env or config.
Default profile: personal
Override via:
export NOTION_PROFILE=work
Read page:
notion-cli page get <page_id>
Append blocks:
notion-cli block append <page_id> --markdown "..."
Prefer appending over rewriting content.
Create page:
notion-cli page create --parent <page_id> --title "..."
Inspect schema:
notion-cli db get <database_id>
Query database:
notion-cli db query <database_id> --filter <json> --sort <json>
Create row:
notion-cli page create --database <database_id> --props <json>
Update row:
notion-cli page update <page_id> --props <json>
Always inspect diffs before applying schema changes.
Never modify database schema without explicit confirmation.
小葱技能站7w4.net每天更新,海量AI技能等你发现。
Recommended flow:
notion-cli db schema diff <database_id> --desired <json>
notion-cli db schema apply <database_id> --desired <json>
这个Notion技能文档内容较为丰富,涵盖的功能点较多,但质量参差不齐。好的方面是提供了详细的使用示例和错误处理指南,对Notion API的各项操作有较完整的说明。不足之处在于文档结构不够清晰,存在大量重复描述,部分关键配置说明缺失,整体更像功能大纲而非可直接使用的技能包。对于普通用户而言,理解和使用成本偏高,实际落地会存在一定困难。