Communityコーディング&開発github.com

Notion

Notion CLI/API によるページ操作、Markdown コンテンツ、データソース、ファイル、コメント、検索、Workers、生の API 呼び出しを提供します。

Notion とは?

このスキルは、Notion の CLI ツール `ntn` を使用して、Notion ワークスペースを効率的に操作するための包括的な機能を提供します。ページの作成、取得、更新、削除を Markdown ベースで行えるほか、データベースやデータソースのクエリ、ファイルのアップロード、Workers の管理、さらには生の API 呼び出しまでサポートしています。主に `ntn` CLI を使用しますが、`curl` によるフォールバックも可能です。認証は環境変数 `NOTION_API_TOKEN` を使用し、API バージョンは `2026-03-11` が最新です。このスキールは、AI エージェント(Claude Code、Cursor、Codex 等)による Notion 操作を効率化するよう設計されており、マークダウンファイルの一括インポートやプロパティの操作など、頻繁に行うタスクを自動化できます。

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

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Notion は何をしますか?

公式 ntn CLI を優先して使用してください。ntn が利用できない場合や生リクエストの方が明確な場合にのみ curl を使用してください。

セットアップ

npm install -g ntn
ntn --version
ntn login

スクリプト/ヘッドレス認証:

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

ntn api は自動的に Authorization と Notion-Version を設定します。デフォルトでは CLI ログインを使用し、NOTION_API_TOKEN が設定されている場合はそれを使用します。

検査

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

ページ

Markdown ファーストなヘルパー:

ntn pages get <page-id>
ntn pages get <page-id> --json
ntn pages create --parent page:<page-id> --content '# タイトル\n\n本文'
ntn pages create --parent data-source:<data-source-id> < page.md
ntn pages update <page-id> --content '# 更新済み'
ntn pages update <page-id> < page.md
ntn pages trash <page-id> --yes

注意:

  • pages get は Markdown を出力し、ページプロパティは frontmatter として表示されます。
  • コンテンツ入力: --content、標準入力、または TTY のエディタ。
  • 親参照: page:<id>、database:<id>、data-source:<id>。
  • プロパティ/テンプレート/フル Pages API については ntn api v1/pages を使用してください。

データソース

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 '日付 desc'
ntn datasources query <data-source-id> --filter '{"property":"完了","checkbox":{"equals":true}}'

データベース ID がある場合は resolve を使用してください。クエリにはデータソース ID が必要です。

生 API

ntn api v1/users/me
ntn api v1/search query=ロードマップ page_size:=10
ntn api v1/pages 'parent[data_source_id]='"$DS_ID" 'properties[名前][title][0][text][content]=新しいアイテム'
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]=こんにちは'

入力構文:

  • path=value: 文字列ボディフィールド。
  • path:=json: 型付き JSON ボディフィールド。
  • name==value: クエリパラメータ。
  • Header:Value: リクエストヘッダ。
  • --data '<json>' またはより大きなボディには標準入力 JSON。
  • リクエストごとに 1 つのボディソースのみ。

ファイル

ntn files create < image.png
ntn files create --filename photo.png --content-type image/png < /tmp/photo
ntn files create --external-url https://example.com/photo.png
ntn files get <upload-id>
ntn 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 を使用するには、Business/Enterprise プランとワークスペースでの有効化が必要な場合があります。

curl フォールバック

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"

バージョン注意

  • 現在の最新 API バージョン: 2026-03-11。
  • archived ではなく in_trash を使用してください。
  • ブロックの追加位置指定には、フラットな after ではなく position を使用します。
  • transcription ブロックは meeting_notes に名称変更されました。
  • データベースは複数のデータソースを含むことができます。ページの親は通常 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.

関連スキル