AI Skill 大全

云端文件管理

用 maton 命令行连上 Google Drive,通过指令列表、搜索、创建和管理云端文件与文件夹。

功能与用途

想在命令行或自动化脚本里操作 Google Drive,却卡在 OAuth 凭据配置上时,这个技能用 Maton 网关统一托管授权,背后是 maton CLI。装好 CLI、登录一次、建好连接后,就能列表、搜索、创建、管理文件和文件夹,也能用 api 透传访问它没封装的接口。凭据存在系统钥匙串里,脚本不需要碰明文密钥。

适用场景

  • 要写定时脚本每天把新生成的报表同步到 Google Driv:要写定时脚本每天把新生成的报表同步到 Google Drive 指定文件夹,不想为 OAuth 刷新逻辑单独维护一套代码
  • 公司有多个 Google 账号连接,需要明确指定用哪个 co:公司有多个 Google 账号连接,需要明确指定用哪个 connection_id 操作,避免写操作落到错误账号
  • 要调一个 maton CLI 没封装成命令的 Drive 接:要调一个 maton CLI 没封装成命令的 Drive 接口,只能走 api 透传但又担心写操作失控

适用人群

  • 需要脚本化操作云盘的运维工程师
  • 搭建云端文件同步流程的后端开发
  • 做云盘数据巡检的技术支持

使用步骤

  1. 装好 maton CLI:npm install -g @maton/cli 或 brew install maton-ai/cli/maton
  2. 执行 maton login --oauth 在浏览器完成一次授权,再用 maton whoami --json 确认 authenticated 为 true
  3. 执行 maton connection create google-drive 建立连接(这一步需要你先确认授权),并在返回的 URL 里完成 Google 侧授权
  4. 用 maton google-drive file list -Q "..." 之类的命令做只读查询,有多个连接时用 --connection 指定账号
  5. 需要访问未封装的接口时用 maton api '/google-drive/{路径}' 透传,写操作前先跟 AI 确认目标和影响

开始使用

将需求和 Skill 名称发送给已连接 SkillPX MCP 的 AI 助手,核对适用工具和安装要求。

查看 MCP 接入说明

技术信息

分类
办公
适用工具
Codex、Claude Code、OpenClaw、Hermes、国内 Agent
使用难度
进阶
版本
1.2.6
最近更新
2026-09-10
文件数
3
安装包大小
自动生成 ZIP
安全检查
基础检查通过

Google Drive API integration with managed OAuth. List, search, create, and manage files and folders. Use this skill when users ask to find, read, share, organize, upload, or download files and folders in their own Google Drive — for example "find my Q3 budget sheet", "share this folder with alice@", "what changed in this doc". It handles files as whole objects — downloading or exporting their contents, and uploading or replacing the bytes. For editing *inside* a document — rewriting paragraphs, changing cells, editing slides — use the Google Docs, Sheets, or Slides skills instead. Not for Gmail attachments, and not for another user's Drive unless it is shared with the connected account. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login, or over raw HTTP with a Maton API key where the CLI cannot be installed. The endpoints documented here are the intended surface, not a technical limit — the `maton api` passthrough can reach others the connection permits. Default to read and list calls, and confirm every write or new connection with the user.

使用前准备

  • 需要网络访问和 Maton 账号,并安装 maton CLI 完成 OAuth 登录与连接创建

依赖与权限

  • MATON_API_KEY
  • 读取用户主动提供的内容

同类 Skill