← 返回 Skills 市场
Docs commands (
37
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-docs-cli
功能描述
Google Docs Secure Management. Use when the user wants to create, read, or edit Google Docs content; or manage sharing, permissions, renames, and deletes.
使用说明 (SKILL.md)
porteden docs
Use porteden docs for Google Docs content operations and file 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.
Docs commands (porteden docs)
Content
- Create new doc (blank):
porteden docs create --name "Meeting Notes" - Create in folder:
porteden docs create --name "Brief" --folder google:0B7_FOLDER - Create with inline content:
porteden docs create --name "Draft" --content "Initial paragraph." - Create from markdown file:
porteden docs create --name "Sprint Plan" --content-file ./plan.md --content-mime-type text/markdown - Read content (plain text):
porteden docs read google:DOCID - Read structured (full Google Docs API JSON):
porteden docs read google:DOCID --format structured -j - Append text:
porteden docs edit google:DOCID --append "New paragraph." - Insert at start:
porteden docs edit google:DOCID --insert "Header text" --at 1 - Find and replace:
porteden docs edit google:DOCID --find "old text" --replace "new text" - Multiple replacements:
porteden docs edit google:DOCID --find "foo" --replace "bar" --find "baz" --replace "qux" - Bulk ops from file:
porteden docs edit google:DOCID --ops-file ./ops.json
File management
- Get export links (pdf, docx, txt):
porteden docs download google:DOCID -jc - Share:
porteden docs share google:DOCID --type user --role writer --email [email protected] - Share publicly:
porteden docs share google:DOCID --type anyone --role reader - List permissions:
porteden docs permissions google:DOCID -jc - Rename:
porteden docs rename google:DOCID --name "New Title" - Delete (trash):
porteden docs delete google:DOCID -y
Ops file format
--ops-file accepts a JSON array of operations:
[
{"type": "appendText", "text": "New paragraph at end."},
{"type": "insertText", "text": "Header", "index": 1},
{"type": "replaceText", "find": "old phrase", "replace": "new phrase", "matchCase": true}
]
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 docs readreturns plain text by default; use--format structuredfor full API JSON with headings and formatting.porteden docs createaccepts optional--content/--content-fileto seed the body in one round-trip. Default--content-mime-typeistext/plain; passtext/markdownto import markdown headings/lists as Doc structure. Without content flags, a blank doc is created.--contentand--content-fileare mutually exclusive ondocs create.--findand--replaceare repeatable and must be used in matched pairs.--ops-fileis mutually exclusive with inline edit flags.porteden docs downloadreturns URLs only — no binary content is streamed.accessInfoin responses describes active token restrictions.deletemoves to trash (reversible). Files can be restored from Google Drive trash.- Confirm before sharing or deleting.
- Environment variables:
PE_API_KEY,PE_PROFILE,PE_FORMAT,PE_COLOR,PE_VERBOSE.
安全使用建议
Install only if you trust the external Porteden CLI and are comfortable granting it access to the relevant Google account and Drive scopes. Review commands before running share, edit, rename, or delete actions, and remember that login credentials may remain in your system keyring until removed.
能力标签
能力评估
Purpose & Capability
The ability to create, read, edit, share, rename, and trash Google Docs is high-impact but directly matches the stated Google Docs management purpose and is plainly documented.
Instruction Scope
Instructions are scoped to using the `porteden docs` CLI, include concrete command examples, and explicitly say to confirm before sharing or deleting.
Install Mechanism
Installation relies on the external `porteden` CLI via Homebrew or Go `@latest`; no executable code is bundled in the skill artifact itself.
Credentials
Use of `PE_API_KEY`, browser login, Google Drive scopes, and system keyring credentials is sensitive but expected for managing Google Docs through a CLI.
Persistence & Privilege
The skill discloses that credentials persist in the system keyring after login; it does not define background workers, hidden persistence, privilege escalation, or automatic destructive actions.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-docs-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-docs-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.8
- Improved and clarified documentation for Google Docs operations and setup using `porteden docs`.
- Detailed all key commands, including creating, editing, reading, sharing, renaming, and deleting Google Docs via CLI.
- Added examples for using content files, markdown import, and bulk operations via JSON ops files.
- Clarified authentication options and token requirements for advanced features.
- Expanded notes on environment variables, file ID conventions, output formatting flags, and credential persistence.
元数据
常见问题
Google Docs 是什么?
Google Docs Secure Management. Use when the user wants to create, read, or edit Google Docs content; or manage sharing, permissions, renames, and deletes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。
如何安装 Google Docs?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-docs-cli」即可一键安装,无需额外配置。
Google Docs 是免费的吗?
是的,Google Docs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Google Docs 支持哪些平台?
Google Docs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Docs?
由 PortEden(@porteden)开发并维护,当前版本 v1.0.8。
推荐 Skills