Notion
by @dimagious
Work with Notion pages and databases via the official Notion API.
clawhub install notion-skillπ About This Skill
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
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
Append blocks:
notion-cli block append --markdown "..."
Prefer appending over rewriting content.
Create page:
notion-cli page create --parent --title "..."
Databases
Inspect schema:
notion-cli db get
Query database:
notion-cli db query --filter --sort
Create row:
notion-cli page create --database --props
Update row:
notion-cli page update --props
Schema changes (advanced)
Always inspect diffs before applying schema changes.
Never modify database schema without explicit confirmation.
Recommended flow:
notion-cli db schema diff --desired
notion-cli db schema apply --desired