google-docs by sanjay3290/ai-skills
npx skills add https://github.com/sanjay3290/ai-skills --skill google-docs轻量级 Google 文档集成,附带独立的 OAuth 身份验证。无需 MCP 服务器。
⚠️ 需要 Google Workspace 账户。 不支持个人 Gmail 账户。
使用 Google 进行身份验证(将打开浏览器):
python scripts/auth.py login
检查身份验证状态:
python scripts/auth.py status
需要时注销:
python scripts/auth.py logout
所有操作均通过 scripts/docs.py 进行。如果首次使用时未登录,将自动进行身份验证。
# 创建新文档
python scripts/docs.py create "Meeting Notes"
# 创建包含初始内容的文档
python scripts/docs.py create "Project Plan" --content "# Overview\n\nThis is the project plan."
# 按标题查找文档
python scripts/docs.py find "meeting" --limit 10
# 获取文档的文本内容
python scripts/docs.py get-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms
# 使用完整 URL 获取文本
python scripts/docs.py get-text "https://docs.google.com/document/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit"
# 向文档末尾追加文本
python scripts/docs.py append-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "New paragraph at the end."
# 在文档开头插入文本
python scripts/docs.py insert-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "Text at the beginning.\n\n"
# 替换文档中的文本
python scripts/docs.py replace-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "old text" "new text"
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Google 文档使用类似 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms 的文档 ID。您可以:
find 命令的结果中获取文档 ID令牌使用系统密钥环安全存储:
服务名称:google-docs-skill-oauth
访问令牌过期时,会使用 Google 的云函数自动刷新。
每周安装数
88
代码仓库
GitHub 星标数
169
首次出现
2026年1月23日
安全审计
安装于
codex80
gemini-cli78
opencode78
cursor73
claude-code72
github-copilot72
Lightweight Google Docs integration with standalone OAuth authentication. No MCP server required.
⚠️ Requires Google Workspace account. Personal Gmail accounts are not supported.
Authenticate with Google (opens browser):
python scripts/auth.py login
Check authentication status:
python scripts/auth.py status
Logout when needed:
python scripts/auth.py logout
All operations via scripts/docs.py. Auto-authenticates on first use if not logged in.
# Create a new document
python scripts/docs.py create "Meeting Notes"
# Create a document with initial content
python scripts/docs.py create "Project Plan" --content "# Overview\n\nThis is the project plan."
# Find documents by title
python scripts/docs.py find "meeting" --limit 10
# Get text content of a document
python scripts/docs.py get-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms
# Get text using a full URL
python scripts/docs.py get-text "https://docs.google.com/document/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit"
# Append text to end of document
python scripts/docs.py append-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "New paragraph at the end."
# Insert text at beginning of document
python scripts/docs.py insert-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "Text at the beginning.\n\n"
# Replace text in document
python scripts/docs.py replace-text 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms "old text" "new text"
Google Docs uses document IDs like 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms. You can:
find command resultsTokens stored securely using the system keyring:
Service name: google-docs-skill-oauth
Access tokens are automatically refreshed when expired using Google's cloud function.
Weekly Installs
88
Repository
GitHub Stars
169
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykFail
Installed on
codex80
gemini-cli78
opencode78
cursor73
claude-code72
github-copilot72
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
46,900 周安装
FastAPI 技能:构建高性能异步 API,集成 Pydantic 验证与自动文档生成
84 周安装
深度网络研究策略:复杂问题6阶段方法论,AI驱动的多源分析工具
87 周安装
Work IQ:使用自然语言查询Microsoft 365工作空间,无缝搜索邮件、会议、Teams消息和文档
85 周安装
GitHub Copilot CLI 专家指南:安装、命令、配置与高级使用技巧
87 周安装
Umbraco仪表板开发指南:自定义后台组件与条件控制
102 周安装
Chat SDK:统一TypeScript SDK,一次编写跨平台聊天机器人(Slack/Teams/Discord等)
97 周安装