Install
openclaw skills install quark-netdiskAutomate Quark Drive (夸克网盘): QR-code login, list/search, upload, create share links (expiry/passcode), and save others' shared links into your drive. Use when user asks to operate Quark/夸克网盘, generate QR login, manage files under an allowlisted remote folder, create/share links, or transfer (转存) shared resources.
openclaw skills install quark-netdiskreferences/config.json (or fallback references/config.example.json). Default allowlist should be /OpenClaw/**.references/session_api.json, references/cookies.json, references/login_token.json, references/qr_code.pngreferences/index.json (may contain private filenames/paths)requirements.txt exists for portability/reference.references/config.jsonreferences/config.example.jsonKey fields (example names; see config.example.json):
remoteAllowlist: e.g. ["/OpenClaw/**"]localAllowlist: e.g. ["/path/to/Uploads"]loginTimeoutSecondslogin-prepare to generate QRlogin-wait to persist sessionUse orchestration pattern:
channel-run <op> ...need_login: true:
qr_png back to the current chat/channellogin-wait (poll every ~5s)channel-run <op> ...Machine-readable interaction exit codes (for orchestration):
need_login=trueneed_pick=true (multiple candidates; re-run with --pick)need_confirm=true (destructive ops; re-run with --confirm)Invoke as:
python3 scripts/quark_drive.py <cmd> [args...]loginlogin-prepare [--no-open]login-waitauth-statuschannel-run <op> [args...] (preferred)telegram-run <op> [args...] (alias)mkdir <remote_path>ls <remote_path> [--json]search <keyword> [--allow-outside-openclaw] (privacy default: scoped to /OpenClaw/**)upload <local_file>When the user asks to “生成分享链接/创建分享/分享某个文件(夹)”:
share-create <remote_path> [--days 1|7|30|0] [--passcode XXXX] [--title ...]share-create-auto <keyword> [--pick N] [--days 1|7|30|0] [--passcode XXXX] [--local] [--allow-outside-openclaw]
--pick is omitted, returns JSON with need_pick=true and a candidate list.Local index helpers:
index-build --root <remote_path> --max-items <n> [--write] (may issue many API calls; without --write it does not persist)search-local <keyword> [--top N] (builds ephemeral index; does not persist)share-save <share_text_or_url> [--passcode XXXX] [--to /OpenClaw/FromShares] [--no-wait]Notes:
rename <src_path> <new_name>mv <src_path> <dst_dir>rm <src_path> --confirm (soft-delete into /OpenClaw/.trash)purge-trash --days <n> --confirmauth-status fails (401/403): session expired → run login flow again.share-save fails with “用户禁止转存自己的分享”: you tried saving your own link → test with someone else’s share.