agentsclimarketplace

Notion reader

Skill wataori/claude-skills/skills/notion-reader

Notion のページ内容・データベースレコードをローカルに取得するスキル。 ページをMarkdown形式で保存したり、データベースをCSV/JSONで取得したり、 キーワードでページを検索できる。複数ワークスペース(会社ごと)のアカウントを プロファイル名で切り替えられる。 ユーザーが「Notionのページを取得」「Notionのドキュメントを読み込んで」 「Notionのデータベースをダウンロード」「Notionを検索して」などと言ったとき、 またはNotionのURLが含まれているときは必ずこのスキルを使う。From its SKILL.md

Install
npx -y skills add wataori/claude-skills --skill notion-reader

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.0 KB, as published. Nobody here has run it

Notion Reader

Notion のページ・データベース・検索結果をローカルに取得するスキル。

前提条件

  • pip install requests がインストール済みであること
  • プロファイル設定ファイル ~/.notion-profiles.json に Integration Token が登録済みであること

プロファイルのセットアップ

初回または新しいワークスペースを追加する場合:

python3 <SKILL_DIR>/scripts/notion_reader.py setup

対話形式でプロファイル名(例: work-a、work-b)と Integration Token を登録する。

設定ファイルは ~/.notion-profiles.json に保存される:

{
  "work-a": "secret_xxxxxxxxxx",
  "work-b": "secret_yyyyyyyyyy"
}

Integration Token の取得方法:

  1. https://www.notion.so/my-integrations を開く
  2. 「New integration」→ 名前を入力 → Submit
  3. 「Internal Integration Token」をコピー
  4. 対象ページ/データベースの「...」→「Connect to」→作成したIntegrationを追加

ワークフロー

Step 1: プロファイル確認

python3 <SKILL_DIR>/scripts/notion_reader.py profiles

登録済みプロファイルの一覧を表示。

Step 2: ユーザーの要求を解釈

ユーザーの意図コマンド
「このNotionページを取得して」+ URLpage <URL>
「このデータベースをCSVで取得して」+ URLdatabase <URL> --format csv
「〇〇というページを検索して」search "〇〇"
「〇〇社のアカウントで」「〇〇のプロファイルで」--profile <プロファイル名>
プロファイル未指定登録済み一覧を表示して選択を促す(1つだけなら自動選択)

Step 3: スクリプトを実行

ページ取得(Markdown保存)

python3 <SKILL_DIR>/scripts/notion_reader.py page <URL-or-ID> \
  --profile <プロファイル名> \
  [--output <保存先ディレクトリ>]

データベース取得

python3 <SKILL_DIR>/scripts/notion_reader.py database <URL-or-ID> \
  --profile <プロファイル名> \
  [--format csv|json] \
  [--output <保存先ディレクトリ>]

キーワード検索

python3 <SKILL_DIR>/scripts/notion_reader.py search "キーワード" \
  --profile <プロファイル名> \
  [--limit 10]

プロファイル管理

python3 <SKILL_DIR>/scripts/notion_reader.py setup     # 新規プロファイル追加
python3 <SKILL_DIR>/scripts/notion_reader.py profiles  # 一覧表示

Step 4: 結果を報告

  • page: 保存した Markdown ファイルのパスと文字数
  • database: 保存したファイルのパスと行数
  • search: ヒットしたページの一覧(タイトル・URL・最終更新日)

エラーハンドリング

エラー対処
プロファイルが見つからないsetup コマンドで登録を促す
401 UnauthorizedIntegration Token が無効。再発行してプロファイルを更新
403 Forbiddenページに Integration が接続されていない。Notion 側で「Connect to」設定が必要
プロファイル未指定で複数登録ありprofiles コマンドで一覧を表示してユーザーに選択を求める

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.