onedrive-integration
Copy large/long files to OneDrive for sharing when the user is on Telegram or WhatsApp and wants to view a full document or long file. Use to place files into OneDrive under an OpenClaw folder and provide the new filename/location.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- onedrive-integration
- description
- Copy large/long files to OneDrive for sharing when the user is on Telegram or WhatsApp and wants to view a full document or long file. Use to place files into OneDrive under an OpenClaw folder and provide the new filename/location.
03 SKILL.md 正文
onedrive-integration
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>/OneDriveONEDRIVE_SUBDIR(optional) — defaultopenclaw
If config is missing/unset, do not guess—ask Boss to confirm the correct OneDrive folder, then write config.env.
Initialization / installation / onboarding
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 toopenclaw/)
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
-
- strip leading
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_ROOTis 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
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.