Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generic Notion API CLI (Node) for search, querying data sources (databases), and creating pages. Configure with NOTION_KEY (or ~/.config/notion/api_key).
.claude/skills/sundial-org-notion-api/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -60% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -54% | 0% |
This skill provides a small Node-based CLI for the Notion API. It’s designed to be shareable: no hard-coded database IDs and no secrets in the repo.
Provide a Notion integration token via either:
NOTION_KEY env var, or~/.config/notion/api_key (first line)Also make sure the target pages/databases are shared with your integration in Notion.
Run via:
node scripts/notion-api.mjs <command> ...bashnode scripts/notion-api.mjs search "query" --page-size 10
bashnode scripts/notion-api.mjs query --data-source-id <DATA_SOURCE_ID> --page-size 10 # optionally pass raw JSON body: node scripts/notion-api.mjs query --data-source-id <ID> --body '{"filter": {...}, "sorts": [...], "page_size": 10}'
bashnode scripts/notion-api.mjs create-page --database-id <DATABASE_ID> --title "My item" --title-prop Name
All commands print JSON to stdout.
2025-09-03 (override with NOTION_VERSION).page_size and minimal calls.Other measured skills in the registry, with their headline benchmark lift.