google-workspace by casper-studios/casper-marketplace
npx skills add https://github.com/casper-studios/casper-marketplace --skill google-workspace使用 OAuth 身份验证与 Google Drive、Gmail、Calendar 和 Docs 进行交互。支持文件上传、文件夹管理、邮件搜索、日历搜索和文档操作。
What do you need?
│
├── Google Drive
│ ├── Search files/folders → references/drive-search.md
│ │ └── Script: scripts/gdrive_search.py
│ │
│ ├── Upload files → references/drive-upload.md
│ │ └── Script: scripts/google_drive_upload.py
│ │
│ ├── Create folder structure → references/folder-structure.md
│ │ └── Script: scripts/gdrive_folder_structure.py
│ │
│ ├── Create client folder → references/create-folder.md
│ │ └── Script: scripts/create_client_folder.py
│ │
│ └── Search transcripts → references/transcript-search.md
│ └── Script: scripts/gdrive_transcript_search.py
│
├── Gmail
│ └── Search emails → references/gmail-search.md
│ └── Script: scripts/gmail_search.py
│
└── Calendar
└── Search meetings → references/calendar-search.md
└── Script: scripts/google_calendar_search.py
首次身份验证后,OAuth 凭据将存储在本地。
client_secrets.json - 来自 Google Cloud Console广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
settings.yaml - PyDrive2 配置文件mycreds.txt - 自动生成的 OAuth 令牌client_secrets.jsonpython scripts/gdrive_search.py folder "Microsoft"
python scripts/google_drive_upload.py --files *.png --folder "Clients/Acme/Assets"
python scripts/gmail_search.py --domain "microsoft.com" --days 14
python scripts/google_calendar_search.py "Microsoft" --days-back 30
| 权限范围 | 用途 |
|---|---|
drive | 完全访问 Drive |
spreadsheets | 访问 Sheets |
documents | 访问 Docs |
gmail.readonly | 读取邮件 |
calendar.readonly | 读取日历 |
免费 - Google Workspace API 提供慷慨的免费配额。
client_secrets.json - OAuth 应用凭据(切勿提交到 git)mycreds.txt - 用户 OAuth 令牌(切勿提交到 git,添加到 .gitignore)settings.yaml - PyDrive2 配置(可以提交,不含机密信息)drive - 完全访问 Drive(读/写)drive.readonly - 只读访问 Drive(尽可能首选)spreadsheets - 访问 Google Sheetsdocuments - 访问 Google Docsgmail.readonly - 只读访问邮件calendar.readonly - 只读访问日历client_secrets.json,不要放在代码仓库中症状: 出现“无效凭据”或“令牌已过期或已被撤销”错误 原因: OAuth 刷新令牌已过期或已被撤销 解决方案:
mycreds.txt 文件mycreds.txt 将自动创建症状: 使用有效的文件 ID 时出现“文件未找到”错误 原因: 无权访问文件、文件已删除或文件 ID 错误 解决方案:
症状: 出现“用户速率限制超限”或“配额超限”错误 原因: 24 小时内 API 请求过多 解决方案:
症状: 出现“settings.yaml 未找到”或 PyDrive2 配置错误 原因: 缺少 PyDrive2 配置文件 解决方案:
cp settings.yaml.example settings.yamlclient_secrets.json 的路径正确症状: 出现“无效的客户端密钥”或 OAuth 配置错误 原因: OAuth 凭据文件格式错误或不正确 解决方案:
症状: 出现“权限不足”错误 原因: OAuth 授权缺少所需的权限范围 解决方案:
mycreds.txt 以重置 OAuth 会话settings.yaml 中的权限范围与脚本要求匹配技能: google-workspace → video-production 使用场景: 从 Drive 文件夹组装课程视频 流程:
技能: google-workspace → content-generation 使用场景: 从品牌模板生成文档 流程:
技能: google-workspace → transcript-search 使用场景: 从日历事件中查找会议录音 流程:
每周安装数
103
代码仓库
GitHub 星标数
9
首次出现
2026年2月24日
安全审计
安装于
cline103
github-copilot103
codex103
kimi-cli103
gemini-cli103
cursor103
Interact with Google Drive, Gmail, Calendar, and Docs using OAuth authentication. Supports file uploads, folder management, email search, calendar search, and document operations.
What do you need?
│
├── Google Drive
│ ├── Search files/folders → references/drive-search.md
│ │ └── Script: scripts/gdrive_search.py
│ │
│ ├── Upload files → references/drive-upload.md
│ │ └── Script: scripts/google_drive_upload.py
│ │
│ ├── Create folder structure → references/folder-structure.md
│ │ └── Script: scripts/gdrive_folder_structure.py
│ │
│ ├── Create client folder → references/create-folder.md
│ │ └── Script: scripts/create_client_folder.py
│ │
│ └── Search transcripts → references/transcript-search.md
│ └── Script: scripts/gdrive_transcript_search.py
│
├── Gmail
│ └── Search emails → references/gmail-search.md
│ └── Script: scripts/gmail_search.py
│
└── Calendar
└── Search meetings → references/calendar-search.md
└── Script: scripts/google_calendar_search.py
OAuth credentials are stored locally after first authentication.
client_secrets.json - From Google Cloud Consolesettings.yaml - PyDrive2 configurationmycreds.txt - Auto-generated OAuth tokensclient_secrets.jsonpython scripts/gdrive_search.py folder "Microsoft"
python scripts/google_drive_upload.py --files *.png --folder "Clients/Acme/Assets"
python scripts/gmail_search.py --domain "microsoft.com" --days 14
python scripts/google_calendar_search.py "Microsoft" --days-back 30
| Scope | Purpose |
|---|---|
drive | Full Drive access |
spreadsheets | Sheets access |
documents | Docs access |
gmail.readonly | Read emails |
calendar.readonly | Read calendar |
Free - Google Workspace APIs have generous free quotas.
client_secrets.json - OAuth app credentials (never commit to git)mycreds.txt - User OAuth tokens (never commit to git, add to .gitignore)settings.yaml - PyDrive2 config (can be committed, no secrets)drive - Full Drive access (read/write)drive.readonly - Read-only Drive access (preferred when possible)spreadsheets - Google Sheets accessdocuments - Google Docs accessgmail.readonly - Read-only email accesscalendar.readonly - Read-only calendar accessclient_secrets.json securely, not in reposSymptoms: "Invalid credentials" or "Token has been expired or revoked" error Cause: OAuth refresh token expired or revoked Solution:
mycreds.txt filemycreds.txt will be created automaticallySymptoms: "File not found" error with valid file ID Cause: No access to file, file deleted, or wrong file ID Solution:
Symptoms: "User rate limit exceeded" or "Quota exceeded" error Cause: Too many API requests in 24-hour period Solution:
Symptoms: "settings.yaml not found" or PyDrive2 configuration error Cause: Missing PyDrive2 configuration file Solution:
cp settings.yaml.example settings.yamlclient_secrets.json path is correct in settingsSymptoms: "Invalid client secrets" or OAuth configuration error Cause: Malformed or incorrect OAuth credentials file Solution:
Symptoms: "Insufficient permission" error Cause: OAuth consent missing required scopes Solution:
mycreds.txt to reset OAuth sessionsettings.yaml match script requirementsSkills: google-workspace → video-production Use case: Assemble course videos from Drive folder Flow:
Skills: google-workspace → content-generation Use case: Generate documents from branded templates Flow:
Skills: google-workspace → transcript-search Use case: Find meeting recordings from calendar events Flow:
Weekly Installs
103
Repository
GitHub Stars
9
First Seen
Feb 24, 2026
Security Audits
Gen Agent Trust HubPassSocketFailSnykWarn
Installed on
cline103
github-copilot103
codex103
kimi-cli103
gemini-cli103
cursor103
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
36,300 周安装
iOS Core Location 问题诊断指南 - 位置更新、后台定位、授权问题排查
137 周安装
GRDB.swift SQLite 数据库开发指南 - 类型安全查询、迁移与响应式观察
137 周安装
iOS 存储决策指南:SwiftData、SQLite、文件与云端存储方案选择
137 周安装
CSV处理器:高级数据处理工具,支持解析、转换、清理和分析CSV文件
137 周安装
项目开发指南模板:Next.js + FastAPI + Claude AI 全栈架构最佳实践
137 周安装
ENA数据库API使用指南:查询DNA/RNA序列、基因组组装与生物信息学数据
137 周安装