بنقرة واحدة
mistj-notion-exporter
Notion 页面 Markdown 导出与生成工具,解决原生 MCP 的分页与嵌套丢失问题。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Notion 页面 Markdown 导出与生成工具,解决原生 MCP 的分页与嵌套丢失问题。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when handling a large task that must first go through superpowers planning (brainstorming plus writing-plans) and then be executed in one GitHub Copilot CLI session with claude-opus-4.6, with live progress logs and exported session artifacts.
A specialized skill to crawl, download, and merge documentation from Sosumi.ai into a single consolidated Markdown file for easy reading or PDF conversion. Use this when you need offline access to Sosumi documentation or want to print it.
Smart article illustration skill. Analyzes article content and generates illustrations at positions requiring visual aids with multiple style options. Use when user asks to "add illustrations to article", "generate images for article", or "illustrate article".
Notion 文章全自动配图端到端工作流。它协调整个过程:(1) 使用内置脚本导出内容,(2) 通过 baoyu-article-illustrator 生成风格一致的视觉方案,(3) 通过 mistj-upyun-uploader 上传至又拍云,(4) 将位置映射到 Notion block ID 并自动完成插入。当用户要求“给我的 Notion 页面配图”、“为这个 Notion URL 添加插图”或“自动化 Notion 文章装饰”时使用。
将文件及图片上传至又拍云 (UpYun) 存储并获取 CDN 链接。当用户需要执行持久化上传、Markdown 插入图片或生成分享链接时,请使用此技能。
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
| name | mistj-notion-exporter |
| description | Notion 页面 Markdown 导出与生成工具,解决原生 MCP 的分页与嵌套丢失问题。 |
数据抓取 (Shell):
环境要求:仅需 curl 与 jq。
配置方式:项目根目录需存在 notion_credentials.sh 配置文件。
notion_credentials.sh 文件。export NOTION_TOKEN="secret_xxx"执行抓取 (Fetch):
运行脚本获取物理数据。它会递归抓取所有子 Block 并存为 raw.json。
./scripts/fetch_notion.sh <PAGE_ID_OR_URL> <SLUG>
SLUG 是必填项,用于定义输出文件夹名。若不填写,脚本将报错退出。./scripts/fetch_notion.sh 12345abc my-article
./notion_exports/my-article/ 生成 raw.json。./scripts/fetch_notion.sh 12345abc
用法: ./scripts/fetch_notion.sh <PAGE_ID> <SLUG>。脚本解析 (Parser):
python3 scripts/notion_json_to_md.py notion_exports/{slug}/raw.json -o notion_exports/{slug}/article.md
定位与同步 (Locating):
若需回填图片或内容,利用 find_block.py 在本地 raw.json 中获取精确 ID:
python3 scripts/find_block.py notion_exports/{slug}/raw.json "关键词或摘要" [可选Block类型]
兜底建议:若脚本未命中或结果不准,AI 应使用 grep_search 搜索 raw.json 或直接读取该文件进行人工确认,确保 ID 绝对准确。
拿着得到的 ID 调用 Notion MCP 的 patch-block-children 进行插入。
scripts/notion_json_to_md.py: 生成 Markdown 文稿。支持表格、公式、高亮及嵌套列表还原。scripts/find_block.py: 坐标导航。在本地 raw.json 中递归搜索关键词,返回精确的 Block ID。每次导出应创建独立的工作区文件夹:
notion_exports/{topic-slug}/
├── raw.json # 原始抓取的碎片数据 (建议 GitIgnore)
└── article.md # 最终生成的 Markdown 稿件