{
  "schemaVersion": "1.0",
  "item": {
    "slug": "onedrive-integration",
    "name": "OneDrive Integration",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/moodykong/onedrive-integration",
    "canonicalUrl": "https://clawhub.ai/moodykong/onedrive-integration",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/onedrive-integration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=onedrive-integration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "config.env",
      "scripts/copy_to_onedrive.py",
      "scripts/onboard.sh"
    ],
    "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. 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. 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/onedrive-integration"
    },
    "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/onedrive-integration",
    "agentPageUrl": "https://openagent3.xyz/skills/onedrive-integration/agent",
    "manifestUrl": "https://openagent3.xyz/skills/onedrive-integration/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/onedrive-integration/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Goal",
        "body": "When the user needs a full document / long file in Telegram/WhatsApp (where pasting is awkward), copy the file(s) into OneDrive so the user can open/share from there."
      },
      {
        "title": "Prerequisites",
        "body": "command -v python3\npython3 --version"
      },
      {
        "title": "Configuration (portable)",
        "body": "Machine-specific config lives alongside the skill:\n\nExample (do not edit): ~/.openclaw/skills/onedrive-integration/config.env.example\nReal (machine-specific): ~/.openclaw/skills/onedrive-integration/config.env\n\nKeys:\n\nONEDRIVE_ROOT (required) — e.g. /mnt/c/Users/<windows_user>/OneDrive\nONEDRIVE_SUBDIR (optional) — default openclaw\n\nIf config is missing/unset, do not guess—ask Boss to confirm the correct OneDrive folder, then write config.env."
      },
      {
        "title": "Preferred (chat-first)",
        "body": "Because the primary interface is chat (Telegram), the preferred onboarding flow is:\n\nAsk Boss to confirm the correct OneDrive root folder.\nWrite the real config file: config.env.\nRun a smoke test by copying a small temp file."
      },
      {
        "title": "Optional (terminal)",
        "body": "If you are running in a real terminal, you can use the interactive onboarding script:\n\n~/.openclaw/skills/onedrive-integration/scripts/onboard.sh"
      },
      {
        "title": "How it works",
        "body": "Copy requested file(s) into:\n\n${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ (defaults to openclaw/)\n\nDuring copy, rename files to include their source path to avoid collisions."
      },
      {
        "title": "Rename rules",
        "body": "Convert absolute path into a safe filename:\n\nstrip leading /\nreplace path separators (/ and \\\\) with -\nlowercase\nreplace any non [a-z0-9._-] with -\ncollapse multiple -\n\nExamples:\n\n/home/miles/folder1/file1.md → wsl-home-miles-folder1-file1.md\n/mnt/c/Users/<user>/folder1/file1.md → c-users-<user>-folder1-file1.md"
      },
      {
        "title": "Implementation",
        "body": "Canonical executable lives inside the skill folder:\n\n~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py\n\nRun:\n\n~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py <paths...>\n\n(Reads config.env automatically.)\n\nOptional overrides:\n\n.../copy_to_onedrive.py --onedrive-root \"...\" --subdir \"...\" <paths...>\n.../copy_to_onedrive.py --config /path/to/config.env <paths...>\n\nThe script:\n\ncreates ${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ if missing\ncopies files (preserve timestamps)\nprints the destination paths (no secrets)"
      },
      {
        "title": "Notes",
        "body": "If the request is a browser-only document (no local file), download it to a temp path first, then copy.\nIf ONEDRIVE_ROOT is unset, do not guess—ask for confirmation."
      },
      {
        "title": "Executables / bin placement",
        "body": "Keep the canonical script inside the skill folder.\nOptional: symlink into a common PATH dir (only if you want a short command):\n\nmkdir -p ~/.local/bin\nln -sf ~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py ~/.local/bin/copy-to-onedrive"
      }
    ],
    "body": "onedrive-integration\nGoal\n\nWhen the user needs a full document / long file in Telegram/WhatsApp (where pasting is awkward), copy the file(s) into OneDrive so the user can open/share from there.\n\nPrerequisites\ncommand -v python3\npython3 --version\n\nConfiguration (portable)\n\nMachine-specific config lives alongside the skill:\n\nExample (do not edit): ~/.openclaw/skills/onedrive-integration/config.env.example\nReal (machine-specific): ~/.openclaw/skills/onedrive-integration/config.env\n\nKeys:\n\nONEDRIVE_ROOT (required) — e.g. /mnt/c/Users/<windows_user>/OneDrive\nONEDRIVE_SUBDIR (optional) — default openclaw\n\nIf config is missing/unset, do not guess—ask Boss to confirm the correct OneDrive folder, then write config.env.\n\nInitialization / installation / onboarding\nPreferred (chat-first)\n\nBecause the primary interface is chat (Telegram), the preferred onboarding flow is:\n\nAsk Boss to confirm the correct OneDrive root folder.\nWrite the real config file: config.env.\nRun a smoke test by copying a small temp file.\nOptional (terminal)\n\nIf you are running in a real terminal, you can use the interactive onboarding script:\n\n~/.openclaw/skills/onedrive-integration/scripts/onboard.sh\n\nHow it works\n\nCopy requested file(s) into:\n\n${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ (defaults to openclaw/)\n\nDuring copy, rename files to include their source path to avoid collisions.\n\nRename rules\nConvert absolute path into a safe filename:\nstrip leading /\nreplace path separators (/ and \\\\) with -\nlowercase\nreplace any non [a-z0-9._-] with -\ncollapse multiple -\n\nExamples:\n\n/home/miles/folder1/file1.md → wsl-home-miles-folder1-file1.md\n/mnt/c/Users/<user>/folder1/file1.md → c-users-<user>-folder1-file1.md\nImplementation\n\nCanonical executable lives inside the skill folder:\n\n~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py\n\nRun:\n\n~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py <paths...>\n\n\n(Reads config.env automatically.)\n\nOptional overrides:\n\n.../copy_to_onedrive.py --onedrive-root \"...\" --subdir \"...\" <paths...>\n.../copy_to_onedrive.py --config /path/to/config.env <paths...>\n\nThe script:\n\ncreates ${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ if missing\ncopies files (preserve timestamps)\nprints the destination paths (no secrets)\nNotes\nIf the request is a browser-only document (no local file), download it to a temp path first, then copy.\nIf ONEDRIVE_ROOT is unset, do not guess—ask for confirmation.\nExecutables / bin placement\nKeep the canonical script inside the skill folder.\nOptional: symlink into a common PATH dir (only if you want a short command):\nmkdir -p ~/.local/bin\nln -sf ~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py ~/.local/bin/copy-to-onedrive"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/moodykong/onedrive-integration",
    "publisherUrl": "https://clawhub.ai/moodykong/onedrive-integration",
    "owner": "moodykong",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/onedrive-integration",
    "downloadUrl": "https://openagent3.xyz/downloads/onedrive-integration",
    "agentUrl": "https://openagent3.xyz/skills/onedrive-integration/agent",
    "manifestUrl": "https://openagent3.xyz/skills/onedrive-integration/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/onedrive-integration/agent.md"
  }
}