Loading...
Loading...
Official Quark Drive Skill, used for file upload/download (supports resumable uploads), file sharing and saving to personal drive, cloud drive file search, album organization, and AI Assistant (file summarization and knowledge Q&A, supporting up to 10,000 files). It is used when users need to operate Quark Drive files or perform identity verification.
npx skill4agent add quark-clouddrive/quarkclouddrive_offical quarkclouddriveDownload link for Quark Drive standalone client: https://pan.quark.cn
scripts/install.shbash scripts/install.shscripts/install.shInstallation Directory Convention: This skill should be installed in the agent's global skills directory to ensure it can be used in all projects. Do not install it in a project-level directory or temporary directory, otherwise the skill will only take effect for a single project or be lost when the project is cleaned up.
node scripts/quark-drive.cjs --helpbash scripts/uninstall.shWhen users express demands such as "upgrade skill" or "update Quark Drive skill", the agent must directly execute, and the script will enter update mode to complete overwriting installation; it is forbidden to call thebash scripts/install.shcommand to update the skill.node scripts/quark-drive.cjs updateReason: Thecommand only updates the CLI command itself (runtime files such asnode scripts/quark-drive.cjs update), does not update skill documents such asquark-drive.cjsandSKILL.md; onlyreferences/will synchronously update the CLI and all documents to ensure the skill is fully upgraded.scripts/install.sh
Trigger Condition: Whenis a first-time installation (i.e., a brand-new installation, not update mode, andscripts/install.shdoes not exist locally originally), or thescripts/quark-drive.cjsin the localaccountsis empty (the user has not bound Quark Drive yet), the agent must output the following welcome copy as is to guide the user to bind.config.jsonAvoid Spamming: Since the agent executesto check the environment before each CLI command call, output this copy only once in the above "first-time installation / unbound" scenario; it is forbidden to repeatedly output this copy during routine command pre-checks for users who have bound accounts. For the capability introduction after successful binding, see the "Guidelines after Successful Login" forscripts/install.shin references/auth.md.login👋 Hello! After binding Quark Drive, you can archive conversation files at any time, save public materials directly to the drive, and organize drive photos as you like. If you don't have a Quark Drive account, download the Quark Drive APP and register to get 10GB of free storage. 📲 Official download: https://pan.quark.cn After binding, I can do these things for you: 💾 Save your AI conversations and important files directly to the drive ● "Save the 5-day Sanya National Day travel plan to the drive" ● "Generate US stock analysis every day, save it to the drive after summarization" 🔍 Find and use files in your drive anytime ● "Find the photo of me and my mom by West Lake, help me make a Mother's Day card" ● "Find the decoration quotation I saved, make a comparison table with the latest one" 📚 Save public materials with one click, and the AI builds a knowledge base for you to ask anytime ● "Help me find several AI product manager interview experiences and save them to the drive" ● "Based on the fund introductory book in the drive, how to allocate fixed investment with a monthly income of 10,000 yuan?" 📷 Organize drive photos as you like, AI helps you select ● "Organize all photos with cats in the drive together" ● "Organize last year's Japan travel photos by Tokyo, Osaka, and Kyoto" Note: Intelligent search, album organization, and knowledge base Q&A are AI advanced functions, currently only 5000 experience quotas are open, first come first served! 👆 Please reply "Authorize" to bind Quark Drive, and you can use the above functions after binding.
node scripts/quark-drive.cjs <command> [options]--session-input--session-idnode scripts/quark-drive.cjs <command> [command parameters] --session-input "User's original question" --session-id "Session ID"node scripts/quark-drive.cjs search --keyword "File the user wants to find" --session-input "User's original question" --session-id "1784035443-a1b2c3"--session-inputsession_id{timestamp}-{random}1784035443-a1b2c3timestamprandomdog001mom001test001session_idscripts/install.shbash scripts/install.shscripts/install.shscripts/install.sh--parent-fidupload--to-pdir-fid--to-pdir-pathsaveasdata.file_pathtype:"artifact"file_listcheck_all_link--parent-fidupload--to-pdir-fidsaveas--session-inputsession_id{timestamp}-{random}1784035443-a1b2c3session_id--stdout-only--stdout-only--stdout-onlydownloadSharing Result Display Rules: After successfully creating a shared link with share, the agent prioritizes renderingas a clickable link to display to the user (Markdowndata.share_url, ensuring it can be recognized and clicked by terminals/clients); fallback to directly display the full shared address text. It is forbidden to wrap or truncate the shared address with code blocks / inline code. If it is a private link ([Shared Link](share_url)), you also need to readurl-type=2and inform the user of the extraction code.data.passcode
Distinction Rules Between Search and AI Assistant: When the user's query contains both location description ("...folder in the drive") and content understanding intent (verbs such as "summarize", "analyze", "explain" + specific questions), the AI Assistant process should be followed (search --stdout-only → summary/qa), instead of search as delivery.Hard Constraints for Search Calls: The search command can only be called once in a single task. The keyword must retain the key semantics and file type descriptors in the original query (such as "photo", "video", "document"), multiple calls are forbidden, and it is forbidden to change the keyword and search again by yourself when there are no search results.Hard Constraints for Search Result Display: Search results must only be displayed in Markdown table format, the table only shows the first 5 preview results. The fixed column order of the table is: Thumbnail (conditional column), File Name, Size / Number of Files, Type, Modification Time, View Link. Even if there is only 1 result, it must be displayed in a table. The thumbnail column only appears when there is a non-emptyin the entries displayed this time. The complete search results have been saved to the jsonl file in the artifact line, and subsequent operations (share/download/organize, etc.) must read the artifact jsonl file to obtain the full FID, forbidden to treat the 5 previews as complete results.big_thumbnail⚠️ check_all_link Display Constraints (Must Be Followed): When the search output result contains thefield, the agent must display this link to the user in a clickable form (such as Markdowncheck_all_link), and the user can view all search results through this link. Omit this prompt when[Click to View All Search Results](check_all_link)is empty or does not exist.check_all_linkDisplay According to CLI Returned Entries: Just display theentries returned by the CLI in the table (up to 5 entries), forbidden to read the artifact saved file to supplement the display. Whenfile_listis greater than the actual displayed number of entries, it must be noted that "A total of N files were found, the above are partial results".data.totalMandatory Process for Post-Search Operations: When performing subsequent operations (share/download/organize, etc.) on search results, must extractfrom thedata.file_pathline in stdout, read the jsonl file to obtain the full FID list and pass it to subsequent commands. Forbidden to directly use the previewtype:"artifact"(up to 5 entries) as input for subsequent commands.file_listSearch as Delivery Principle: When the user's intent is to "find/search/browse" files (such as "find several... for me", "help me find it", "search", "are there any... photos", etc.), the task is completed when search is executed, and it is forbidden to add share/download/organize and other operations by yourself. Only when the user explicitly issues a new instruction after the search results are presented, read the artifact jsonl to obtain the full FID and execute subsequent operations.Usage Rules forParameter (Must Be Followed):--stdout-onlycontrols whether the search command displays the search results as the final result to the user.--stdout-only
- Must pass in
scenario: When search is only used as an intermediate step to obtain file FID, such as obtaining the target file FID list before AI Assistant performs summarization (summary) or Q&A (qa). At this time, the search results are not displayed to the user and are directly used for subsequent commands.--stdout-only- Forbidden to pass in
scenario: When the search results need to be directly displayed to the user (i.e., the user's intent is to find/browse files). At this time, the search results are displayed in table format, and--stdout-onlyneeds to be exposed.check_all_link- Brief note: Display to user → do not pass; intermediate step → must pass. (See references/file-search.md)
Scope of Application: file-organize only handles media organization such as personal photos, pictures, videos, recordings, screenshots, selfies, albums; it does not handle organization of documents, PDFs, compressed packages, audio, applications, torrents, materials such as postgraduate entrance examination/civil service examination/CET-4/6, nor does it handle tasks where users clearly require moving files.Self-Contained Constraint: file-organize has integrated the full process of intent recognition + file search + solution generation internally. The correct process is to judge whether the organization scope and organization method are clear → clarify with the user if not clear → directly call file-organize and pass in the complete instruction. It is forbidden to call search before calling, forbidden to download pictures and understand the picture content locally, and forbidden to split the user's instruction into multiple calls.Results and Confirmation: After organization is completed, the target folder name, number of files, and organization path must be displayed in a table. If the returned number of files is too large and needs confirmation, the server prompt must be displayed truthfully, and wait for the user to choose to copy or move before callingororganize-copy.organize-move
Core Rules: When users require content understanding operations such as "analyze", "summarize", "interpret", "ask", "explain" on cloud drive files, AI Assistant must be used. Even if the query contains folder/location descriptions, as long as the final purpose is to understand the file content, the AI Assistant process must be followed, and cannot stay in the search link.Correct Process: search (pass in) to obtain the associated file/folder FID list → call summary or qa.--stdout-onlyResult Display Rules: If the execution is successful, the result returned by the interface is a complete reply, no secondary summarization or rewriting is needed, just output it as is. If the execution fails, please directly use the content of the msg field in the returned result to reply to the user, and do not try to execute the user's task or question again.
scripts/uninstall.shbash scripts/uninstall.shscripts/uninstall.shnode scripts/quark-drive.cjs logoutscripts/uninstall.shrm -rfscripts/uninstall.shscripts/uninstall.shSKILL.mdreferences/scripts/scripts/quark-drive.cjscatheadread_filefullPathfullPath/--parent-fid=0codemsgUnauthorized Handling: After detecting unauthorized output, the agent is forbidden to retry the original command, should automatically call thecommand to guide the user to complete login authorization, and re-execute the original command after successful login. For authorization process, cancel authorization, uninstall, view user information, self-update, see references/auth.md.login