notion-db

Notion APIを使ってデータベース/データソースから複数ページを取得し、ページ更新もできるスキル。 使用タイミング: (1) Notion DBを条件付きで取得したい (2) 一括取得したい (3) DB itemのプロパティを更新したい (4) ページのコンテンツをMarkdownで取得したい トリガーキーワード: Notion、データベース取得、Notion API、filter、query database、update page、get markdown、ページ内容取得

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "notion-db" with this command: npx skills add iemong/claude-code/iemong-claude-code-notion-db

Notion DB Skill

Notion APIのquery database/query data sourceでページを複数件取得し、update pageでitem更新、get markdownでページコンテンツをMarkdown取得する。

認証

環境変数用途
CLAUDE_NOTION_TOKENNotion Integration Token
NOTION_VERSION任意。未指定時は 2022-06-28

使用方法

取得(既存挙動)

基本(最大50件取得)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py \
  --database-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --max-items 50

最新API(Data Source)を使う場合

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py \
  --data-source-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --max-items 50

フィルター指定(JSON文字列)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py \
  --database-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --filter '{"property":"Status","status":{"equals":"Done"}}' \
  --max-items 100

フィルター指定(JSONファイル)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py \
  --database-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --filter-file ./filter.json \
  --sorts-file ./sorts.json

途中カーソルから再開

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py \
  --database-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  --start-cursor "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

更新(itemのプロパティ更新)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py update-page \
  --page-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  --properties '{"Status":{"status":{"name":"In progress"}}}'

更新(JSONファイルで更新)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py update-page \
  --page-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  --properties-file ./properties.json

Markdown取得(ページコンテンツをMarkdownで取得)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py get-markdown \
  --page-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Markdown取得(会議ノートのトランスクリプト込み)

python3 ${CLAUDE_PLUGIN_ROOT}/skills/notion-db/scripts/notion_db.py get-markdown \
  --page-id "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  --include-transcript

注意: get-markdown は Notion API 2025-09-03 を自動的に使用します(--notion-version の指定は不要)。

出力

JSONを標準出力する。主なキー:

  • action: query または update-page
  • count: 取得件数
  • has_more: 続きがあるか
  • next_cursor: 次ページ取得に使うカーソル
  • target_type: database または data-source
  • target_id: クエリ対象ID
  • results: Notionページ配列
  • page: 更新後ページ(update-page の場合)
  • markdown: ページコンテンツのMarkdown文字列(get-markdown の場合)
  • truncated: コンテンツが切り詰められたか(get-markdown の場合)
  • unknown_block_ids: 未知ブロックID配列(get-markdown の場合)

--compact を使うと id/url/created_time/last_edited_time/properties のみを返す。

参考

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Updating OpenRouter Free Models

Use when needing to fetch, test, and update OpenRouter free model lists in Claude Code or OpenClaw configurations

Registry SourceRecently Updated
380Profile unavailable
Coding

Ask Claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no...

Registry SourceRecently Updated
600Profile unavailable
Coding

OpenClaw Agent Skill

OpenClaw development assistant, built by Michel Costa, co-founder of Brabaflow — AI-Native Agency (brabaflow.ai). Use this skill when the user asks about Ope...

Registry SourceRecently Updated
1140Profile unavailable
Coding

Claude for Safari

Control the user's real Safari browser on macOS using AppleScript and screencapture. This skill should be used when the user asks to interact with Safari, br...

Registry SourceRecently Updated
1200Profile unavailable