{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-notion-sync",
    "name": "Notion Sync",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/kitakitsune0x/openclaw-notion-sync",
    "canonicalUrl": "https://clawhub.ai/kitakitsune0x/openclaw-notion-sync",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openclaw-notion-sync",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-notion-sync",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "bin/notion-sync.js",
      "package-lock.json",
      "package.json",
      "src/cli.ts"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-notion-sync"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openclaw-notion-sync",
    "agentPageUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "notion-sync",
        "body": "CLI and library for syncing a local directory tree into Notion. Folders become Notion pages, files become sub-pages with content."
      },
      {
        "title": "Installation",
        "body": "npm install -g @kitakitsune/notion-sync\n\nRequires Node.js >= 18."
      },
      {
        "title": "Initialization",
        "body": "notion-sync init --token ntn_xxx --page <notion-page-id> [--dir <path>]\n\nCreates .notion-sync.json in the target directory\nThe Notion integration must be shared with the target root page first"
      },
      {
        "title": "Sync Commands",
        "body": "notion-sync sync                   # sync everything\nnotion-sync sync --dry-run         # preview changes\nnotion-sync sync --diff            # only sync changed files\nnotion-sync sync --dir /some/path  # sync a specific directory\nnotion-sync status                 # show sync state\nnotion-sync ignore list            # list ignore patterns\nnotion-sync ignore add \"*.env\"     # add ignore pattern"
      },
      {
        "title": "Default Ignore Patterns",
        "body": "node_modules, .git, dist, .notion-sync.json, *.lock, *.log"
      },
      {
        "title": "Programmatic Usage",
        "body": "import { syncWorkspace, initConfig, loadConfig, saveConfig } from '@kitakitsune/notion-sync';\nimport type { NotionSyncConfig } from '@kitakitsune/notion-sync';\n\nconst config = loadConfig(process.cwd());\nconst result = await syncWorkspace(config, { dryRun: false, diffOnly: true });\n// result.pushed   - files that were synced\n// result.skipped  - files unchanged (when diffOnly)\n// result.errors   - files that failed"
      },
      {
        "title": "Architecture",
        "body": "src/\n  cli.ts     - Commander.js CLI (init, sync, ignore, status)\n  sync.ts    - Core sync logic, Notion API calls, checksum diffing\n  config.ts  - Load/save/init .notion-sync.json\n  types.ts   - NotionSyncConfig interface\n  index.ts   - Public API exports\nbin/\n  notion-sync.js - CLI entry point"
      },
      {
        "title": "Key Implementation Details",
        "body": "Checksums: MD5 hashes stored in .notion-sync.json under checksums field. Used by --diff to skip unchanged files.\nContent chunking: File content is split into 1800-character blocks for the Notion API.\nPage upsert: Existing pages are updated by deleting all blocks then re-appending. New pages are created with content inline.\nFolder hierarchy: Directories are created as Notion pages with folder icon. A folderCache avoids redundant API calls."
      },
      {
        "title": "Config File Structure",
        "body": ".notion-sync.json:\n\n{\n  \"path\": \"/absolute/path\",\n  \"notion\": {\n    \"token\": \"ntn_...\",\n    \"rootPageId\": \"page-id\"\n  },\n  \"ignore\": [\"node_modules\", \".git\", \"dist\", \".notion-sync.json\", \"*.lock\", \"*.log\"],\n  \"checksums\": { \"src/index.ts\": \"md5hash\" }\n}"
      },
      {
        "title": "Development",
        "body": "npm run dev    # watch mode (tsup)\nnpm run build  # production build\n\nBuild uses tsup to bundle TypeScript to ESM format. Output goes to dist/."
      }
    ],
    "body": "notion-sync\n\nCLI and library for syncing a local directory tree into Notion. Folders become Notion pages, files become sub-pages with content.\n\nQuick Reference\nInstallation\nnpm install -g @kitakitsune/notion-sync\n\n\nRequires Node.js >= 18.\n\nInitialization\nnotion-sync init --token ntn_xxx --page <notion-page-id> [--dir <path>]\n\nCreates .notion-sync.json in the target directory\nThe Notion integration must be shared with the target root page first\nSync Commands\nnotion-sync sync                   # sync everything\nnotion-sync sync --dry-run         # preview changes\nnotion-sync sync --diff            # only sync changed files\nnotion-sync sync --dir /some/path  # sync a specific directory\nnotion-sync status                 # show sync state\nnotion-sync ignore list            # list ignore patterns\nnotion-sync ignore add \"*.env\"     # add ignore pattern\n\nDefault Ignore Patterns\n\nnode_modules, .git, dist, .notion-sync.json, *.lock, *.log\n\nProgrammatic Usage\nimport { syncWorkspace, initConfig, loadConfig, saveConfig } from '@kitakitsune/notion-sync';\nimport type { NotionSyncConfig } from '@kitakitsune/notion-sync';\n\nconst config = loadConfig(process.cwd());\nconst result = await syncWorkspace(config, { dryRun: false, diffOnly: true });\n// result.pushed   - files that were synced\n// result.skipped  - files unchanged (when diffOnly)\n// result.errors   - files that failed\n\nArchitecture\nsrc/\n  cli.ts     - Commander.js CLI (init, sync, ignore, status)\n  sync.ts    - Core sync logic, Notion API calls, checksum diffing\n  config.ts  - Load/save/init .notion-sync.json\n  types.ts   - NotionSyncConfig interface\n  index.ts   - Public API exports\nbin/\n  notion-sync.js - CLI entry point\n\nKey Implementation Details\nChecksums: MD5 hashes stored in .notion-sync.json under checksums field. Used by --diff to skip unchanged files.\nContent chunking: File content is split into 1800-character blocks for the Notion API.\nPage upsert: Existing pages are updated by deleting all blocks then re-appending. New pages are created with content inline.\nFolder hierarchy: Directories are created as Notion pages with folder icon. A folderCache avoids redundant API calls.\nConfig File Structure\n\n.notion-sync.json:\n\n{\n  \"path\": \"/absolute/path\",\n  \"notion\": {\n    \"token\": \"ntn_...\",\n    \"rootPageId\": \"page-id\"\n  },\n  \"ignore\": [\"node_modules\", \".git\", \"dist\", \".notion-sync.json\", \"*.lock\", \"*.log\"],\n  \"checksums\": { \"src/index.ts\": \"md5hash\" }\n}\n\nDevelopment\nnpm run dev    # watch mode (tsup)\nnpm run build  # production build\n\n\nBuild uses tsup to bundle TypeScript to ESM format. Output goes to dist/."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/kitakitsune0x/openclaw-notion-sync",
    "publisherUrl": "https://clawhub.ai/kitakitsune0x/openclaw-notion-sync",
    "owner": "kitakitsune0x",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-notion-sync",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-notion-sync",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-notion-sync/agent.md"
  }
}