360 Secure SkillHub
360 安全技能中心

Google Drive Share File

该技能定义了一个原子操作:当需要将 Google Drive 中的文件或文件夹共享给指定用户或公开时,执行 gog drive share 命令并传入文件 ID、角色、类型和邮箱,预期返回确认权限创建的 JSON 对象。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add google-drive-share-file
Metadata
name
Google Drive Share File
description
Atomic node skill to share a file in 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 sharing fails.

Google Drive Share File

This skill allows the agent to share a file or folder in Google Drive using the native CLI.

Cognitive Directives

WHEN [A file or folder needs to be shared with a user or made public] THEN [Execute the native terminal command gog drive share <fileId> --role reader --type user --email <email>]

Schema Example

{
  "command": "gog drive share file_id_123 --role writer --type user --email example@gmail.com --json"
}

Expected Output

A JSON object confirming the permission creation.