Token导航 LogoToken导航

Agent Skill · 研究检索

google-docs(Google Docs 文档协作)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

google-docs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,323。

总安装 188周安装 8GitHub Stars 4下载 66核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-docs(Google Docs 文档协作)
来源仓库:https://github.com/arlenagreer/claude_configuration_docs
仓库路径:skills/google-docs
安装命令:
npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill google-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill google-docs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于 Google Docs 文档的内容读取、文本插入与格式调整操作。支持新建文档、页眉识别与基础样式设置,便于内容结构化输出。可与 google-drive 技能联动,实现文件创建与管理一体化流程。安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。

使用前需确认文档权限与编辑范围,避免意外覆盖他人内容。

来源仓库内路径:skills/google-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

google-docs 怎么安装?

在终端执行 npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill google-doc…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

google-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

google-docs 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

google-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

google-docs 用的人多吗?

公开数据是累计安装 188 次,近一周安装 8 次,下载 66 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

google-docs 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
google-docs

Google Docs 文档协作 · 本页

1884接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Google Docs Management Skill

Purpose

Manage Google Docs documents with comprehensive operations:

  • Read document content and structure
  • Insert and append text
  • Find and replace text
  • Basic text formatting (bold, italic, underline)
  • Insert page breaks
  • Create new documents
  • Delete content ranges
  • Get document structure (headings)

Integration: Works seamlessly with google-drive skill for file creation and management

📚 Additional Resources:

  • See references/integration-patterns.md for complete workflow examples
  • See references/troubleshooting.md for error handling and debugging
  • See references/cli-patterns.md for CLI interface design rationale

When to Use This Skill

Use this skill when:

  • User requests to read or view a Google Doc
  • User wants to create a new document
  • User wants to edit document content
  • User requests text formatting or modifications
  • User asks about document structure or headings
  • User wants to find and replace text
  • Keywords: "Google Doc", "document", "edit doc", "format text", "insert text"

📋 Discovering Your Documents: To list or search for documents, use the google-drive skill:

# List recent documents
~/.claude/skills/google-drive/scripts/drive_manager.rb search \
  --query "mimeType='application/vnd.google-apps.document'" \
  --max-results 50

# Search by name
~/.claude/skills/google-drive/scripts/drive_manager.rb search \
  --query "name contains 'Report' and mimeType='application/vnd.google-apps.document'"

Core Workflows

1. Read Document

Read full document content:

scripts/docs_manager.rb read <document_id>

Get document structure (headings):

scripts/docs_manager.rb structure <document_id>

Output:

  • Full text content with paragraphs
  • Document metadata (title, revision ID)
  • Heading structure with levels and positions

2. Create Documents

Create new document:

echo '{
  "title": "Project Proposal",
  "content": "# Project Proposal\n\nIntroduction text here..."
}' | scripts/docs_manager.rb create

Create empty document:

echo '{
  "title": "New Document"
}' | scripts/docs_manager.rb create

Document ID:

  • Returned in response for future operations
  • Use with google-drive skill for sharing/organizing

3. Insert and Append Text

Insert text at specific position:

echo '{
  "document_id": "abc123",
  "text": "This text will be inserted at the beginning.\n\n",
  "index": 1
}' | scripts/docs_manager.rb insert

Append text to end of document:

echo '{
  "document_id": "abc123",
  "text": "\n\nThis text will be appended to the end."
}' | scripts/docs_manager.rb append

Index Positions:

  • Document starts at index 1
  • Use read command to see current content
  • Use structure command to find heading positions
  • End of document: use append instead of calculating index

4. Find and Replace

Simple find and replace:

echo '{
  "document_id": "abc123",
  "find": "old text",
  "replace": "new text"
}' | scripts/docs_manager.rb replace

Case-sensitive replacement:

echo '{
  "document_id": "abc123",
  "find": "IMPORTANT",
  "replace": "CRITICAL",
  "match_case": true
}' | scripts/docs_manager.rb replace

Replace all occurrences:

  • Automatically replaces all matches
  • Returns count of replacements made
  • Use for bulk text updates

5. Text Formatting

Format text range (bold):

echo '{
  "document_id": "abc123",
  "start_index": 1,
  "end_index": 20,
  "bold": true
}' | scripts/docs_manager.rb format

Multiple formatting options:

echo '{
  "document_id": "abc123",
  "start_index": 50,
  "end_index": 100,
  "bold": true,
  "italic": true,
  "underline": true
}' | scripts/docs_manager.rb format

