360 Secure SkillHub
360 安全技能中心

Google Drive Upload File

该 Skill 是一个单步上传节点:当需要把本地文件上传到 Google Drive 时,执行 gog drive upload 命令,并预期返回包含上传文件和 Drive ID 的 JSON 对象。它依赖 gog CLI,未说明安装、授权、目标文件夹或批量上传能力。

zvirb
zvirb
热度 50.63
最近更新 2026-05-11 17:46:05
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add google-drive-upload-file
Metadata
name
Google Drive Upload File
description
Atomic node skill to upload a file to Google Drive using the gog CLI.
os
all
requires
{"bins":["gog"]}

Lean Philosophy (Principles)

  • Kaizen (改善): This skill is an atomic node, broken down into its simplest, smallest component to eliminate waste and ensure perfection.
  • Standardized Work (Hyojun Sagyo): This node represents the most efficient, standardized path for this specific task before automation.
  • Jidoka (自働化): This node includes autonomous defect detection. It relies on the CLI's self-healing loop and will report errors if the upload fails.

Google Drive Upload File

This skill allows the agent to upload a local file to Google Drive using the native CLI.

Cognitive Directives

WHEN [A local file needs to be uploaded to Google Drive] THEN [Execute the native terminal command gog drive upload <localPath>]

Schema Example

{
  "command": "gog drive upload /path/to/local/file.txt --json"
}

Expected Output

A JSON object confirming the uploaded file and its Drive ID.