360 Secure SkillHub
360 安全技能中心

Google Docs Update Document

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

分类:效率
zvirb
zvirb
热度 27.62
最近更新 2026-05-11 17:45:58

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zvirb/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.