Formatting Options:

  • bold: true/false
  • italic: true/false
  • underline: true/false
  • All options are independent and can be combined

6. Page Breaks

Insert page break:

echo '{
  "document_id": "abc123",
  "index": 500
}' | scripts/docs_manager.rb page-break

Use Cases:

  • Separate document sections
  • Start new content on fresh page
  • Organize long documents

7. Delete Content

Delete text range:

echo '{
  "document_id": "abc123",
  "start_index": 100,
  "end_index": 200
}' | scripts/docs_manager.rb delete

Clear entire document:

# Read document first to get end index
scripts/docs_manager.rb read abc123

# Then delete all content (start at 1, end at last index - 1)
echo '{
  "document_id": "abc123",
  "start_index": 1,
  "end_index": 500
}' | scripts/docs_manager.rb delete

Natural Language Examples

User Says: "Read the content of this Google Doc: abc123"

scripts/docs_manager.rb read abc123

User Says: "Create a new document called 'Meeting Notes' with the text 'Attendees: John, Sarah'"

echo '{
  "title": "Meeting Notes",
  "content": "Attendees: John, Sarah"
}' | scripts/docs_manager.rb create

User Says: "Add 'Next Steps' section to the end of document abc123"

echo '{
  "document_id": "abc123",
  "text": "\n\n## Next Steps\n\n- Review proposals\n- Schedule follow-up"
}' | scripts/docs_manager.rb append

User Says: "Replace all instances of 'Q3' with 'Q4' in document abc123"

echo '{
  "document_id": "abc123",
  "find": "Q3",
  "replace": "Q4"
}' | scripts/docs_manager.rb replace

User Says: "Make the first 50 characters of document abc123 bold"

echo '{
  "document_id": "abc123",
  "start_index": 1,
  "end_index": 50,
  "bold": true
}' | scripts/docs_manager.rb format

Understanding Document Index Positions

Index System:

  • Documents use zero-based indexing with offset
  • Index 1 = start of document (after title)
  • Each character (including spaces and newlines) has an index
  • Use read to see current content and plan insertions
  • Use structure to find heading positions

Finding Positions:

  1. Read document to see content
  2. Count characters to desired position
  3. Or use heading structure for section starts
  4. Remember: index 1 = very beginning

Example:

"Hello World\n\nSecond paragraph"

Index 1: "H" (start)
Index 11: "\n" (first newline)
Index 13: "S" (start of "Second")
Index 29: end of document

Integration with Google Drive Skill

Create and Organize Workflow:

# Step 1: Create document (returns document_id)
echo '{"title":"Report"}' | scripts/docs_manager.rb create
# Returns: {"document_id": "abc123"}

# Step 2: Add content
echo '{"document_id":"abc123","text":"# Report\n\nContent here"}' | scripts/docs_manager.rb insert

# Step 3: Use google-drive to organize
~/.claude/skills/google-drive/scripts/drive_manager.rb --operation move \
  --file-id abc123 \
  --parent-id [folder_id]

# Step 4: Share with team
~/.claude/skills/google-drive/scripts/drive_manager.rb --operation share \
  --file-id abc123 \
  --email team@company.com \
  --role writer

Export to PDF:

# Use google-drive skill to export doc as PDF
~/.claude/skills/google-drive/scripts/drive_manager.rb --operation export \
  --file-id abc123 \
  --mime-type "application/pdf" \
  --output report.pdf

Authentication Setup

Shared with Other Google Skills:

  • Uses same OAuth credentials and token
  • Located at: ~/.claude/.google/client_secret.json and ~/.claude/.google/token.json
  • Shares token with email, calendar, contacts, drive, and sheets skills
  • Requires Documents, Drive, Sheets, Calendar, Contacts, and Gmail API scopes

First Time Setup:

  1. Run any docs operation
  2. Script will prompt for authorization URL
  3. Visit URL and authorize all Google services
  4. Enter authorization code when prompted
  5. Token stored for all Google skills

Re-authorization:

  • Token automatically refreshes when expired
  • If refresh fails, re-run authorization flow
  • All Google skills will work after single re-auth

Bundled Resources

Scripts

scripts/docs_manager.rb

  • Comprehensive Google Docs API wrapper
  • All document operations: read, create, insert, append, replace, format, delete
  • Document structure analysis (headings)
  • Automatic token refresh
  • Shared OAuth with other Google skills

Operations:

  • read: View document content
  • structure: Get document headings and structure
  • insert: Insert text at specific index
  • append: Append text to end
  • replace: Find and replace text
  • format: Apply text formatting (bold, italic, underline)
  • page-break: Insert page break
  • create: Create new document
  • delete: Delete content range

