google-workspace
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Workspace Skill
Google Workspace Skill
Comprehensive MCP integration for all Google Workspace services.
针对所有Google Workspace服务的全面MCP集成。
Denotation
指称
Google Workspace tasks map to functional invariants, resulting in consistent email, file, calendar, and task states under Narya condensation and GF(3) conservation.
The skill reaches a fixed point when all pending operations complete with no H¹ obstructions (gluing failures), and thread/folder trit sums are conserved modulo 3.
Google Workspace任务映射到函数不变量,在Narya condensation和GF(3)守恒规则下,确保邮件、文件、日历和任务状态的一致性。
当所有待处理操作完成且无H¹障碍(粘合失败),并且线程/文件夹的trit总和模3守恒时,该技能达到不动点。
Formal Contract
正式契约
Effect: Google Workspace → State × Trit
Invariant: ∀ closed workflow: Σ(trit) ≡ 0 (mod 3)
Denotation: ⟦GW⟧ = lim_{n→∞} Condense(Op_n(...Op_1(S_0)))Effect: Google Workspace → State × Trit
Invariant: ∀ closed workflow: Σ(trit) ≡ 0 (mod 3)
Denotation: ⟦GW⟧ = lim_{n→∞} Condense(Op_n(...Op_1(S_0)))Required Parameter
必填参数
All tools require - the user's Google email address.
user_google_email所有工具均需 - 用户的Google邮箱地址。
user_google_emailServices Overview
服务概述
📧 Gmail (MINUS -1: Validator)
📧 Gmail(MINUS -1:验证器)
| Tool | Description |
|---|---|
| Search with Gmail query syntax |
| Get full message content |
| Batch get (max 25) |
| Get full conversation thread |
| Send email (supports replies) |
| Create draft (supports replies) |
| Add/remove labels (archive, delete) |
| Bulk label operations |
| List all labels with IDs |
| Create/update/delete labels |
Query syntax examples:
- - From specific sender
from:user@example.com - - Unread messages
is:unread - - Has attachments
has:attachment - - Date filters
after:2024/01/01
| 工具 | 描述 |
|---|---|
| 使用Gmail查询语法进行搜索 |
| 获取完整邮件内容 |
| 批量获取(最多25条) |
| 获取完整对话线程内容 |
| 发送邮件(支持回复) |
| 创建草稿(支持回复) |
| 添加/移除标签(归档、删除) |
| 批量标签操作 |
| 列出所有带ID的标签 |
| 创建/更新/删除标签 |
查询语法示例:
- - 来自特定发件人
from:user@example.com - - 未读邮件
is:unread - - 包含附件
has:attachment - - 日期筛选
after:2024/01/01
📁 Drive (ERGODIC 0: Coordinator)
📁 Drive(ERGODIC 0:协调器)
| Tool | Description |
|---|---|
| Search files by query |
| List folder contents |
| Get file content (text extraction) |
| Get download URL |
| Create new file |
| Update metadata |
| Share with users/groups/anyone |
| Bulk sharing |
| Check permissions |
| Get shareable link |
| Revoke access |
| Transfer file ownership |
| 工具 | 描述 |
|---|---|
| 通过查询搜索文件 |
| 列出文件夹内容 |
| 获取文件内容(文本提取) |
| 获取下载链接 |
| 创建新文件 |
| 更新元数据 |
| 与用户/群组/所有人共享 |
| 批量共享操作 |
| 查看权限 |
| 获取可共享链接 |
| 撤销访问权限 |
| 转移文件所有权 |
📅 Calendar (PLUS +1: Executor)
📅 Calendar(PLUS +1:执行器)
| Tool | Description |
|---|---|
| List user's calendars |
| Get events (by ID or time range) |
| Create new event |
| Update existing event |
| Delete event |
Event creation options:
- - Add Meet link
add_google_meet: true - - Invite attendees
attendees: ["email1", "email2"] - - Custom reminders
reminders: [{"method": "popup", "minutes": 15}] - - Show as available
transparency: "transparent"
| 工具 | 描述 |
|---|---|
| 列出用户的日历 |
| 获取事件(按ID或时间范围) |
| 创建新事件 |
| 更新现有事件 |
| 删除事件 |
事件创建选项:
- - 添加Meet链接
add_google_meet: true - - 邀请参会者
attendees: ["email1", "email2"] - - 自定义提醒
reminders: [{"method": "popup", "minutes": 15}] - - 显示为空闲状态
transparency: "transparent"
📄 Docs (MINUS -1)
📄 Docs(MINUS -1)
| Tool | Description |
|---|---|
| Search Google Docs |
| List docs in folder |
| Create new document |
| Get document content |
| Insert/replace/format text |
| Find and replace |
| Insert image |
| Insert table/list/page break |
| Create populated table |
| Get document structure |
| Debug table layout |
| Update headers/footers |
| Multiple operations |
| Export to PDF |
| 工具 | 描述 |
|---|---|
| 搜索Google Docs |
| 列出文件夹中的文档 |
| 创建新文档 |
| 获取文档内容 |
| 插入/替换/格式化文本 |
| 查找并替换 |
| 插入图片 |
| 插入表格/列表/分页符 |
| 创建带数据的表格 |
| 获取文档结构 |
| 调试表格布局 |
| 更新页眉/页脚 |
| 多操作批量执行 |
| 导出为PDF |
📊 Sheets (ERGODIC 0)
📊 Sheets(ERGODIC 0)
| Tool | Description |
|---|---|
| List spreadsheets |
| Create new spreadsheet |
| Get spreadsheet metadata |
| Add new sheet |
| Read cell range |
| Write/update/clear cells |
Range syntax: or
Sheet1!A1:D10A1:Z1000| 工具 | 描述 |
|---|---|
| 列出电子表格 |
| 创建新电子表格 |
| 获取电子表格元数据 |
| 添加新工作表 |
| 读取单元格范围 |
| 写入/更新/清除单元格 |
范围语法: 或
Sheet1!A1:D10A1:Z1000📽️ Slides (PLUS +1)
📽️ Slides(PLUS +1)
| Tool | Description |
|---|---|
| Create new presentation |
| Get presentation details |
| Get slide details |
| Get slide thumbnail |
| Apply updates |
| 工具 | 描述 |
|---|---|
| 创建新演示文稿 |
| 获取演示文稿详情 |
| 获取幻灯片详情 |
| 获取幻灯片缩略图 |
| 应用更新操作 |
📋 Forms
📋 Forms
| Tool | Description |
|---|---|
| Create new form |
| Get form details |
| List responses |
| Get specific response |
| Update publish settings |
| 工具 | 描述 |
|---|---|
| 创建新表单 |
| 获取表单详情 |
| 列出表单回复 |
| 获取特定回复 |
| 更新发布设置 |
✅ Tasks
✅ Tasks
| Tool | Description |
|---|---|
| List all task lists |
| Get task list details |
| Create new list |
| Rename list |
| Delete list |
| List tasks in list |
| Get task details |
| Create task |
| Update task |
| Delete task |
| Move task (position/list) |
| Clear completed |
| 工具 | 描述 |
|---|---|
| 列出所有任务列表 |
| 获取任务列表详情 |
| 创建新列表 |
| 重命名列表 |
| 删除列表 |
| 列出列表中的任务 |
| 获取任务详情 |
| 创建任务 |
| 更新任务 |
| 删除任务 |
| 移动任务(调整位置/转移列表) |
| 清除已完成任务 |
💬 Chat
💬 Chat
| Tool | Description |
|---|---|
| List Chat spaces |
| Get messages from space |
| Search messages |
| Send message to space |
| 工具 | 描述 |
|---|---|
| 列出Chat空间 |
| 获取空间中的消息 |
| 搜索消息 |
| 向空间发送消息 |
🔍 Custom Search
🔍 自定义搜索
| Tool | Description |
|---|---|
| Programmable Search Engine |
| Site-restricted search |
| Get search engine config |
| 工具 | 描述 |
|---|---|
| 可编程搜索引擎 |
| 站点限制搜索 |
| 获取搜索引擎配置 |
💬 Comments (All Doc Types)
💬 评论(所有文档类型)
| Tool | Description |
|---|---|
| Read doc comments |
| Add doc comment |
| Reply to comment |
| Resolve comment |
| Read sheet comments |
| Add sheet comment |
| Read slide comments |
| Add slide comment |
| 工具 | 描述 |
|---|---|
| 读取文档评论 |
| 添加文档评论 |
| 回复评论 |
| 标记评论为已解决 |
| 读取表格评论 |
| 添加表格评论 |
| 读取幻灯片评论 |
| 添加幻灯片评论 |
GF(3) Triadic Workflow
GF(3)三元工作流
MINUS (-1): Validation/Reading
├── search_gmail_messages
├── get_doc_content
├── read_sheet_values
└── list_drive_items
ERGODIC (0): Coordination/Metadata
├── get_spreadsheet_info
├── list_calendars
├── inspect_doc_structure
└── get_drive_file_permissions
PLUS (+1): Execution/Writing
├── send_gmail_message
├── create_event
├── modify_sheet_values
└── create_drive_fileMINUS (-1): 验证/读取
├── search_gmail_messages
├── get_doc_content
├── read_sheet_values
└── list_drive_items
ERGODIC (0): 协调/元数据
├── get_spreadsheet_info
├── list_calendars
├── inspect_doc_structure
└── get_drive_file_permissions
PLUS (+1): 执行/写入
├── send_gmail_message
├── create_event
├── modify_sheet_values
└── create_drive_fileCommon Workflows
常见工作流
Email Management
邮件管理
python
undefinedpython
undefinedSearch → Read → Reply
搜索 → 读取 → 回复
messages = search_gmail_messages(query="from:boss is:unread")
content = get_gmail_message_content(message_id=messages[0].id)
send_gmail_message(
to="boss@company.com",
subject="Re: " + content.subject,
body="Response...",
thread_id=content.thread_id,
in_reply_to=content.message_id
)
undefinedmessages = search_gmail_messages(query="from:boss is:unread")
content = get_gmail_message_content(message_id=messages[0].id)
send_gmail_message(
to="boss@company.com",
subject="Re: " + content.subject,
body="Response...",
thread_id=content.thread_id,
in_reply_to=content.message_id
)
undefinedDocument Creation
文档创建
python
undefinedpython
undefinedCreate → Inspect → Add Table
创建 → 检查 → 添加表格
doc = create_doc(title="Report")
structure = inspect_doc_structure(document_id=doc.id)
create_table_with_data(
document_id=doc.id,
index=structure.total_length,
table_data=[["Header1", "Header2"], ["Data1", "Data2"]]
)
undefineddoc = create_doc(title="Report")
structure = inspect_doc_structure(document_id=doc.id)
create_table_with_data(
document_id=doc.id,
index=structure.total_length,
table_data=[["Header1", "Header2"], ["Data1", "Data2"]]
)
undefinedCalendar Scheduling
日历日程安排
python
undefinedpython
undefinedCheck availability → Create event with Meet
查看可用时间 → 创建带Meet的事件
events = get_events(
time_min="2024-12-26T09:00:00Z",
time_max="2024-12-26T17:00:00Z"
)
create_event(
summary="Team Sync",
start_time="2024-12-26T14:00:00Z",
end_time="2024-12-26T15:00:00Z",
attendees=["team@company.com"],
add_google_meet=True
)
undefinedevents = get_events(
time_min="2024-12-26T09:00:00Z",
time_max="2024-12-26T17:00:00Z"
)
create_event(
summary="Team Sync",
start_time="2024-12-26T14:00:00Z",
end_time="2024-12-26T15:00:00Z",
attendees=["team@company.com"],
add_google_meet=True
)
undefinedFile Sharing
文件共享
python
undefinedpython
undefinedShare with expiration
带过期时间的共享
share_drive_file(
file_id="abc123",
share_with="contractor@example.com",
role="writer",
expiration_time="2025-01-15T00:00:00Z"
)
undefinedshare_drive_file(
file_id="abc123",
share_with="contractor@example.com",
role="writer",
expiration_time="2025-01-15T00:00:00Z"
)
undefinedAuthentication
认证
If tools fail with auth errors, use:
start_google_auth(service_name="gmail|drive|calendar|docs|sheets|slides|forms|tasks|chat")如果工具因认证错误失败,请使用:
start_google_auth(service_name="gmail|drive|calendar|docs|sheets|slides|forms|tasks|chat")Tips
提示
- Batch operations - Use batch tools for multiple items
- Table creation - Always call first to get safe index
inspect_doc_structure - Email threading - Include ,
thread_id,in_reply_tofor proper repliesreferences - Drive shared drives - Use parameter for shared drive operations
drive_id - Calendar attachments - Use Drive file URLs or IDs for event attachments
- 批量操作 - 对多个项目使用批量工具
- 表格创建 - 始终先调用以获取安全的插入索引
inspect_doc_structure - 邮件线程 - 包含、
thread_id、in_reply_to以确保回复正确关联线程references - Drive共享驱动器 - 对共享驱动器操作使用参数
drive_id - 日历附件 - 使用Drive文件链接或ID作为事件附件
Related Skills (Backlinks)
相关技能(反向链接)
| Skill | Trit | Integration |
|---|---|---|
| finder-color-walk | 0 | Drive files ↔ local Finder GF(3) coloring via |
| gay-mcp | +1 | SplitMix64 deterministic colors for file organization |
| triad-interleave | +1 | Schedule Drive operations in GF(3)-balanced triplets |
| bisimulation-game | -1 | Verify Drive state equivalence across agents |
| 技能 | Trit | 集成方式 |
|---|---|---|
| finder-color-walk | 0 | Drive文件 ↔ 本地Finder GF(3)着色,通过 |
| gay-mcp | +1 | SplitMix64确定性颜色用于文件组织 |
| triad-interleave | +1 | 按GF(3)平衡三元组安排Drive操作 |
| bisimulation-game | -1 | 跨Agent验证Drive状态等价性 |
Triadic Integration Pattern
三元集成模式
google-workspace (ERGODIC 0) ─── Coordinator
│
├── finder-color-walk (0) ─── File coloring bridge
│ └── drive_color_walk.py
│
├── gay-mcp (+1) ─── Color generation
│ └── SplitMix64 seeds → GF(3) trits
│
└── bisimulation-game (-1) ─── State verification
└── Attacker/Defender/Arbiter protocol
GF(3) Check: 0 + 0 + 1 + (-1) = 0 ✓google-workspace (ERGODIC 0) ─── 协调器
│
├── finder-color-walk (0) ─── 文件着色桥接
│ └── drive_color_walk.py
│
├── gay-mcp (+1) ─── 颜色生成
│ └── SplitMix64种子 → GF(3) trits
│
└── bisimulation-game (-1) ─── 状态验证
└── 攻击者/防御者/仲裁者协议
GF(3) 检查: 0 + 0 + 1 + (-1) = 0 ✓Invariant Set
不变量集合
| Invariant | Definition | Verification |
|---|---|---|
| Each item (message, event, file) resides in exactly one triadic queue | Queue intersection = ∅ |
| | For all items, routing is deterministic |
| Thread trit sum ≡ 0 (mod 3) at cycle close | |
| Any complete workflow has Σ trits = 0 | GF(3) conservation check |
| 不变量 | 定义 | 验证方式 |
|---|---|---|
| 每个项目(邮件、事件、文件)恰好属于一个三元队列 | 队列交集 = ∅ |
| | 所有项目的路由均为确定性 |
| 周期结束时线程trit总和 ≡ 0 (mod 3) | |
| 任何完整工作流的trit总和为0 | GF(3)守恒检查 |
Narya Compatibility
Narya兼容性
| Field | Definition | Example |
|---|---|---|
| Raw input from Google APIs | |
| Transformed interactions with GF(3) trits | |
| Change in triadic queue state | |
| Initial unprocessed state | Empty queues, no interactions |
| 1 if equivalence class changed, 0 otherwise | Used for ANIMA detection |
| 字段 | 定义 | 示例 |
|---|---|---|
| 来自Google API的原始输入 | |
| 带GF(3) trits的转换后交互数据 | |
| 三元队列状态的变化 | |
| 初始未处理状态 | 空队列,无交互 |
| 若等价类发生变化则为1,否则为0 | 用于ANIMA检测 |
Condensation Policy
压缩策略
Trigger: When 10 consecutive operations yield no change in equivalence classes.
python
def should_condense(history: List[State], threshold: int = 10) -> bool:
if len(history) < threshold:
return False
recent = history[-threshold:]
return all(equiv(s) == equiv(recent[0]) for s in recent)Action: Collapse queue state into condensed fingerprint, archive processed items.
触发条件:当连续10次操作未改变等价类时。
python
def should_condense(history: List[State], threshold: int = 10) -> bool:
if len(history) < threshold:
return False
recent = history[-threshold:]
return all(equiv(s) == equiv(recent[0]) for s in recent)操作:将队列状态压缩为指纹,归档已处理项目。
Scientific Skill Interleaving
科学技能交叉
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
本技能连接到K-Dense-AI/claude-scientific-skills生态系统:
Graph Theory
图论
- networkx [○] via bicomodule
- Universal graph hub
- networkx [○] 通过双余模
- 通用图枢纽
Bibliography References
参考文献
- : 734 citations in bib.duckdb
general
- : bib.duckdb中734次引用
general
SDF Interleaving
SDF交叉
This skill connects to Software Design for Flexibility (Hanson & Sussman, 2021):
本技能连接到Software Design for Flexibility(Hanson & Sussman, 2021):
Primary Chapter: 10. Adventure Game Example
核心章节:10. 冒险游戏示例
Concepts: autonomous agent, game, synthesis
概念:自主Agent、游戏、合成
GF(3) Balanced Triad
GF(3)平衡三元组
google-workspace (○) + SDF.Ch10 (+) + [balancer] (−) = 0Skill Trit: 0 (ERGODIC - coordination)
google-workspace (○) + SDF.Ch10 (+) + [balancer] (−) = 0技能Trit:0(ERGODIC - 协调)
Secondary Chapters
次要章节
- Ch7: Propagators
- Ch6: Layering
- Ch4: Pattern Matching
- Ch2: Domain-Specific Languages
- Ch1: Flexibility through Abstraction
- Ch7: 传播器
- Ch6: 分层
- Ch4: 模式匹配
- Ch2: 领域特定语言
- Ch1: 通过抽象实现灵活性
Connection Pattern
连接模式
Adventure games synthesize techniques. This skill integrates multiple patterns.
冒险游戏综合多种技术。本技能集成了多种模式。
Cat# Integration
Cat#集成
This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826本技能在装备结构中映射为Cat# = Comod(P),作为双余模:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826GF(3) Naturality
GF(3)自然性
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)This ensures compositional coherence in the Cat# equipment structure.
本技能参与满足以下条件的三元组:
(-1) + (0) + (+1) ≡ 0 (mod 3)这确保了Cat#装备结构中的组合一致性。