agentleFS
HybridAIOneHybridAIOne/hybridclaw/skills/notion/SKILL.md

notion

Skill157 starsChanged 7 months agoMITView on GitHub

Search, create, update, and organize Notion pages, databases, notes, and trackers through the Notion API.

  • Reads credentials
  • Sends data out

61 other projects use a version of this, 8 of them edited.

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

We split this skill into the rules it gives an agent

11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the Notion API for page, block, and data-source work.

    line 21
  2. Very specific:

    If NOTION_API_KEY is not already configured:

    line 25
  3. Distinctive:

    Create an internal integration in Notion.

    line 27
  4. Distinctive:

    Do not assume the integration can see a page until the user confirms sharing.

    line 31
  5. Distinctive:

    Before API calls, write a private temp curl config and register cleanup so the Notion token stays off the shell command line and the auth …

    line 35
  6. Distinctive:

    Create a page in a database:

    line 87
  7. Very specific:

    Use database_id when creating pages.

    line 108
  8. Very specific:

    Use data_source_id when querying data.

    line 109
  9. Distinctive:

    Read first, write second.

    line 110
  10. Very specific:

    If you are done before the shell exits, run rm -f "$AUTH_CURL" and trap - EXIT INT TERM.

    line 111
  11. Distinctive:

    Prefer databases for structured tasks, trackers, and meeting logs instead of ad hoc bullet pages.

    line 118

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Notion Workspace Operations

Use the Notion API for page, block, and data-source work.

Setup

If NOTION_API_KEY is not already configured:

  1. Create an internal integration in Notion.
  2. Save the token outside the repo, usually as NOTION_API_KEY.
  3. Share the target pages or databases with that integration.

Do not assume the integration can see a page until the user confirms sharing.

API Basics

Before API calls, write a private temp curl config and register cleanup so the Notion token stays off the shell command line and the auth file is removed on exit:

AUTH_CURL="$(mktemp)"
chmod 600 "$AUTH_CURL"
trap 'rm -f "$AUTH_CURL"' EXIT INT TERM
cat >"$AUTH_CURL" <<EOF
header = "Authorization: Bearer $NOTION_API_KEY"
header = "Notion-Version: 2025-09-03"
EOF

All requests need:

curl -s "https://api.notion.com/v1/..." -K "$AUTH_CURL"

Common Operations

Search:

curl -s -X POST "https://api.notion.com/v1/search" \
  -K "$AUTH_CURL" \
  -H "Content-Type: application/json" \
  -d '{"query":"release notes"}'

Get page metadata:

curl -s "https://api.notion.com/v1/pages/PAGE_ID" -K "$AUTH_CURL"

Get page blocks:

curl -s "https://api.notion.com/v1/blocks/PAGE_ID/children" -K "$AUTH_CURL"

Query a data source:

curl -s -X POST "https://api.notion.com/v1/data_sources/DATA_SOURCE_ID/query" \
  -K "$AUTH_CURL" \
  -H "Content-Type: application/json" \
  -d '{"page_size":20}'

Create a page in a database:

curl -s -X POST "https://api.notion.com/v1/pages" \
  -K "$AUTH_CURL" \
  -H "Content-Type: application/json" \
  -d '{"parent":{"database_id":"DATABASE_ID"},"properties":{"Name":{"title":[{"text":{"content":"New item"}}]}}}'

Append blocks:

curl -s -X PATCH "https://api.notion.com/v1/blocks/PAGE_ID/children" \
  -K "$AUTH_CURL" \
  -H "Content-Type: application/json" \
  -d '{"children":[{"object":"block","type":"paragraph","paragraph":{"rich_text":[{"text":{"content":"Hello"}}]}}]}'

Important Notes

  • Notion now distinguishes database_id from data_source_id.
  • Use database_id when creating pages.
  • Use data_source_id when querying data.
  • Read first, write second.
  • If you are done before the shell exits, run rm -f "$AUTH_CURL" and trap - EXIT INT TERM.

Rules

  • Confirm the exact parent page or database before creating content.
  • Show the proposed page title, properties, and key block content before writing.
  • Prefer databases for structured tasks, trackers, and meeting logs instead of ad hoc bullet pages.
  • Respect rate limits and avoid large write bursts.

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.