# Send OneDrive Integration to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/onedrive-integration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=onedrive-integration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "config.env",
      "scripts/copy_to_onedrive.py",
      "scripts/onboard.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "onedrive-integration",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T15:38:58.051Z",
      "expiresAt": "2026-05-07T15:38:58.051Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=onedrive-integration",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=onedrive-integration",
        "contentDisposition": "attachment; filename=\"onedrive-integration-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "onedrive-integration"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Goal

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.

### Prerequisites

command -v python3
python3 --version

### Configuration (portable)

Machine-specific config lives alongside the skill:

Example (do not edit): ~/.openclaw/skills/onedrive-integration/config.env.example
Real (machine-specific): ~/.openclaw/skills/onedrive-integration/config.env

Keys:

ONEDRIVE_ROOT (required) — e.g. /mnt/c/Users/<windows_user>/OneDrive
ONEDRIVE_SUBDIR (optional) — default openclaw

If config is missing/unset, do not guess—ask Boss to confirm the correct OneDrive folder, then write config.env.

### Preferred (chat-first)

Because the primary interface is chat (Telegram), the preferred onboarding flow is:

Ask Boss to confirm the correct OneDrive root folder.
Write the real config file: config.env.
Run a smoke test by copying a small temp file.

### Optional (terminal)

If you are running in a real terminal, you can use the interactive onboarding script:

~/.openclaw/skills/onedrive-integration/scripts/onboard.sh

### How it works

Copy requested file(s) into:

${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ (defaults to openclaw/)

During copy, rename files to include their source path to avoid collisions.

### Rename rules

Convert absolute path into a safe filename:

strip leading /
replace path separators (/ and \\\\) with -
lowercase
replace any non [a-z0-9._-] with -
collapse multiple -

Examples:

/home/miles/folder1/file1.md → wsl-home-miles-folder1-file1.md
/mnt/c/Users/<user>/folder1/file1.md → c-users-<user>-folder1-file1.md

### Implementation

Canonical executable lives inside the skill folder:

~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py

Run:

~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py <paths...>

(Reads config.env automatically.)

Optional overrides:

.../copy_to_onedrive.py --onedrive-root "..." --subdir "..." <paths...>
.../copy_to_onedrive.py --config /path/to/config.env <paths...>

The script:

creates ${ONEDRIVE_ROOT}/${ONEDRIVE_SUBDIR}/ if missing
copies files (preserve timestamps)
prints the destination paths (no secrets)

### Notes

If the request is a browser-only document (no local file), download it to a temp path first, then copy.
If ONEDRIVE_ROOT is unset, do not guess—ask for confirmation.

### Executables / bin placement

Keep the canonical script inside the skill folder.
Optional: symlink into a common PATH dir (only if you want a short command):

mkdir -p ~/.local/bin
ln -sf ~/.openclaw/skills/onedrive-integration/scripts/copy_to_onedrive.py ~/.local/bin/copy-to-onedrive
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: moodykong
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T15:38:58.051Z
- Expires at: 2026-05-07T15:38:58.051Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/onedrive-integration)
- [Send to Agent page](https://openagent3.xyz/skills/onedrive-integration/agent)
- [JSON manifest](https://openagent3.xyz/skills/onedrive-integration/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/onedrive-integration/agent.md)
- [Download page](https://openagent3.xyz/downloads/onedrive-integration)