CommunityCodierung & Entwicklunggithub.com

Notion

Notion CLI/API für Seiten, Markdown-Inhalte, Datenquellen, Dateien, Kommentare, Suche, Workers und direkte API-Aufrufe.

Was ist Notion?

Das Notion-Skill bietet einen vollständigen Satz von Befehlen für die Interaktion mit der Notion-API über die bevorzugte CLI `ntn`. Es umfasst Operationen wie das Abrufen, Erstellen, Aktualisieren und Verschieben von Seiten in den Papierkorb, wobei Markdown als primäres Format für Inhalte dient. Über spezifische Befehle lassen sich Datenquellen auflösen und abfragen, Dateien hochladen und verwalten sowie Notion Workers deployen und verwalten. Das Skill unterstützt sowohl die interaktive Nutzung über ein Terminal als auch die skriptgesteuerte Ausführung in Headless-Umgebungen durch Setzen des `NOTION_API_TOKEN` und der API-Version. Als Fallback für seltene Fälle wird die direkte Verwendung von `curl` für rohe API-Aufrufe dokumentiert, wobei die CLI die Authentifizierung und Versionierung automatisch übernimmt.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/notion

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht Notion?

Die offizielle ntn CLI bevorzugen. curl nur verwenden, wenn ntn nicht verfügbar ist oder ein roher Request klarer ist.

Einrichtung

npm install -g ntn
ntn --version
ntn login

Skript-/Headless-Authentifizierung:

export NOTION_API_TOKEN=secret_oder_ntn_token
export NOTION_API_VERSION=2026-03-11

ntn api setzt Authorization und Notion-Version automatisch. Standardmäßig wird die CLI-Anmeldung verwendet, oder NOTION_API_TOKEN, wenn gesetzt.

Inspizieren

ntn doctor
ntn api ls
ntn api ls --json
ntn api v1/comments --help
ntn api v1/comments --spec -X POST
ntn api v1/comments --docs -X POST

Seiten

Markdown-zentrierte Helfer:

ntn pages get <page-id>
ntn pages get <page-id> --json
ntn pages create --parent page:<page-id> --content '# Titel\n\nTextkörper'
ntn pages create --parent data-source:<data-source-id> < seite.md
ntn pages update <page-id> --content '# Aktualisiert'
ntn pages update <page-id> < seite.md
ntn pages trash <page-id> --yes

Hinweise:

  • pages get gibt Markdown mit Seiten-Eigenschaften als Frontmatter aus.
  • Inhaltseingabe: --content, stdin oder Editor in einem TTY.
  • Elternreferenzen: page:<id>, database:<id>, data-source:<id>.
  • Für Eigenschaften/Vorlagen/die vollständige Seiten-API ntn api v1/pages verwenden.

Datenquellen

ntn datasources resolve <database-id>
ntn datasources resolve <database-id> --json
ntn datasources query <data-source-id>
ntn datasources query <data-source-id> --limit 50 --json
ntn datasources query <data-source-id> --sort 'Datum absteigend'
ntn datasources query <data-source-id> --filter '{"property":"Erledigt","checkbox":{"equals":true}}'

resolve bei einer Datenbank-ID verwenden. query benötigt eine Datenquellen-ID.

Rohe API

ntn api v1/users/me
ntn api v1/search query=roadmap page_size:=10
ntn api v1/pages 'parent[data_source_id]='"$DS_ID" 'properties[Name][title][0][text][content]=Neues Element'
ntn api "v1/pages/$PAGE_ID" -X PATCH in_trash:=true
ntn api "v1/blocks/$PAGE_ID/children" -X PATCH \
  'children[0][type]=paragraph' \
  'children[0][paragraph][rich_text][0][text][content]=Hallo'

Eingabesyntax:

  • path=value: String-Body-Feld.
  • path:=json: Typisiertes JSON-Body-Feld.
  • name==value: Query-Parameter.
  • Header:Value: Request-Header.
  • --data '<json>' oder stdin JSON für größere Bodies.
  • Nur eine Body-Quelle pro Request.

Dateien

ntn files create < bild.png
ntn files create --filename foto.png --content-type image/png < /tmp/foto
ntn files create --external-url https://example.com/foto.png
ntn files get <upload-id>
tn files list

Workers

ntn workers new
ntn workers deploy
ntn workers list --json
ntn workers runs list --json
ntn workers runs logs <run-id>

Workers erfordern möglicherweise einen Business/Enterprise-Plan und die Aktivierung im Workspace.

Curl-Fallback

curl -sS "https://api.notion.com/v1/users/me" \
  -H "Authorization: Bearer $NOTION_API_TOKEN" \
  -H "Notion-Version: 2026-03-11" \
  -H "Content-Type: application/json"

Versionshinweise

  • Aktuelle API-Version: 2026-03-11.
  • in_trash verwenden, nicht archived.
  • Block-Positionierung beim Anhängen verwendet position, nicht das flache after.
  • Block transcription in meeting_notes umbenannt.
  • Datenbanken können mehrere Datenquellen enthalten; Seiten-Eltern verwenden im Allgemeinen data_source_id.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

Verwandte Skills