Output Format:

  • JSON with status: 'success' or status: 'error'
  • Document operations return document_id and revision_id
  • See script help: scripts/docs_manager.rb --help

References

references/docs_operations.md

  • Complete operation reference
  • Parameter documentation
  • Index position examples
  • Common workflows

references/formatting_guide.md

  • Text formatting options
  • Style guidelines
  • Document structure best practices
  • Heading hierarchy

Examples

examples/sample_operations.md

  • Common document operations
  • Workflow examples
  • Index calculation examples
  • Integration with google-drive

Error Handling

Authentication Error:

{
  "status": "error",
  "code": "AUTH_ERROR",
  "message": "Token refresh failed: ..."
}

Action: Guide user through re-authorization

Document Not Found:

{
  "status": "error",
  "code": "API_ERROR",
  "message": "Document not found"
}

Action: Verify document ID, check permissions

Invalid Index:

{
  "status": "error",
  "code": "API_ERROR",
  "message": "Invalid index position"
}

Action: Read document to verify current length, adjust index

API Error:

{
  "status": "error",
  "code": "API_ERROR",
  "message": "Failed to update document: ..."
}

Action: Display error to user, suggest troubleshooting steps

Best Practices

Document Creation

  1. Always provide meaningful title
  2. Add initial content when creating for better context
  3. Save returned document_id for future operations
  4. Use google-drive skill to organize and share

Text Insertion

  1. Read document first to understand current structure
  2. Use structure command to find heading positions
  3. Index 1 = start of document
  4. Use append for adding to end (simpler than calculating index)
  5. Include newlines (\n) for proper formatting

Find and Replace

  1. Test pattern match first on small section
  2. Use case-sensitive matching for precise replacements
  3. Returns count of replacements made
  4. Cannot undo - consider reading document first for backup

Text Formatting

  1. Calculate index positions carefully
  2. Read document to verify text location
  3. Can combine bold, italic, underline
  4. Formatting applies to exact character range

Document Structure

  1. Use heading structure for navigation
  2. Insert page breaks between major sections
  3. Maintain consistent formatting throughout
  4. Use structure command to validate hierarchy

Quick Reference

Read document:

scripts/docs_manager.rb read <document_id>

Create document:

echo '{"title":"My Doc","content":"Initial text"}' | scripts/docs_manager.rb create

Insert text at beginning:

echo '{"document_id":"abc123","text":"New text","index":1}' | scripts/docs_manager.rb insert

Append to end:

echo '{"document_id":"abc123","text":"Appended text"}' | scripts/docs_manager.rb append

Find and replace:

echo '{"document_id":"abc123","find":"old","replace":"new"}' | scripts/docs_manager.rb replace

Format text:

echo '{"document_id":"abc123","start_index":1,"end_index":50,"bold":true}' | scripts/docs_manager.rb format

Get document structure:

scripts/docs_manager.rb structure <document_id>

Example Workflow: Creating and Editing a Report

  1. Create document: echo '{"title":"Q4 Report"}' | scripts/docs_manager.rb create # Returns: {"document_id": "abc123"}
  2. Add initial content: echo '{"document_id": "abc123", "text": "# Q4 Report\n\n## Executive Summary\n\nPlaceholder for summary.\n\n## Details\n\nPlaceholder for details."}' | scripts/docs_manager.rb insert
  3. Replace placeholders: echo '{"document_id": "abc123", "find": "Placeholder for summary.", "replace": "Revenue increased 25% over Q3 targets."}' | scripts/docs_manager.rb replace
  4. Format heading: echo '{"document_id": "abc123", "start_index": 1, "end_index": 12, "bold": true}' | scripts/docs_manager.rb format
  5. Share via google-drive: ~/.claude/skills/google-drive/scripts/drive_manager.rb --operation share \ --file-id abc123 \ --email team@company.com \ --role writer

Version History

  • 1.0.0 (2025-11-10) - Initial Google Docs skill with full document operations: read, create, insert, append, replace, format, page breaks, structure analysis. Shared OAuth token with email, calendar, contacts, drive, and sheets skills.

Dependencies: Ruby with google-apis-docs_v1, google-apis-drive_v3, googleauth gems (shared with other Google skills)

平台分布

Codex

36.05%
按下载量换算24

Claude

32.77%
按下载量换算22

Cursor

16.73%
按下载量换算11

Gemini CLI

9.58%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills