quark-hub

Manage Quark cloud drive files via CLI commands for listing, saving, and downloading.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/riipandi/minis-skills --skill quark-hub-riipandi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quark-hub
Source: https://github.com/riipandi/minis-skills/tree/main/quark-hub
Command: npx skills add https://github.com/riipandi/minis-skills --skill quark-hub-riipandi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires aiohttp, and includes scripts (resource) components.

What problem does it solve? Accessing and managing Quark cloud drive files requires manual browser interaction, and downloading files from shared links involves tedious copy-save-download steps. This Skill automates the entire workflow through simple CLI commands, including login persistence via cached cookies. ## Core Features & Use Cases - Share Link Inspection: List or recursively expand the full file tree of any Quark shared link without logging in. - Cloud Drive Management: View account info and capacity, list directories, create folders, and save shared files to your own drive with automatic duplicate detection. - Background Downloads: Download files from your own drive with multi-threaded progress reporting and 1-minute average speed tracking. - Use Case: A user receives a Quark share link to a movie collection. The agent inspects the share tree, saves the files to the user's drive (skipping duplicates), then downloads them locally with live progress updates. ## Quick Start Ask the agent to list the contents of a Quark share link, for example: show me what files are in this Quark link https://pan.quark.cn/s/xxxxxxxx.

Frequently Asked Questions about quark-hub

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download files from a Quark cloud drive share link?

First inspect the share with tree-share, then save it to your own drive with the save command, list the directory to get file fids, and finally run dl to download. Quark's API only allows downloading files from your own drive, so saving first is mandatory.

How do I list files in a Quark share link without login?

Use the ls-share or tree-share commands with the share URL, for example python3 quark_hub.py tree-share followed by the link. These commands call the share page API anonymously and require no cookie or login.

What dependencies does the Quark cloud drive CLI need?

It only requires aiohttp, installed via the Alpine package py3-aiohttp with apk add, plus the Python standard library. No pip installation, Playwright, or other third-party packages are needed.

Why does the Quark script exit with code 10?

Exit code 10 means the login cookie is missing or expired. The agent must open https://pan.quark.cn for the user to log in, then run scripts/refresh_cookie.sh to extract and save a fresh cookie to ~/.quark_hub_cookie.

Can I download files directly from someone else's Quark share?

No, the Quark API restricts downloads to files in your own cloud drive. You must first save the shared files to your account, then retrieve their fids and download them to local storage.