Community코딩 & 개발github.com

Notion

Notion CLI/API로 페이지, 마크다운 콘텐츠, 데이터 소스, 파일, 댓글, 검색, Workers 및 원시 API 호출을 다룹니다.

Notion란 무엇인가요?

이 스킬은 `ntn` CLI를 통해 Notion API를 효율적으로 사용할 수 있게 해줍니다. 페이지 생성, 조회, 업데이트, 삭제와 같은 기본 작업을 마크다운 기반으로 간편하게 수행할 수 있으며, 데이터 소스 쿼리, 파일 업로드, Workers 관리 등 다양한 기능을 제공합니다. 또한 `ntn api` 명령어를 통해 Notion의 원시 REST API에 직접 접근할 수도 있어 고급 사용자에게 유연성을 제공합니다. CLI 로그인 또는 환경 변수 `NOTION_API_TOKEN`을 통한 인증을 지원하며, `curl`을 사용한 대체 호출 방법도 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/notion

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Notion은(는) 무엇을 하나요?

공식 ntn CLI를 선호합니다. ntn을 사용할 수 없거나 원시 요청이 더 명확한 경우에만 curl을 사용하세요.

설정

npm install -g ntn
ntn --version
ntn login

스크립트/무인(headless) 인증:

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

ntn api는 Authorization 및 Notion-Version을 자동으로 설정합니다. 기본적으로 CLI 로그인을 사용하며, NOTION_API_TOKEN이 설정된 경우 이를 사용합니다.

검사

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

페이지

마크다운 우선 헬퍼:

ntn pages get <page-id>
ntn pages get <page-id> --json
ntn pages create --parent page:<page-id> --content '# 제목\n\n본문'
ntn pages create --parent data-source:<data-source-id> < page.md
ntn pages update <page-id> --content '# 업데이트됨'
ntn pages update <page-id> < page.md
ntn pages trash <page-id> --yes

참고 사항:

  • pages get은 페이지 속성을 프론트매터로 포함한 마크다운을 출력합니다.
  • 콘텐츠 입력: --content, 표준 입력, 또는 TTY에서 편집기.
  • 상위 참조: page:<id>, database:<id>, data-source:<id>.
  • 속성/템플릿/전체 페이지 API는 ntn api v1/pages를 사용하세요.

데이터 소스

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 '날짜 desc'
ntn datasources query <data-source-id> --filter '{"property":"완료","checkbox":{"equals":true}}'

데이터베이스 ID가 있을 때는 resolve를 사용하세요. 쿼리에는 데이터 소스 ID가 필요합니다.

원시 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]=새 항목'
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]=안녕하세요'

입력 구문:

  • path=value: 문자열 본문 필드.
  • path:=json: 타입이 지정된 JSON 본문 필드.
  • name==value: 쿼리 매개변수.
  • Header:Value: 요청 헤더.
  • --data '<json>' 또는 표준 입력 JSON (큰 본문용).
  • 요청당 하나의 본문 소스만 가능.

파일

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는 Business/Enterprise 요금제와 워크스페이스 활성화가 필요할 수 있습니다.

Curl 대체

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"

버전 참고 사항

  • 현재 최신 API 버전: 2026-03-11.
  • archived 대신 in_trash를 사용하세요.
  • 블록 추가 위치 지정은 평평한 after가 아닌 position을 사용합니다.
  • transcription 블록이 meeting_notes로 이름이 변경되었습니다.
  • 데이터베이스는 여러 데이터 소스를 포함할 수 있습니다. 페이지 상위 참조는 일반적으로 data_source_id를 사용합니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

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

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

관련 스킬