agentleFS
L-LesterYuL-LesterYu/OpenClaw-hot-skills-zh/skills/notion-skill-zh/SKILL.md

notion

Skill56 starsChanged 9 months agoMITView on GitHub

通过官方 Notion API 操作 Notion 页面和数据库。

  • Reads credentials

61 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use voice-call, bear-notes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    voice-call

    Start voice calls via the OpenClaw voice-call plugin.

    Also in 5 projects that use this

  • seedprodSkill

    bear-notes

    Create, search, and manage Bear notes via grizzly CLI.

    Also in 7 projects that use this

  • braxtonROSE4Skill

    github-repo-management

    Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.

    Also in 10 projects that use this

  • +9 more from seedprod

The file

Files
SKILL.md

Notion

此技能让智能体能够使用官方 Notion API 操作 Notion 页面和数据库。

这是一个声明式技能:它记录了安全、推荐的操作,并假设有一个本地 CLI(notion-cli)实际执行 API 调用。

身份验证

export NOTION_API_KEY=secret_xxx

将集成与您想访问的页面或数据库共享。 未共享的内容对 API 不可见。

配置文件(个人/工作)

您可以通过环境变量或配置定义多个配置文件(例如:personal、work)。

默认配置文件:personal

通过以下方式覆盖:

export NOTION_PROFILE=work

页面操作

读取页面:

notion-cli page get <page_id>

追加内容块:

notion-cli block append <page_id> --markdown "..."

优先使用追加而非重写内容。

创建页面:

notion-cli page create --parent <page_id> --title "..."

数据库操作

检查架构:

notion-cli db get <database_id>

查询数据库:

notion-cli db query <database_id> --filter <json> --sort <json>

创建行:

notion-cli page create --database <database_id> --props <json>

更新行:

notion-cli page update <page_id> --props <json>

架构变更(高级)

在应用架构变更前,始终先检查差异。

未经明确确认,切勿修改数据库架构。

推荐流程:

notion-cli db schema diff <database_id> --desired <json>
notion-cli db schema apply <database_id> --desired <json>

安全注意事项

  • Notion API 有速率限制;请谨慎批量操作
  • 优先使用追加和更新操作,避免破坏性操作
  • ID 是不透明的;请明确存储,不要从 URL 推断

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.