Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

notion-skillNotion 技能

Agent Skill

用于处理 Notion 页面、数据库、工作区内容和结构化记录。它适合让 Agent 查询知识库、整理页面内容、创建记录或把外部信息同步到 Notion。使用时需要确认集成是否已被授权到目标页面或数据库,并区分读取、追加和覆盖更新;涉及批量写入或修改数据库属性时,应先核对字段名称、属性类型和目标页面。

总安装

196

周安装

8

GitHub Stars

8

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:notion-skill(Notion 技能)
来源仓库:https://github.com/idanbeck/claude-skills
仓库路径:skills/notion-skill
安装命令:
npx skills add https://github.com/idanbeck/claude-skills --skill notion-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/idanbeck/claude-skills --skill notion-skill

简介

notion-skill 用于处理 Notion 页面、数据库、工作区内容和结构化记录。它适合让 Agent 查询知识库、整理页面内容、创建记录或把外部信息同步到 Notion。

  • 适用于知识管理、文档归档或团队协作内容更新场景。
  • 支持读取页面、查询数据库、创建新条目及更新属性,需区分只读与写入操作。
  • 使用时需要确认集成是否已被授权到目标页面或数据库,并核对字段名称与属性类型。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Notion Skill - Database & Page Access

Read and query Notion databases and pages. Supports multiple workspaces. Useful for data migration and export.

First-Time Setup (~3 minutes per workspace)

1. Create an Internal Integration (per workspace)

  1. Go to Notion Integrations
  2. Click + New integration
  3. Name it (e.g., "Claude Assistant")
  4. Select the workspace you want to access
  5. Under Capabilities, ensure "Read content" is enabled
  6. Click Submit
  7. Copy the Internal Integration Secret (starts with ntn_ or secret_)

Note: Each Notion workspace requires its own integration. Create one integration per workspace.

2. Share Pages/Databases with the Integration

Important: Notion integrations can only access pages explicitly shared with them.

  1. Open any database or page you want to access
  2. Click ... (menu) in the top right
  3. Click Add connections
  4. Search for your integration name and select it
  5. Repeat for all databases/pages you need

3. Configure Accounts

Create ~/.claude/skills/notion-skill/config.json:

{
  "default_account": "personal",
  "accounts": {
    "personal": {
      "email": "you@gmail.com",
      "workspace": "Personal",
      "token": "ntn_..."
    },
    "work": {
      "email": "you@company.com",
      "workspace": "Company",
      "token": "ntn_..."
    }
  }
}

Commands

List Accounts

python3 ~/.claude/skills/notion-skill/notion_skill.py accounts

List Databases

python3 ~/.claude/skills/notion-skill/notion_skill.py databases [-a ACCOUNT]

Lists all databases shared with the integration.

Examples:

# Use default account
python3 ~/.claude/skills/notion-skill/notion_skill.py databases

# Use specific account
python3 ~/.claude/skills/notion-skill/notion_skill.py databases -a epoch

Query Database

python3 ~/.claude/skills/notion-skill/notion_skill.py query DATABASE_ID [-a ACCOUNT] [--limit N] [--filter PROPERTY:VALUE]

Arguments:

  • DATABASE_ID - The database ID (from URL or databases command)
  • -a / --account - Account/workspace to use
  • --limit / -l - Number of results (default: 100)
  • --filter / -f - Filter by property (e.g., --filter "Status:Active")

Example:

python3 ~/.claude/skills/notion-skill/notion_skill.py query abc123 -a personal --limit 50

Get Page

python3 ~/.claude/skills/notion-skill/notion_skill.py page PAGE_ID [-a ACCOUNT]

Gets a page's properties and content.

Search

python3 ~/.claude/skills/notion-skill/notion_skill.py search "query" [-a ACCOUNT] [--type database|page]

Arguments:

  • query - Search term
  • -a / --account - Account/workspace to use
  • --type / -t - Filter by type: database or page

Export Database to JSON

python3 ~/.claude/skills/notion-skill/notion_skill.py export DATABASE_ID [-a ACCOUNT] [--output FILE]

Exports all entries from a database to JSON for migration.

Arguments:

  • DATABASE_ID - The database to export
  • -a / --account - Account/workspace to use
  • --output / -o - Output file (default: stdout)

Migration Workflow

1. List Accounts

python3 ~/.claude/skills/notion-skill/notion_skill.py accounts

2. Find Your Databases

python3 ~/.claude/skills/notion-skill/notion_skill.py databases -a personal
python3 ~/.claude/skills/notion-skill/notion_skill.py databases -a epoch

3. Preview Data Structure

python3 ~/.claude/skills/notion-skill/notion_skill.py query DATABASE_ID -a personal --limit 5

4. Export Full Database

python3 ~/.claude/skills/notion-skill/notion_skill.py export DATABASE_ID -a personal --output people.json

5. Migrate to Obsidian

Use the exported JSON to create pages in the vault.

Output Format

All commands output JSON. Database entries include:

  • id - Page ID
  • url - Notion URL
  • created_time - Creation timestamp
  • last_edited_time - Last edit timestamp
  • properties - All database properties with values

Property Types

The skill handles these Notion property types:

  • title - Page title
  • rich_text - Text content
  • number - Numeric values
  • select - Single select
  • multi_select - Multiple selections
  • status - Status field
  • date - Date/date range
  • people - Notion users
  • email - Email addresses
  • phone_number - Phone numbers
  • url - URLs
  • checkbox - Boolean
  • relation - Links to other databases
  • rollup - Computed values
  • formula - Formula results
  • files - File attachments
  • created_time / last_edited_time - Timestamps
  • created_by / last_edited_by - Users

Finding Database IDs

Database IDs can be found in the URL:

https://www.notion.so/workspace/DATABASE_ID?v=VIEW_ID
                         ^^^^^^^^^^^^^^^^

Or use the databases command to list all accessible databases with their IDs.

Requirements

No external dependencies - uses Python standard library only.

Security Notes

  • Integration tokens don't expire but can be revoked
  • Token stored locally in ~/.claude/skills/notion-skill/config.json
  • Config file is gitignored (contains secrets)
  • Revoke access: Notion Integrations > Delete integration

Sources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.59%
按下载量换算21

Claude

31.18%
按下载量换算20

Cursor

19.87%
按下载量换算13

Gemini CLI

8.15%
按下载量换算5

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills