notion-cli

notion-cli is a skill for Claude Code from terrylica/cc-skills. It costs 36 tokens per session (1,750 once invoked), scanned A, original, MIT.

A command-line tool for working with Notion, a workspace for pages, notes, and databases. It can search, read, query, export, and update Notion content from a terminal.

In plain words
What is it for?
Use it to find Notion pages, query databases, read content, export data, manage blocks, and add comments.
Why use it?
It avoids switching between an agent and the Notion app or writing custom API code for routine tasks. Its output can be sent to other command-line tools or files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the productivity-tools plugin — 8 skills shipped together , and of cc-skills

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.

agentmods
npx agentmods add skills/terrylica/cc-skills/notion-cli
Any agent
npx skills add terrylica/cc-skills --skill notion-cli
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code.

Or install productivity-tools, the plugin that ships this one along with the rest of its 8 skills.

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 notion-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/notion-cli.svg)](https://agentmods.dev/skills/terrylica/cc-skills/notion-cli)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/notion-cli"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/notion-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00036 $0.01750
Opus 5 $0.00018 $0.00875
Sonnet 5 $0.00007 $0.00350
Haiku 4.5 $0.00004 $0.00175

Measured today against content hash 73b8b0b6bb35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

notion-cli scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/productivity-tools/skills/notion-cli/SKILL.md · 206 lines

How it starts

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

Notion CLI

Fast, agent-friendly access to Notion via the 4ier/notion-cli Go binary. Single static binary, sub-second startup, auto-JSON when piped.

Self-Evolving Skill: Fix this file immediately if instructions drift. Do not defer.

When to Use

Use this skill when the user wants to interact with Notion from the command line — searching pages, querying databases, reading content, exporting data, managing blocks, or adding comments. This wraps the Go binary notion (installed via brew install 4ier/tap/notion-cli).

Do NOT use this skill for programmatic Python automation with the Notion SDK — use productivity-tools:notion-sdk instead. This skill is for CLI-first, pipe-friendly operations.

Preflight

Before any operation, verify the CLI is authenticated:

notion auth status

If not authenticated, retrieve the token from Doppler and authenticate:

doppler secrets get NOTION_API_TOKEN --project claude-config --config prd --plain | notion auth login --with-token

Fallback: prompt the user for their integration token.

Output Formats

The CLI auto-detects context:

  • TTY (interactive terminal): colored tables
  • Piped (to jq, file, etc.): clean JSON

Force a format with --format:

Flag Output
--format json JSON
--format table ASCII table
--format md Markdown
--format text Plain text

For agent consumption, always pipe or use --format json to get structured output.

Core Commands

Search

notion search "meeting notes"                  # Search by title
notion search --type page "roadmap"            # Pages only
notion search --type database                  # List all databases
notion search --all                            # Fetch all results (paginated)
notion search --limit 20 "query"               # Limit results

Pages

notion page view <page-id|url>                 # View page content (blocks as markdown)
notion page props <page-id|url>                # Show page properties
notion page create --parent <id> --title "X"   # Create a page
notion page set <id> --prop 'Status=Done'      # Set property
notion page edit <id>                          # Edit in $EDITOR
notion page move <id> --to <parent-id>         # Move page
notion page delete <id>                        # Archive page
notion page restore <id>                       # Restore archived page
notion page open <id>                          # Open in browser
notion page list                               # List accessible pages

Read the full file on GitHub · 206 lines

Files

What ships with it

1 file 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. today First seen · 206 lines · 36 tokens per session scan A 73b8b0b6bb35

Subscribe to this mod's changes

notion-cli is a skill published in the GitHub repository terrylica/cc-skills (62 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,750 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

omh-morning-brief

This is a Hermes-native morning-brief workflow skill.

rlaope/oh-my-hermes · 92 tokens

todos

This chat has a shared, live TODO plan — your tasks for the conversation, which the user also edits. Read this skill and reach for the todo tools whenever a request takes more than a couple of steps. It covers the plan model (group = task, items = its steps; loose items are the user's lane), how to work it: propose…

JetBrains/thinkrail · 127 tokens

tokf-discover

Find missed token savings by scanning AI coding session files for commands that ran without tokf filtering.

mpecan/tokf · 24 tokens

codex-task-inspector

Inspect Codex async task progress from the correct data directory. Use when the user asks to check Codex status, inspect async task progress, summarize task state, or determine whether local Codex workers are still running. Always detect the active Codex data dir first: prefer CODEXHOME when set, otherwise fall back…

bifrost-proxy/bifrost · 91 tokens

dev-bounce

코드를 고치거나 새로 짜는 작업을 단계별 워크플로우로 진행한다. 버그 수정, 기능 구현, 리팩터링, 설정·의존성 변경, "이거 고쳐줘" / "이 기능 추가해줘" / "왜 안 되는지 보고 고쳐봐" 같은 요청에 파일을 건드리기 전 반드시 먼저 호출할 것. 계획 승인·검증 통과·커밋을 엔진이 강제하는데, 이 스킬로 작업을 시작해야만 그 강제가 걸린다 — 스킬 없이 바로 Edit/Write하면 아무 규칙도 적용되지 않은 채 진행된다. 질문·설명·코드 읽기만 하는 요청에는 쓰지 않는다.

kangraemin/claude-inspector · 160 tokens

alive:world

The human doesn't know what to work on, or wants to see everything at once. They need the big picture — what's active, what's stale, what needs attention. Renders a live world view grouped by ALIVE domain, then routes to open, tidy, find, history, or map.

alivecontext/alive · 63 tokens