用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/qhkm/zeptoclaw-skills --skill notion命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | notion |
| version | 1.0.0 |
| description | Read, create, and update Notion pages and databases via the official API. |
| author | ZeptoClaw |
| license | MIT |
| tags | ["notion","productivity","notes"] |
| env_needed | [{"name":"NOTION_TOKEN","description":"Notion integration secret token (from notion.so/my-integrations)","required":true},{"name":"NOTION_DATABASE_ID","description":"Target database ID (from the page URL)","required":false}] |
| metadata | {"zeptoclaw":{"emoji":"📝","requires":{"anyBins":["curl","jq"]}}} |
Read and write Notion pages and databases using the official Notion API.
notion.so/workspace/DATABASE_ID?v=...export NOTION_TOKEN="secret_xxx..."
export NOTION_DATABASE_ID="abc123..."
curl -s -X POST "https://api.notion.com/v1/databases/$NOTION_DATABASE_ID/query" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{"page_size": 20}' | jq '.results[].properties.Name.title[0].text.content'
Filter by a property:
curl -s -X POST "https://api.notion.com/v1/databases/$NOTION_DATABASE_ID/query" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{
"filter": {
"property": "Status",
"select": {"equals": "In Progress"}
}
}' | jq '.results | length'
curl -s -X POST "https://api.notion.com/v1/pages" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d "{
\"parent\": {\"database_id\": \"$NOTION_DATABASE_ID\"},
\"properties\": {
\"Name\": {\"title\": [{\"text\": {\"content\": \"New Task\"}}]},
\"Status\": {\"select\": {\"name\": \"Todo\"}},
\"Priority\": {\"select\": {\"name\": \"High\"}}
}
}" | jq '.id'
PAGE_ID="page-id-from-query"
curl -s -X PATCH "https://api.notion.com/v1/pages/$PAGE_ID" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{"properties": {"Status": {"select": {"name": "Done"}}}}' | jq '.id'
curl -s -X PATCH "https://api.notion.com/v1/blocks/$PAGE_ID/children" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Notion-Version: 2022-06-28" \
-H "Content-Type: application/json" \
-d '{
"children": [{
"object": "block",
"type": "paragraph",
"paragraph": {
"rich_text": [{"type": "text", "text": {"content": "Agent appended this note."}}]
}
}]
}' | jq '.results[0].id'
jq to extract just the data you need — API responses are verbose