my-notion-docs
Uses My-Notion CLI to create, read, search, update, import, and export documents. Invoke when user asks an Agent to manage My-Notion docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Uses My-Notion CLI to create, read, search, update, import, and export documents. Invoke when user asks an Agent to manage My-Notion docs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guides My-Notion CLI setup, authentication, output formats, and safety. Invoke before using My-Notion CLI or when configuring PAT/API URL.
Run the standalone My-Notion MCP STDIO server so MCP clients can create, fetch, search, and update My-Notion documents.
Guides My-Notion CLI setup, authentication, output formats, and safety. Invoke before using My-Notion CLI or when configuring PAT/API URL.
Uses My-Notion CLI to create, read, search, update, import, and export documents. Invoke when user asks an Agent to manage My-Notion docs.
Run the standalone My-Notion MCP STDIO server so MCP clients can create, fetch, search, and update My-Notion documents.
Universal React UI framework for web and native. Use when building cross-platform apps with Tamagui,
| name | my-notion-docs |
| description | Uses My-Notion CLI to create, read, search, update, import, and export documents. Invoke when user asks an Agent to manage My-Notion docs. |
Use this skill when an Agent needs to create, read, search, list, update, import, export, or archive My-Notion documents through the My-Notion CLI.
Before using this skill, ensure my-notion-shared authentication guidance is satisfied.
contentMarkdown as the editable view when modifying existing documents.my-notion config init --check --format json
my-notion auth login --no-open
my-notion docs search --query "<keywords>" --limit 5 --format json
my-notion docs create --title "<title>" --content-file /tmp/my-notion-doc.md --format json
my-notion docs fetch --id <documentId> --format markdown
Use docs create when the user wants a new note, plan, summary, report, or generated document.
Preferred pattern:
cat > /tmp/my-notion-doc.md <<'EOF'
# Title
Content...
EOF
my-notion docs create --title "Title" --content-file /tmp/my-notion-doc.md --format json
Use --content only for very short content:
my-notion docs create --title "Quick Note" --content "Short content" --format json
Expected JSON fields include:
idtitlecontentMarkdowncontentFormatisInKnowledgeBaselastEditedTimeUse docs fetch when the user provides a document ID or when another CLI result includes id.
Machine-readable result:
my-notion docs fetch --id <documentId> --format json
Markdown content only:
my-notion docs fetch --id <documentId> --format markdown
The Markdown returned by docs fetch and docs export is serialized from the internal BlockNote JSON. Use it for summaries, edits, and update round-trips.
Prefer --format markdown when the next step is summarization, rewriting, diffing, or appending content.
Use docs export when the user asks to back up, migrate, edit locally, or hand a My-Notion document to another tool:
my-notion docs export --id <documentId> --output /tmp/my-notion-doc.md --format markdown
Use docs import when the user provides a Markdown file that should become a new My-Notion document:
my-notion docs import --title "Imported Document" --file /tmp/my-notion-doc.md --format json
For edit-roundtrip workflows, export to a temporary Markdown file, modify the file, then import as a new document or update the original document explicitly. Do not edit internal BlockNote JSON.
Use docs search when the user asks to find existing documents or when you need to avoid duplicates.
my-notion docs search --query "<keywords>" --limit 10 --format json
If the user asks to browse recent documents rather than search by keyword, use:
my-notion docs list --limit 20 --format json
Use append mode for adding notes, follow-ups, meeting minutes, or generated sections:
my-notion docs update --id <documentId> --content-file /tmp/append.md --mode append --format json
Use overwrite mode only when the user explicitly wants replacement:
my-notion docs update --id <documentId> --title "New Title" --content-file /tmp/full.md --mode overwrite --format json
If only the title changes:
my-notion docs update --id <documentId> --title "New Title" --format json
Use archive only when the user explicitly asks to remove a document from normal views, or when cleaning up temporary E2E/test documents:
my-notion docs archive --id <documentId> --format json
documentId values in your working context.--format json when parsing command output.--format markdown when reading document bodies for language tasks.contentMarkdown as the source for document updates.[打开 My-Notion CLI 授权](https://...).docs export --output for backup, local editing, or handoff to external tools.docs import --file for Markdown files that should become new My-Notion documents.docs fetch returns not found, confirm the document ID and whether it belongs to the authenticated user.Read exact command syntax and examples from:
references/cli-commands.md