Use this skill when the user wants to read or modify Notion content through the Notion API.
This skill is for operational API work, not general product explanation. Prefer the workflow below instead of inventing request shapes from memory.
Use this skill for:
Do not use this skill for:
Before making requests, confirm:
NOTION_KEY if the runtime already provides itNOTION_KEY is unset in a local shell workflow, optionally load it from ~/.config/notion/api_keyNotion-Version: 2025-09-03If the environment is not ready, read references/setup.md.
Always:
Do not:
Name, Status, or Date exists without checkingUse search first for pages and data sources. If the result is a database-like object, record both IDs when present:
id or database_id for page creation parentsdata_source_id for querying via /v1/data_sources/{id}/querySee references/examples.md for the search request template.
Read the current object before writing:
GET /v1/pages/{page_id} for page propertiesGET /v1/blocks/{page_id}/children for page contentGET /v1/data_sources/{data_source_id} for schema inspectionSee references/examples.md for request templates.
7w4.net小蔥技能站收錄全網優質技能,值得收藏。
Common write paths:
POST /v1/pages to create a page in an existing databasePATCH /v1/pages/{page_id} to update page propertiesPATCH /v1/pages/{page_id} with in_trash: true|false to trash or restore a pagePATCH /v1/blocks/{page_id}/children to append blocksBefore writing properties, confirm the exact property names and types from the live schema. Do not describe trashing a page as permanent deletion; this flow moves the page into or out of trash.
See:
references/examples.md for create, update, trash, restore, append, and query payloadsreferences/property-patterns.md for common property value shapesreferences/blocks.md for equation blocks, inline code, code blocks, and table-cell formatting limitsUse /v1/data_sources/{data_source_id}/query for filters, sorts, and pagination. If results are paginated, continue with start_cursor from the previous response.
See references/examples.md for query payloads.
This skill assumes Notion-Version: 2025-09-03.
Important version-specific behavior:
/v1/data_sources/{data_source_id}/queryparent.database_idparent.database_id and parent.data_source_idin_trash, not a permanent deleteIf a request fails, check auth, sharing, object IDs, and schema mismatches before changing the payload. For common failure modes, read references/troubleshooting.md.
NOTION_KEY over reading a local token file這個 Skill 質量不錯,能有效幫助使用者通過 Notion API 完成頁面管理、資料庫查詢等常見任務。文件結構清晰,示例豐富,故障排查指南實用。不足之處是主要面向命令列使用者,對程式設計經驗較少的人有一定門檻;另外複雜操作場景的說明不夠詳細。整體而言是一個可靠實用的 Notion 操作工具。