xs-notion-manager

xs-notion-manager is a skill for Claude Code, Codex from karaage0703/ai-assistant-workspace. It costs 85 tokens per session (2,014 once invoked), scanned A, original, MIT.

A command-line tool for working with Notion, a workspace for pages, notes, and databases. It can search and read pages, create pages, and upload files through the Notion API.

In plain words
What is it for?
Use it to find pages, inspect page blocks, create pages or database entries, and add images or videos to Notion pages.
Why use it?
It lets you manage Notion content from commands instead of switching between tools and editing pages by hand. It also handles different upload methods for smaller and larger files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find pages, inspect page blocks, create pages or database entries, and add images or videos to Notion pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/karaage0703/ai-assistant-workspace/xs-notion-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add karaage0703/ai-assistant-workspace --skill xs-notion-manager
Clone the repo
git clone --depth 1 https://github.com/karaage0703/ai-assistant-workspace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xs-notion-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-notion-manager/github.svg)](https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-notion-manager)
Your own site
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-notion-manager"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-notion-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xs-notion-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/karaage0703/ai-assistant-workspace/xs-notion-manager"><img src="https://agentmods.dev/badge/skills/karaage0703/ai-assistant-workspace/xs-notion-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,014 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 22
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02014
Opus 5 $0.00043 $0.01007
Sonnet 5 $0.00017 $0.00403
Haiku 4.5 $0.00009 $0.00201

Measured 12d ago against content hash 090d9ee27e10, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

xs-notion-manager scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (notion_tool.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`read --json` で取得した JSON の `file` ブロックには署名付きURLが入る。`curl -sL -o <out> <url>` でダウンロード。**URLは1時間で期限切れ**なので取得後すぐに。
skills/xs-notion-manager/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Notion Manager

Notion APIを使ってページの検索・閲覧・作成、ファイルアップロードを行う。

絶対遵守事項

  • APIキー設定が必要(初回のみ)
  • 対象ページには「接続」許可が必要
  • アップロードは20MB以下は single-part、20MB超は自動で multi-part upload(10MBチャンク)

セットアップ(初回のみ)

  1. https://notion.so/my-integrations でIntegration作成
  2. APIキー(ntn_xxx)をコピー
  3. 設定:
    mkdir -p ~/.config/notion
    echo "ntn_xxxxx" > ~/.config/notion/api_key
    
  4. 対象ページで「...」→「接続」→ Integration名を選択

コマンド一覧

検索

cd [WORKSPACE]/skills/notion-manager
uv run python notion_tool.py search "検索ワード"
uv run python notion_tool.py search "検索ワード" -t page  # ページのみ
uv run python notion_tool.py search "検索ワード" --json   # JSON出力

ページ読み込み

uv run python notion_tool.py read <page_id>
uv run python notion_tool.py read <page_id> --json
uv run python notion_tool.py read <page_id> --with-ids  # 各ブロックIDを表示(編集対象を特定するため)

ページ作成

uv run python notion_tool.py create <parent_id> "タイトル"
uv run python notion_tool.py create <parent_id> "タイトル" -c "本文"
uv run python notion_tool.py create <db_id> "タイトル" --database  # DB内に作成

ファイルアップロード

# 画像をアップロード(imageブロックとして追加)
uv run python notion_tool.py upload photo.jpg <page_id>

# 動画をアップロード(videoブロックとして追加)
uv run python notion_tool.py upload video.mp4 <page_id>

# ファイルをアップロード(fileブロックとして追加)
uv run python notion_tool.py upload document.pptx <page_id> --as-file

# キャプション付き
uv run python notion_tool.py upload photo.jpg <page_id> -c "東京の風景"

対応形式:

  • 画像: jpg, jpeg, png, gif, webp
  • 動画: mp4, mov, webm, avi, mkv
  • 音声: mp3, wav, m4a, ogg, flac
  • 文書: pdf, pptx, docx, xlsx
  • テキスト: txt, md, csv, json, html

サイズ: 20MB以下は single-part、20MB超は自動で multi-part upload(10MBチャンクで分割→/complete で結合)。

個別ブロックの取得・更新・削除

# 1. ブロックIDを調べる(read --with-ids でページ内の全ブロックIDを表示)
uv run python notion_tool.py read <page_id> --with-ids

# 2. 単一ブロックの取得
uv run python notion_tool.py get-block <block_id>
uv run python notion_tool.py get-block <block_id> --json

# 3. ブロックのテキスト更新(既存タイプを維持)
uv run python notion_tool.py update <block_id> -t "新しいテキスト"

# 4. リンク付きテキストに変更
uv run python notion_tool.py update <block_id> -t "クリックでサイトへ" --link "https://example.com"

# 5. To-doブロックのチェック切替
uv run python notion_tool.py update <block_id> --checked
uv run python notion_tool.py update <block_id> --unchecked

# 6. ブロックタイプを切り替え(段落 ↔ 見出し ↔ 箇条書き等)
uv run python notion_tool.py update <block_id> --type bulleted_list_item    # 段落→箇条書き
uv run python notion_tool.py update <block_id> -l 3                         # 見出し2 → 見出し3
uv run python notion_tool.py update <block_id> --type heading_2 -t "新タイトル"  # テキストも同時変更

# 7. ブロック削除(-y で確認スキップ)
uv run python notion_tool.py delete <block_id> -y

Read the full file on GitHub · 163 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 163 lines · 85 tokens per session scan A 090d9ee27e10

Subscribe to this mod's changes

xs-notion-manager is a skill published in the GitHub repository karaage0703/ai-assistant-workspace (137 stars, last pushed 25d ago), licensed MIT. It adds 85 tokens to every session and 2,014 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.