본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드260k · #541

notion

하는 일

이 스킬은 메모와 프로젝트 도구인 Notion에 AI를 연결합니다. 페이지와 데이터베이스를 Notion에 보관하고 AI가 읽거나 업데이트하기를 원하는 사람을 위한 것입니다.

사용하는 경우

  • ✓AI가 Notion 페이지나 데이터베이스를 만들고, 읽고, 업데이트하기를 원할 때.
  • ✓Notion 페이지에 파일을 업로드하고 싶을 때.
  • ✓AI가 페이지에 접근할 수 있도록 Notion 통합을 연결해야 할 때.

스킬 링크

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/notion/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/productivity/notion/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Notion 프로젝트 데이터베이스에 마감일이 다음 주 금요일인 새 작업을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 Notion 통합 토큰을 씁니다. 설치되어 있으면 ntn 명령줄 도구를 호출하고, 어느 시스템에서든, Windows에서도 curl로 간단한 웹 요청을 보낼 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Notion

Talk to Notion two ways. Same integration token works for both — pick by what's available.

◆ ntn CLI — Notion's official CLI. Shorter syntax, one-line file uploads, required for Workers. macOS + Linux only as of May 2026 (Windows support "coming soon"). Default when installed. ◆ HTTP + curl — works everywhere including Windows. Default fallback when ntn isn't installed.

Setup

1. Get an integration token (required for both paths)

  1. Create an integration at https://notion.so/my-integrations
  2. Copy the API key (starts with ntn_ or secret_)
  3. Store in ${HERMES_HOME:-~/.hermes}/.env:
    NOTION_API_KEY=ntn_your_key_here
    
  4. Share target pages/databases with the integration in Notion: page menu ... → Connect to → your integration name. Without this, the API returns 404 for that page even though it exists.

2. Install ntn (preferred path on macOS / Linux)

# Recommended
curl -fsSL https://ntn.dev | bash

# Or via npm (needs Node 22+, npm 10+)
npm install --global ntn

ntn --version    # verify

Skip ntn login — use the integration token instead. This works headlessly, no browser needed:

export NOTION_API_TOKEN=$NOTION_API_KEY      # ntn reads NOTION_API_TOKEN
export NOTION_KEYRING=0                       # don't try to use the OS keychain

Add those exports to your shell profile (or to ${HERMES_HOME:-~/.hermes}/.env) so every session inherits them.

3. Choose path at runtime

if command -v ntn >/dev/null 2>&1; then
  # use ntn
else
  # fall back to curl
fi

Windows users: skip step 2 entirely until native ntn ships — Path B works fine. If you want CLI ergonomics now, install ntn inside WSL2.

API Basics

Notion-Version: 2025-09-03 is required on all HTTP requests. ntn handles this for you. In this version, what users call "databases" are called data sources in the API.

Path A — ntn CLI (preferred, macOS / Linux)

Raw API calls (shorthand for curl)

ntn api v1/users                                  # GET
# POST with inline body
ntn api v1/pages parent[page_id]=abc123 \
  properties[title][0][text][content]="Notes"
ntn api v1/pages/abc123 -X PATCH archived:=true   # PATCH; := is non-string (bool/num/null)

Syntax notes:

  • key=value — string fields
  • key[nested]=value — nested object fields
  • key:=value — typed assignment (booleans, numbers, null, arrays)

Search

ntn api v1/search query="page title"

Read page metadata

ntn api v1/pages/{page_id}

Read page as Markdown (agent-friendly)

ntn api v1/pages/{page_id}/markdown

Read page content as blocks

ntn api v1/blocks/{page_id}/children

Create page from Markdown

ntn api v1/pages \
  parent[page_id]=xxx \
  properties[title][0][text][content]="Notes from meeting" \
  markdown="# Agenda

- Q3 roadmap
- Hiring"

Patch a page with Markdown

ntn api v1/pages/{page_id}/markdown -X PATCH \
  markdown="## Update

Shipped the prototype."

Query a database (data source)

ntn api v1/data_sources/{data_source_id}/query -X POST \
  filter[property]=Status filter[select][equals]=Active

For complex queries with sorts, multiple filter clauses, or compound logic, pipe JSON in:

echo '{"filter": {"property": "Status", "select": {"equals": "Active"}}, "sorts": [{"property": "Date", "direction": "descending"}]}' | \
  ntn api v1/data_sources/{data_source_id}/query -X POST --json -

File uploads (one-liner — biggest CLI win)

ntn files create < photo.png
ntn files create --external-url https://example.com/photo.png
ntn files list

Compare to the 3-step HTTP flow (create upload → PUT bytes → reference).

Useful env vars

Var Effect
NOTION_API_TOKEN Auth token (overrides keychain) — set this to your integration token
NOTION_KEYRING=0 File-based creds at ~/.config/notion/auth.json instead of OS keychain
NOTION_WORKSPACE_ID Skip the workspace picker prompt

Path B — HTTP + curl (cross-platform, default on Windows)

All requests share this pattern:

curl -s -X GET "https://api.notion.com/v1/..." \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2025-09-03" \
  -H "Content-Type: application/json"

On Windows the curl shipped with Windows 10+ works as-is. PowerShell users can also use Invoke-RestMethod.

Search


자주 묻는 질문

볼 수 있는 페이지인데 AI가 404 오류를 반환하는 이유는 무엇인가요?

스킬에 따르면 Notion의 Connect to 메뉴를 써서 페이지를 통합과 공유해야 하며, 그렇지 않으면 API가 404를 반환합니다.

ntn 도구는 Windows에서 작동하나요?

스킬에 따르면 ntn은 2026년 5월 기준 macOS와 Linux용이므로 Windows 사용자는 curl 방법을 써야 합니다.

토큰은 어디에 저장하나요?

Hermes의 .env 파일에 NOTION_API_KEY로 저장하라고 스킬이 제안합니다.

상세 정보

작성자의 원본 설명

Notion API + ntn CLI: pages, databases, markdown, Workers.

repo: NousResearch/hermes-agent

인기도

GitHub 스타
260k
순위
#541
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