Notion

👤 dimagious 📦 v1.0.0 ⭐ 4.2 ⬇️ 14.1K 下載
🤖 AI-Agent 免費 🔑 需 API Key

📖 技能介紹


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."


Notion

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.

Authentication

  • Create a Notion Integration at https://www.notion.so/my-integrations
  • Copy the Internal Integration Token.
  • Export it as:
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.

Profiles (personal / work)

You may define multiple profiles (e.g. personal, work) via env or config.

Default profile: personal

Override via:

export NOTION_PROFILE=work

Pages

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 "..."

Databases

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>

Schema changes (advanced)

Always inspect diffs before applying schema changes.

Never modify database schema without explicit confirmation.

Recommended flow:

notion-cli db schema diff <database_id> --desired <json>
notion-cli db schema apply <database_id> --desired <json>

Safety notes

  • Notion API is rate-limited; batch carefully.
  • Prefer append and updates over destructive operations.
  • IDs are opaque; store them explicitly, do not infer from URLs.

    小蔥技能7w4.net有完整的技能分類。

🤖 AI 評測

這個Notion技能文件內容較為豐富,涵蓋的功能點較多,但質量參差不齊。好的方面是提供了詳細的使用示例和錯誤處理指南,對Notion API的各項操作有較完整的說明。不足之處在於文件結構不夠清晰,存在大量重複描述,部分關鍵配置說明缺失,整體更像功能大綱而非可直接使用的技能包。對於普通使用者而言,理解和使用成本偏高,實際落地會存在一定困難。

📊 多維度評分

適應性4.2
規範性4
有效性4.3
可靠性4.3
可信度4.5

📁 包含檔案 (3 個)

📄 README.md 835 B
📄 SKILL.md 2.2 KB
📄 _meta.json 131 B