360 Secure SkillHub
360 安全技能中心

Google Docs Update Document

该 Skill 通过本机命令行工具 gog 更新已有的 Google 文档:可写入文本(gog docs write)或做查找替换(gog docs edit),执行后返回表示更新成功的 JSON 对象或确认字符串。属于原子化单步操作,需预先安装 gog 并具备对应文档的访问授权。

zvirb
zvirb
热度 48.83
最近更新 2026-05-11 17:45:58
分类:效率依赖:代码执行 / 第三方 API应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add google-docs-update-document
Metadata
name
Google Docs Update Document
description
Atomic node skill to update a Google Doc 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 update fails.

Google Docs Update Document

This skill allows the agent to write or insert text into an existing Google Document using the native CLI.

Cognitive Directives

WHEN [Text needs to be added, written, or updated in a Google Doc] THEN [Execute the native terminal command gog docs write <docId> --text "..." or gog docs edit <docId> <find> <replace>]

Schema Example

{
  "command": "gog docs edit doc_id_123 \"old text\" \"new text\""
}

Expected Output

A JSON object or confirmation string indicating the update was successful.