← 返回 Skills 市场
Drive commands (
38
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-drive-secured
功能描述
Google Drive Secure Management. Use when the user wants to list, search, read text content, create files with inline content, upload binaries, create folders...
使用说明 (SKILL.md)
porteden drive
Use porteden drive for Google Drive file and folder management. Use -jc flags for AI-optimized output.
If porteden is not installed: brew install porteden/tap/porteden (or go install github.com/porteden/cli/cmd/porteden@latest).
Setup (once)
- Browser login (recommended):
porteden auth login— opens browser, credentials stored in system keyring - Direct token:
porteden auth login --token \x3Ckey>— stored in system keyring - Verify:
porteden auth status - If
PE_API_KEYis set in the environment, the CLI uses it automatically (no login needed). - Drive access requires a token with
driveAccessEnabled: trueand a connected Google account with Drive scopes.
Drive commands (porteden drive)
List & inspect
- List files:
porteden drive files -jc - Search by keyword:
porteden drive files -q "budget report" -jc - Filter by folder:
porteden drive files --folder google:0B7_FOLDER_ID -jc - Filter by MIME type:
porteden drive files --mime-type application/pdf -jc - Filter by name:
porteden drive files --name "Q1" -jc - Shared with me:
porteden drive files --shared-with-me -jc - Modified in range:
porteden drive files --modified-after 2026-01-01 --modified-before 2026-02-01 -jc - All files (auto-paginate):
porteden drive files --all -jc - Get file metadata:
porteden drive file google:FILEID -jc - Get view/download links:
porteden drive download google:FILEID -jc - List permissions:
porteden drive permissions google:FILEID -jc
Read content
- Read text content of any file:
porteden drive content google:FILEID- Google Docs export to
text/plaininline - Text-like files (text/*, JSON, XML, YAML, CSV) return as-is
- Binary files return a
webViewLink— open in browser - Spreadsheets/presentations are steered to:
porteden sheets content/porteden slides read
- Google Docs export to
Create & upload
- Create file with inline content:
porteden drive create --name "Notes.md" --mime-type text/markdown --content "# Notes" - Create from local text file:
porteden drive create --name "Plan" --mime-type application/vnd.google-apps.document --content-file ./plan.md --content-mime-type text/markdown - Create CSV file:
porteden drive create --name "Data.csv" --mime-type text/csv --content-file ./data.csv - Upload binary file:
porteden drive upload --file ./report.pdf --name "Q1 Report.pdf" - Upload to folder:
porteden drive upload --file ./data.csv --name "Data.csv" --folder google:0B7_FOLDER - Create folder:
porteden drive mkdir --name "Project Files" - Create folder in folder:
porteden drive mkdir --name "Reports" --parent google:0B7_FOLDER
Manage
- Rename:
porteden drive rename google:FILEID --name "New Name.pdf" - Move:
porteden drive move google:FILEID --destination google:0B7_DEST_FOLDER - Share with user:
porteden drive share google:FILEID --type user --role reader --email [email protected] - Share with domain:
porteden drive share google:FILEID --type domain --role reader --domain example.com - Share publicly:
porteden drive share google:FILEID --type anyone --role reader - Delete (trash):
porteden drive delete google:FILEID(prompts) orporteden drive delete google:FILEID -y
Notes
- Credentials persist in the system keyring after login. No repeated auth needed.
- Set
PE_PROFILE=workto avoid repeating--profile. -jcis shorthand for--json --compact: strips noise, limits fields, reduces tokens for AI agents.- File IDs are always provider-prefixed (e.g.,
google:1BxiMVs0XRA5...). Pass them as-is. porteden drive files --allauto-paginates (safety cap: 50 pages). CheckhasMorein JSON output.porteden drive downloadreturns URLs only — no binary content is streamed.porteden drive contentis the universal text reader — use it instead ofdownloadwhen you need the textual content of a file. For Google Workspace types (Sheets, Slides) it steers to the dedicated commands (porteden sheets content,porteden slides read) via stderr hints.porteden drive createuses inline JSON (UTF-8 text only, ≤ 10 MB). For binary content useporteden drive upload. For Workspace target MIME types (application/vnd.google-apps.{document,spreadsheet,presentation}) Drive auto-imports the content; otherwise the file is stored as-is.accessInfoin responses describes active token restrictions. Always check it to understand what data may be limited.authWarningsin list responses indicate provider connection issues.deletemoves to trash (reversible). Files can be restored from Google Drive trash.- Confirm before sharing or deleting files.
- Environment variables:
PE_API_KEY,PE_PROFILE,PE_FORMAT,PE_COLOR,PE_VERBOSE.
安全使用建议
Install only if you trust Porteden with the Google Drive account you connect. Before running share, public-access, move, upload, or delete commands, verify the exact file ID, recipient email/domain, role, and account profile; prefer least-privilege Drive scopes and treat public links as potentially exposing sensitive data.
能力标签
能力评估
Purpose & Capability
The advertised capabilities match the artifact: it documents Porteden CLI commands for listing, searching, reading, creating, uploading, renaming, moving, sharing, permission inspection, and trashing Google Drive files.
Instruction Scope
The scope includes sensitive Drive operations, including public sharing and deletion-to-trash, but these are disclosed and aligned with the stated Google Drive management purpose; the skill also says to confirm before sharing or deleting files.
Install Mechanism
Installation is disclosed through Homebrew or Go for the required `porteden` binary, with no bundled executable scripts in the skill artifact.
Credentials
The skill requires Drive-capable Porteden credentials through `PE_API_KEY` or system-keyring login, which is proportionate for Google Drive management but grants access to private cloud files.
Persistence & Privilege
Credential persistence in the system keyring and optional profile selection are explicitly documented; no hidden persistence, background worker, or automatic execution is present in the skill artifact.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-drive-secured - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-drive-secured触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
- Expanded SKILL.md with comprehensive usage instructions, command examples, and environment variable details.
- Added clear setup steps for authentication and token management.
- Documented all major file and folder operations: listing, creating, uploading, sharing, renaming, moving, and deleting.
- Explained file ID formats, pagination behaviors, and usage of output flags like -jc.
- Included notes on credential persistence, API key usage, and output interpretation.
元数据
常见问题
Google Drive 是什么?
Google Drive Secure Management. Use when the user wants to list, search, read text content, create files with inline content, upload binaries, create folders... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Google Drive?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-drive-secured」即可一键安装,无需额外配置。
Google Drive 是免费的吗?
是的,Google Drive 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Google Drive 支持哪些平台?
Google Drive 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Drive?
由 PortEden(@porteden)开发并维护,当前版本 v1.0.8。
推荐 Skills