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

notion

하는 일

AI 에이전트가 Notion 페이지, 데이터 소스, 댓글, 파일, 검색을 다루도록 안내합니다. 메모, 프로젝트, 데이터베이스를 Notion에 보관하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 Notion 페이지를 읽거나 업데이트하기를 원할 때.
  • ✓Notion 데이터베이스나 데이터 소스에서 행을 조회해야 할 때.
  • ✓댓글을 달거나 Notion 작업공간 전체를 검색하고 싶을 때.

스킬 링크

https://github.com/openclaw/openclaw/blob/main/skills/notion/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/openclaw/openclaw/blob/main/skills/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에게 요청하는 예시

“Product Roadmap이라는 Notion 페이지를 찾아서, 팀에게 Q4 항목을 검토해 달라는 댓글을 달아 주세요.”

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

작동 방식

스킬은 ntn 명령으로 페이지를 Markdown으로 읽고 바꾸며, 데이터 소스를 조회하고 댓글을 관리합니다. 명령이 다루지 못하는 기능이 필요할 때만 직접 API 호출로 넘어갑니다.

기술 내용 (원본 SKILL.md)

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

Notion

Prefer official ntn CLI. Use curl only when ntn is unavailable or a raw request is clearer.

Setup

npm install -g ntn
ntn --version
ntn login

Script/headless auth:

export NOTION_API_TOKEN=secret_or_ntn_token
export NOTION_API_VERSION=2026-03-11

ntn api sets Authorization and Notion-Version automatically. It uses CLI login by default, or NOTION_API_TOKEN when set.

Inspect

ntn doctor
ntn api ls
ntn api ls --json
ntn api v1/comments --help
ntn api v1/comments --spec -X POST
ntn api v1/comments --docs -X POST

Pages

Markdown-first helpers:

ntn pages get <page-id>
ntn pages get <page-id> --json
ntn pages create --parent page:<page-id> --content '# Title\n\nBody'
ntn pages create --parent data-source:<data-source-id> < page.md
ntn pages update <page-id> --content '# Updated'
ntn pages update <page-id> < page.md
ntn pages trash <page-id> --yes

Notes:

  • pages get prints Markdown with page properties as frontmatter.
  • Content input: --content, stdin, or editor in a TTY.
  • Parent refs: page:<id>, database:<id>, data-source:<id>.
  • For properties/templates/full Pages API, use ntn api v1/pages.

Data sources

ntn datasources resolve <database-id>
ntn datasources resolve <database-id> --json
ntn datasources query <data-source-id>
ntn datasources query <data-source-id> --limit 50 --json
ntn datasources query <data-source-id> --sort 'Date desc'
ntn datasources query <data-source-id> --filter '{"property":"Done","checkbox":{"equals":true}}'

Use resolve when you have a database ID. Query needs a data source ID.

Raw API

ntn api v1/users/me
ntn api v1/search query=roadmap page_size:=10
ntn api v1/pages 'parent[data_source_id]='"$DS_ID" 'properties[Name][title][0][text][content]=New item'
ntn api "v1/pages/$PAGE_ID" -X PATCH in_trash:=true
ntn api "v1/blocks/$PAGE_ID/children" -X PATCH \
  'children[0][type]=paragraph' \
  'children[0][paragraph][rich_text][0][text][content]=Hello'

Input syntax:

  • path=value: string body field.
  • path:=json: typed JSON body field.
  • name==value: query parameter.
  • Header:Value: request header.
  • --data '<json>' or stdin JSON for larger bodies.
  • Only one body source per request.

Files

ntn files create < image.png
ntn files create --filename photo.png --content-type image/png < /tmp/photo
ntn files create --external-url https://example.com/photo.png
ntn files get <upload-id>
ntn files list

Workers

ntn workers new
ntn workers deploy
ntn workers list --json
ntn workers runs list --json
ntn workers runs logs <run-id>

Workers may require Business/Enterprise plan and workspace enablement.

Curl fallback

curl -sS "https://api.notion.com/v1/users/me" \
  -H "Authorization: Bearer $NOTION_API_TOKEN" \
  -H "Notion-Version: 2026-03-11" \
  -H "Content-Type: application/json"

Version notes

  • Current latest API version: 2026-03-11.
  • Use in_trash, not archived.
  • Append block positioning uses position, not flat after.
  • transcription block renamed to meeting_notes.
  • Databases can contain multiple data sources; page parents generally use data_source_id.
자주 묻는 질문

어떻게 로그인하나요?

ntn login 명령으로 로그인하거나, 스크립트에서는 환경 변수로 토큰을 제공할 수 있습니다.

페이지를 휴지통으로 보낼 수 있나요?

예. 다만 명령을 실행하려면 명시적인 확인 플래그가 필요합니다.

데이터베이스 속성도 다루나요?

예. 속성, 템플릿, 전체 Pages API는 직접 API 경로를 사용합니다.

상세 정보

작성자의 원본 설명

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

repo: openclaw/openclaw

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