ワンクリックで
notion-publish
Publish markdown documents to Notion as private pages. Use for sharing specs, docs, or session outputs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Publish markdown documents to Notion as private pages. Use for sharing specs, docs, or session outputs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Cross-project audit and sync. Backs up, bootstraps, promotes, syncs, and verifies all downstream projects.
Structured pre-planning research. Explores codebase, asks clarifying questions, and produces a brainstorm output file for /plan-feature input.
Capture knowledge from development sessions. Debug patterns, architecture decisions, framework gotchas, and integration learnings compound over time.
Load project context and show current status. Use at the start of a session or when context is needed.
Run parallel code reviews using specialized agents (security, performance, simplicity, nextjs-react). Produces a structured report.
Initialize a new project from Agent Kit boilerplate. Use when creating a new downstream project.
| name | notion-publish |
| description | Publish markdown documents to Notion as private pages. Use for sharing specs, docs, or session outputs. |
| disable-model-invocation | true |
| allowed-tools | Read, Bash, Write |
| argument-hint | ["file.md"] |
Publish markdown documents directly to Notion as private pages.
When publishing to Notion:
/notion-publish [file.md] # Publish specific file
/notion-publish # Publish from clipboard/selection
secret_)# In ~/.claude-time/integrations.json
{
"notion": {
"token": "secret_xxx...",
"default_parent_page_id": "abc123..."
}
}
notion.so/Page-Name-<PAGE_ID># Lies die Markdown-Datei
CONTENT=$(cat "$FILE_PATH")
TITLE=$(head -1 "$FILE_PATH" | sed 's/^#\s*//')
Mapping:
| Markdown | Notion Block Type |
|---|---|
# Heading | heading_1 |
## Heading | heading_2 |
### Heading | heading_3 |
| Paragraph | paragraph |
- item | bulleted_list_item |
1. item | numbered_list_item |
code | code |
> quote | quote |
--- | divider |
| ` | table |
NOTION_TOKEN=$(cat ~/.claude-time/integrations.json | jq -r '.notion.token')
PARENT_PAGE=$(cat ~/.claude-time/integrations.json | jq -r '.notion.default_parent_page_id')
curl -X POST "https://api.notion.com/v1/pages" \
-H "Authorization: Bearer $NOTION_TOKEN" \
-H "Content-Type: application/json" \
-H "Notion-Version: 2022-06-28" \
-d '{
"parent": { "page_id": "'"$PARENT_PAGE"'" },
"properties": {
"title": [{ "text": { "content": "'"$TITLE"'" } }]
},
"children": [
// ... converted blocks
]
}'
Nach erfolgreichem Publish:
Published to Notion:
───────────────────────────────────────────────────────────────────────────────
Title: Session Boot Screen Spec
URL: https://notion.so/Session-Boot-Screen-Spec-abc123
Parent: Agent Kit Docs
Created: 2026-01-28 18:30
───────────────────────────────────────────────────────────────────────────────
Vor dem Publish wird das Dokument automatisch bereinigt:
CLEANUP RULES:
1. Remove all emoji characters (Unicode ranges)
2. Remove emoji shortcodes (:emoji:)
3. Replace emoji bullets with plain dashes
4. Ensure H1 is plain text (no icons)
5. Remove decorative Unicode symbols
Beispiel:
VORHER:
# 🚀 Session Boot Screen
## ✅ Features
- 📋 Feature 1
NACHHER:
# Session Boot Screen
## Features
- Feature 1
/notion-publish [file.md] --parent [page-id] # Specific parent page
/notion-publish [file.md] --title "Custom" # Override title
/notion-publish [file.md] --public # Make page public (later)
| Error | Solution |
|---|---|
| "Invalid token" | Token in integrations.json prüfen |
| "Page not found" | Parent Page mit Integration geteilt? |
| "Rate limited" | Warten, dann erneut versuchen |
| "Invalid blocks" | Markdown-Format prüfen |
~/.claude-time/integrations.json gespeichert# Publish current spec
/notion-publish .claude/reference/session-boot-spec.md
# Publish session summary
/notion-publish ~/.claude-time/reports/project-2026-01-28.md
# Publish with custom title
/notion-publish WORKFLOW.md --title "Agent Kit Workflow Guide"