[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B1AD829SYYPSERPP2Y236X":3,"skill-same:01M7B1AD829SYYPSERPP2Y236X":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M7B1AD829SYYPSERPP2Y236X","obsidian-to-notion",null,"Export Obsidian markdown to Notion via the Notion MCP.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fproductivity\u002Fobsidian-to-notion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: obsidian-to-notion\ndescription: Export Obsidian markdown to Notion via the Notion MCP.\nversion: 1.0.0\nauthor: hermes-curator\nlicense: MIT\ntags: [notion, obsidian, export, migration, mcp, markdown]\ntriggers:\n  - export obsidian to notion\n  - obsidian vault to notion\n  - migrate notes to notion\n  - bulk create notion pages from markdown\n  - notion mcp page creation\n---\n\n# Obsidian → Notion (full-fidelity bulk export)\n\nExport a vault's markdown into Notion **pages**, preserving structure. The whole job\nis driven through the **Notion MCP** (`mcp-cli call notion ...`) — never raw curl by\ndefault. The MCP's `API-post-page` accepts a `markdown` body and converts it server-side\ninto real blocks (headings, code, tables, images). This is far less brittle than building\nblock arrays by hand.\n\n> **User correction that triggered this skill (2026-08-10):** \"why are you not using the\n> mcp that talks directly to notion api using mcp-cli.\" When the MCP is registered, USE IT.\n> Raw curl is a fallback only.\n\n## Prerequisites\n\n- Notion integration token in `~\u002F.mcp_servers.json` under `mcpServers.notion.env.NOTION_TOKEN`\n  (the MCP server reads `NOTION_TOKEN`, NOT `NOTION_API_KEY`).\n- `@notionhq\u002Fnotion-mcp-server` reachable (registered in `~\u002F.mcp_servers.json`; `mcp-cli`\n  spawns it via `npx -y @notionhq\u002Fnotion-mcp-server@latest`).\n- A **parent page** in Notion. Internal integrations CANNOT create workspace-root pages —\n  pick an existing page (or create one via `API-post-page` under a known parent first) and\n  put all exported notes under it as child pages.\n- Obsidian vault on disk (read markdown files directly; the Obsidian app need not be running).\n\n## Verified tool calls (via `mcp-cli call notion \u003Ctool> '\u003Cjson>'`)\n\n| Tool | Use |\n|---|---|\n| `API-post-page` | Create a page. **Pass `markdown` at top level** → full block conversion. |\n| `API-post-search` | Find pages \u002F verify creation. |\n| `API-get-block-children` | Read back blocks to verify fidelity. |\n| `API-patch-page` | Archive pages (`{\"archived\": true}`) for cleanup. |\n| `API-update-page-markdown` | **DIFF-BASED ONLY** — `type` must be `insert_content`\u002F`replace_content` and it wants `new_str`\u002F`old_str`. It CANNOT set a full page body. Do not use it to \"replace all content.\" |\n\n### mcp-cli response envelope (CRITICAL)\n\n`mcp-cli` wraps every result: `{\"content\":[{\"type\":\"text\",\"text\":\"\u003Cjson-string>\"}]}`.\nBefore `json.loads`, unwrap:\n```python\nimport json, subprocess\ndef mcp(tool, args):\n    p = subprocess.run([\"mcp-cli\",\"call\",\"notion\",tool,json.dumps(args)],\n                       capture_output=True, text=True, timeout=240)\n    out = p.stdout.strip()\n    try:\n        env = json.loads(out)\n        if isinstance(env, dict) and \"content\" in env:\n            out = env[\"content\"][0][\"text\"]\n    except Exception:\n        pass\n    return p.returncode, json.loads(out)\n```\nA raw `json.loads(p.stdout)` will fail — the outer object is the envelope, not your data.\n\n## The dupe trap (avoid creating 2× pages per note)\n\nNotion accepts `markdown` **only on page CREATE**. There is no \"set full content via PATCH.\"\nA naive two-pass (create empty shell → fill) therefore produces 2 pages per note.\n\n**Correct single-pass design:**\n1. For each note, `API-post-page` with `parent` + `properties.title` + `markdown` (full body).\n   One call, one page, full fidelity. No shells, no dupes.\n2. Wikilinks `[[Note]]`: you do NOT have target IDs yet (they're created in the same run),\n   so **single-pass cannot resolve them into clickable mentions**. Acceptable outcome:\n   leave unresolved `[[Note]]` as literal text, OR resolve only links whose target already\n   exists (e.g. a pre-scanned sibling vault). State this trade-off to the user — do NOT\n   create duplicate shells to fake resolution.\n3. Images `![[local image.png]]`: the MCP exposes no file-upload tool. Upload via raw API\n   (see below) and rewrite `![[x]]` → `![](notion:\u002F\u002Ffile_upload\u002F\u003Cid>)` before sending markdown.\n\n## Local image upload (3-step, raw API)\n\n```python\nimport json, urllib.request\ndef raw(m,p,body=None,binary=None,ctype=None,tok=None):\n    h={\"Authorization\":f\"Bearer {tok}\",\"Notion-Version\":\"2022-06-28\"}\n    data=None\n    if binary is not None: h[\"Content-Type\"]=ctype; data=binary\n    elif body is not None: h[\"Content-Type\"]=\"application\u002Fjson\"; data=json.dumps(body).encode()\n    r=urllib.request.Request(\"https:\u002F\u002Fapi.notion.com\u002Fv1\"+p,data=data,headers=h,method=m)\n    with urllib.request.urlopen(r,timeout=120) as x: return json.loads(x.read() or b\"{}\")\n\n# 1. create upload\njs=raw(\"POST\",\"\u002Ffile_uploads\",{\"filename\":name,\"content_type\":ctype},tok=tok)\n# 2. PUT bytes to js[\"upload_url\"]\n# 3. reference notion:\u002F\u002Ffile_upload\u002F\u003Cjs[\"id\"]> in markdown\n```\nToken for raw calls: read `NOTION_TOKEN` from `~\u002F.mcp_servers.json`.\n\n## Gotchas (all hit and fixed in-session)\n\n- **`obs` ≠ Obsidian.** `\u002Fusr\u002Fbin\u002Fobs` on Linux is OBS Studio. The Obsidian CLI is\n  `\u002Fusr\u002Fbin\u002Fobsidian` (v1.13.4). Don't conflate them. (That correction belongs in the\n  Obsidian CLI skill; this one is Notion-side.)\n- **Directory named `*.md`.** Obsidian lets folders end in `.md` (e.g. `qwen research.md\u002F`).\n  `glob(\"**\u002F*.md\")` returns them as \"files\" and `open()` then throws `IsADirectoryError`.\n  Filter with `os.path.isfile(f)` before reading.\n- **Rate limit ~3 req\u002Fs.** For 460 pages, run in background (`terminal(background=True,\n  notify_on_complete=True)`) — do not block on a foreground `timeout`.\n- **`print(..., flush=True)` in background jobs** — redirection buffers; flush or the log\n  looks empty until exit.\n- **Verify, don't trust self-report.** After export, count child pages under the parent and\n  read back blocks of a sample (`API-get-block-children`) to confirm fidelity. A script's\n  \"created=37\" is not proof — count in Notion.\n- **Cleanup is reversible.** Archive (don't delete) test pages via `API-patch-page\n  {\"archived\":true}` so mistakes are recoverable.\n\n## Reference\n\n- `references\u002Fexport_script.md` — the exact, runnable single-pass exporter used to move\n  4 vaults (460 notes) into Notion via the MCP, with the envelope unwrap, image upload,\n  and dir-`.md` filter baked in.\n","# Obsidian → Notion (full-fidelity bulk export)\n\nExport a vault's markdown into Notion **pages**, preserving structure. The whole job\nis driven through the **Notion MCP** (`mcp-cli call notion ...`) — never raw curl by\ndefault. The MCP's `API-post-page` accepts a `markdown` body and converts it server-side\ninto real blocks (headings, code, tables, images). This is far less brittle than building\nblock arrays by hand.\n\n> **User correction that triggered this skill (2026-08-10):** \"why are you not using the\n> mcp that talks directly to notion api using mcp-cli.\" When the MCP is registered, USE IT.\n> Raw curl is a fallback only.\n\n## Prerequisites\n\n- Notion integration token in `~\u002F.mcp_servers.json` under `mcpServers.notion.env.NOTION_TOKEN`\n  (the MCP server reads `NOTION_TOKEN`, NOT `NOTION_API_KEY`).\n- `@notionhq\u002Fnotion-mcp-server` reachable (registered in `~\u002F.mcp_servers.json`; `mcp-cli`\n  spawns it via `npx -y @notionhq\u002Fnotion-mcp-server@latest`).\n- A **parent page** in Notion. Internal integrations CANNOT create workspace-root pages —\n  pick an existing page (or create one via `API-post-page` under a known parent first) and\n  put all exported notes under it as child pages.\n- Obsidian vault on disk (read markdown files directly; the Obsidian app need not be running).\n\n## Verified tool calls (via `mcp-cli call notion \u003Ctool> '\u003Cjson>'`)\n\n| Tool | Use |\n|---|---|\n| `API-post-page` | Create a page. **Pass `markdown` at top level** → full block conversion. |\n| `API-post-search` | Find pages \u002F verify creation. |\n| `API-get-block-children` | Read back blocks to verify fidelity. |\n| `API-patch-page` | Archive pages (`{\"archived\": true}`) for cleanup. |\n| `API-update-page-markdown` | **DIFF-BASED ONLY** — `type` must be `insert_content`\u002F`replace_content` and it wants `new_str`\u002F`old_str`. It CANNOT set a full page body. Do not use it to \"replace all content.\" |\n\n### mcp-cli response envelope (CRITICAL)\n\n`mcp-cli` wraps every result: `{\"content\":[{\"type\":\"text\",\"text\":\"\u003Cjson-string>\"}]}`.\nBefore `json.loads`, unwrap:\n```python\nimport json, subprocess\ndef mcp(tool, args):\n    p = subprocess.run([\"mcp-cli\",\"call\",\"notion\",tool,json.dumps(args)],\n                       capture_output=True, text=True, timeout=240)\n    out = p.stdout.strip()\n    try:\n        env = json.loads(out)\n        if isinstance(env, dict) and \"content\" in env:\n            out = env[\"content\"][0][\"text\"]\n    except Exception:\n        pass\n    return p.returncode, json.loads(out)\n```\nA raw `json.loads(p.stdout)` will fail — the outer object is the envelope, not your data.\n\n## The dupe trap (avoid creating 2× pages per note)\n\nNotion accepts `markdown` **only on page CREATE**. There is no \"set full content via PATCH.\"\nA naive two-pass (create empty shell → fill) therefore produces 2 pages per note.\n\n**Correct single-pass design:**\n1. For each note, `API-post-page` with `parent` + `properties.title` + `markdown` (full body).\n   One call, one page, full fidelity. No shells, no dupes.\n2. Wikilinks `[[Note]]`: you do NOT have target IDs yet (they're created in the same run),\n   so **single-pass cannot resolve them into clickable mentions**. Acceptable outcome:\n   leave unresolved `[[Note]]` as literal text, OR resolve only links whose target already\n   exists (e.g. a pre-scanned sibling vault). State this trade-off to the user — do NOT\n   create duplicate shells to fake resolution.\n3. Images `![[local image.png]]`: the MCP exposes no file-upload tool. Upload via raw API\n   (see below) and rewrite `![[x]]` → `![](notion:\u002F\u002Ffile_upload\u002F\u003Cid>)` before sending markdown.\n\n## Local image upload (3-step, raw API)\n\n```python\nimport json, urllib.request\ndef raw(m,p,body=None,binary=None,ctype=None,tok=None):\n    h={\"Authorization\":f\"Bearer {tok}\",\"Notion-Version\":\"2022-06-28\"}\n    data=None\n    if binary is not None: h[\"Content-Type\"]=ctype; data=binary\n    elif body is not None: h[\"Content-Type\"]=\"application\u002Fjson\"; data=json.dumps(body).encode()\n    r=urllib.request.Request(\"https:\u002F\u002Fapi.notion.com\u002Fv1\"+p,data=data,headers=h,method=m)\n    with urllib.request.urlopen(r,timeout=120) as x: return json.loads(x.read() or b\"{}\")\n\n# 1. create upload\njs=raw(\"POST\",\"\u002Ffile_uploads\",{\"filename\":name,\"content_type\":ctype},tok=tok)\n# 2. PUT bytes to js[\"upload_url\"]\n# 3. reference notion:\u002F\u002Ffile_upload\u002F\u003Cjs[\"id\"]> in markdown\n```\nToken for raw calls: read `NOTION_TOKEN` from `~\u002F.mcp_servers.json`.\n\n## Gotchas (all hit and fixed in-session)\n\n- **`obs` ≠ Obsidian.** `\u002Fusr\u002Fbin\u002Fobs` on Linux is OBS Studio. The Obsidian CLI is\n  `\u002Fusr\u002Fbin\u002Fobsidian` (v1.13.4). Don't conflate them. (That correction belongs in the\n  Obsidian CLI skill; this one is Notion-side.)\n- **Directory named `*.md`.** Obsidian lets folders end in `.md` (e.g. `qwen research.md\u002F`).\n  `glob(\"**\u002F*.md\")` returns them as \"files\" and `open()` then throws `IsADirectoryError`.\n  Filter with `os.path.isfile(f)` before reading.\n- **Rate limit ~3 req\u002Fs.** For 460 pages, run in background (`terminal(background=True,\n  notify_on_complete=True)`) — do not block on a foreground `timeout`.\n- **`print(..., flush=True)` in background jobs** — redirection buffers; flush or the log\n  looks empty until exit.\n- **Verify, don't trust self-report.** After export, count child pages under the parent and\n  read back blocks of a sample (`API-get-block-children`) to confirm fidelity. A script's\n  \"created=37\" is not proof — count in Notion.\n- **Cleanup is reversible.** Archive (don't delete) test pages via `API-patch-page\n  {\"archived\":true}` so mistakes are recoverable.\n\n## Reference\n\n- `references\u002Fexport_script.md` — the exact, runnable single-pass exporter used to move\n  4 vaults (460 notes) into Notion via the MCP, with the envelope unwrap, image upload,\n  and dir-`.md` filter baked in.\n",{"name":5,"tags":24,"author":31,"license":15,"version":32,"triggers":33,"description":7},[25,26,27,28,29,30],"notion","obsidian","export","migration","mcp","markdown","hermes-curator","1.0.0",[34,35,36,37,38],"export obsidian to notion","obsidian vault to notion","migrate notes to notion","bulk create notion pages from markdown","notion mcp page creation","master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fproductivity\u002Fobsidian-to-notion","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill obsidian-to-notion",{"tool":52,"command":53},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill obsidian-to-notion",{"tool":55,"command":56},"pnpm","pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill obsidian-to-notion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fproductivity\u002Fobsidian-to-notion\u002FSKILL.md",true,[60],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fexport_script.md","REFERENCE","参考文档",6343,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fproductivity\u002Fobsidian-to-notion\u002Freferences\u002Fexport_script.md",[67,74,81,90,97,104],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]