[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-0fa9b55f-13e4-4251-8ddb-7ae8eecc30e5":3,"$f4G2Fxy5VpqMQaQBCB_UJv-kOUWQm5hL4aMovsvz36KI":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"0fa9b55f-13e4-4251-8ddb-7ae8eecc30e5","google-drive-automation","轻量级Google Drive集成，独立OAuth认证。无需MCP服务器。完全读写访问。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: google-drive-automation\ndescription: \"Lightweight Google Drive integration with standalone OAuth authentication. No MCP server required. Full read\u002Fwrite access.\"\nlicense: Apache-2.0\nrisk: critical\nsource: community\nmetadata:\n  author: sanjay3290\n  version: \"1.0\"\n---\n\n# Google Drive\n\nLightweight Google Drive integration with standalone OAuth authentication. No MCP server required. Full read\u002Fwrite access.\n\n> **Requires Google Workspace account.** Personal Gmail accounts are not supported.\n\n## When to Use\n- You need to search, list, upload, download, move, or organize Google Drive files and folders.\n- The task requires direct Drive read\u002Fwrite automation through local scripts in a Workspace account.\n- You want file-level Drive operations without introducing an MCP server dependency.\n\n## First-Time Setup\n\nAuthenticate with Google (opens browser):\n```bash\npython scripts\u002Fauth.py login\n```\n\nCheck authentication status:\n```bash\npython scripts\u002Fauth.py status\n```\n\nLogout when needed:\n```bash\npython scripts\u002Fauth.py logout\n```\n\n## Read Commands\n\nAll operations via `scripts\u002Fdrive.py`. Auto-authenticates on first use if not logged in.\n\n```bash\n# Search for files (full-text search)\npython scripts\u002Fdrive.py search \"quarterly report\"\n\n# Search by title only\npython scripts\u002Fdrive.py search \"title:budget\"\n\n# Search using Google Drive URL (extracts ID automatically)\npython scripts\u002Fdrive.py search \"https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1ABC123...\"\n\n# Search files shared with you\npython scripts\u002Fdrive.py search --shared-with-me\n\n# Search with pagination\npython scripts\u002Fdrive.py search \"report\" --limit 5 --page-token \"...\"\n\n# Find a folder by exact name\npython scripts\u002Fdrive.py find-folder \"Project Documents\"\n\n# List files in root Drive\npython scripts\u002Fdrive.py list\n\n# List files in a specific folder\npython scripts\u002Fdrive.py list 1ABC123xyz --limit 20\n\n# Download a file\npython scripts\u002Fdrive.py download 1ABC123xyz .\u002Fdownloads\u002Freport.pdf\n```\n\n## Write Commands\n\n```bash\n# Upload a file to Drive root\npython scripts\u002Fdrive.py upload ~\u002FDocuments\u002Freport.pdf\n\n# Upload to a specific folder\npython scripts\u002Fdrive.py upload ~\u002FDocuments\u002Freport.pdf --folder 1ABC123xyz\n\n# Upload with a custom name\npython scripts\u002Fdrive.py upload ~\u002FDocuments\u002Freport.pdf --name \"Q4 Report.pdf\"\n\n# Create a new folder\npython scripts\u002Fdrive.py create-folder \"Project Documents\"\n\n# Create a folder inside another folder\npython scripts\u002Fdrive.py create-folder \"Attachments\" --parent 1ABC123xyz\n\n# Move a file to a different folder\npython scripts\u002Fdrive.py move FILE_ID DESTINATION_FOLDER_ID\n\n# Copy a file\npython scripts\u002Fdrive.py copy FILE_ID\npython scripts\u002Fdrive.py copy FILE_ID --name \"Report Copy\" --folder 1ABC123xyz\n\n# Rename a file or folder\npython scripts\u002Fdrive.py rename FILE_ID \"New Name.pdf\"\n\n# Move a file to trash\npython scripts\u002Fdrive.py trash FILE_ID\n```\n\n## Search Query Formats\n\nThe search command supports multiple query formats:\n\n| Format | Example | Description |\n|--------|---------|-------------|\n| Full-text | `\"quarterly report\"` | Searches file contents and names |\n| Title | `\"title:budget\"` | Searches file names only |\n| URL | `https:\u002F\u002Fdrive.google.com\u002F...` | Extracts and uses file\u002Ffolder ID |\n| Folder ID | `1ABC123...` | Lists folder contents (25+ char IDs) |\n| Native query | `mimeType='application\u002Fpdf'` | Pass-through Drive query syntax |\n\n## File ID Format\n\nGoogle Drive uses long IDs like `1ABC123xyz_-abc123`. Get IDs from:\n- `search` results\n- `find-folder` results\n- `list` results\n- Google Drive URLs\n\n## Download Limitations\n\n- Regular files (PDFs, images, etc.) download directly\n- Google Docs\u002FSheets\u002FSlides cannot be downloaded via this tool\n- For Google Workspace files, use export or dedicated tools\n\n## Token Management\n\nTokens stored securely using the system keyring:\n- **macOS**: Keychain\n- **Windows**: Windows Credential Locker\n- **Linux**: Secret Service API (GNOME Keyring, KDE Wallet, etc.)\n\nService name: `google-drive-skill-oauth`\n\nAutomatically refreshes expired tokens using Google's cloud function.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,111,137,"2026-05-16 13:21:09",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"b30aa813-b974-47c1-a286-b6fea38cf800","1.0.0","google-drive-automation.zip",1873,"uploads\u002Fskills\u002F0fa9b55f-13e4-4251-8ddb-7ae8eecc30e5\u002Fgoogle-drive-automation.zip","d4e99c8fdf766de953bb211be3fbc654353587c9eb369d0d26c6cc35d923464b","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":4351}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]