Communitygithub.com

ComeOnOliver/skillshub

使用 `gog` 管理 Gmail/日历/云端硬盘/联系人/表格/文档。需要 OAuth 配置。

skillshub 是什么?

这是一个 AI Agent 技能(Skill),用于通过命令行工具 `gog` 访问 Google Workspace 的核心 API。它支持 Gmail、Google 日历、Google 云端硬盘、Google 联系人、Google 表格和 Google 文档等多项服务。该技能要求用户首先通过 OAuth 2.0 进行一次性认证,以获取访问凭据。对于开发者而言,该技能非常实用,可以将 Google 服务集成到自动化工作流或 AI Agent(例如 Claude Code、Cursor、Codex)中,实现诸如搜索邮件、创建日历事件、读取云端硬盘文件、更新电子表格等常见操作。技能文档中详细列出了各种命令的用法,并提供了针对邮件格式化、日历颜色、表格数据操作等高级场景的说明。通过此技能,AI Agent 能够以自然语言指令驱动 Google 服务,极大提升办公效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/elizaOS/eliza/gog

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

gog

使用 gog 管理 Gmail/日历/云端硬盘/联系人/表格/文档。需要 OAuth 配置。

一次性设置

  • gog auth credentials /path/to/client_secret.json
  • gog auth add [email protected] --services gmail,calendar,drive,contacts,docs,sheets
  • gog auth list

常用命令

  • Gmail 搜索:gog gmail search 'newer_than:7d' --max 10
  • Gmail 邮件搜索(按邮箱逐封返回,忽略线程):gog gmail messages search "in:inbox from:ryanair.com" --max 20 --account [email protected]
  • Gmail 发送(纯文本):gog gmail send --to [email protected] --subject "Hi" --body "Hello"
  • Gmail 发送(多行):gog gmail send --to [email protected] --subject "Hi" --body-file ./message.txt
  • Gmail 发送(从标准输入):gog gmail send --to [email protected] --subject "Hi" --body-file -
  • Gmail 发送(HTML):gog gmail send --to [email protected] --subject "Hi" --body-html "<p>Hello</p>"
  • Gmail 草稿:gog gmail drafts create --to [email protected] --subject "Hi" --body-file ./message.txt
  • Gmail 发送草稿:gog gmail drafts send <draftId>
  • Gmail 回复:gog gmail send --to [email protected] --subject "Re: Hi" --body "Reply" --reply-to-message-id <msgId>
  • 日历列出事件:gog calendar events <calendarId> --from <iso> --to <iso>
  • 日历创建事件:gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso>
  • 日历创建事件(带颜色):gog calendar create <calendarId> --summary "Title" --from <iso> --to <iso> --event-color 7
  • 日历更新事件:gog calendar update <calendarId> <eventId> --summary "New Title" --event-color 4
  • 日历显示颜色:gog calendar colors
  • 云端硬盘搜索:gog drive search "query" --max 10
  • 联系人:gog contacts list --max 20
  • 表格读取:gog sheets get <sheetId> "Tab!A1:D10" --json
  • 表格更新:gog sheets update <sheetId> "Tab!A1:B2" --values-json '[['"A"','"B"'],['"1"','"2"']]' --input USER_ENTERED
  • 表格追加:gog sheets append <sheetId> "Tab!A:C" --values-json '[['"x"','"y"','"z"']]' --insert INSERT_ROWS
  • 表格清空:gog sheets clear <sheetId> "Tab!A2:Z"
  • 表格元数据:gog sheets metadata <sheetId> --json
  • 文档导出:gog docs export <docId> --format txt --out /tmp/doc.txt
  • 文档查看:gog docs cat <docId>

日历颜色

  • 使用 gog calendar colors 查看所有可用的事件颜色(ID 1-11)
  • 使用 --event-color <id> 标志为事件添加颜色
  • 事件颜色 ID(来自 gog calendar colors 输出):
    • 1: #a4bdfc
    • 2: #7ae7bf
    • 3: #dbadff
    • 4: #ff887c
    • 5: #fbd75b
    • 6: #ffb878
    • 7: #46d6db
    • 8: #e1e1e1
    • 9: #5484ed
    • 10: #51b749
    • 11: #dc2127

邮件格式

  • 优先使用纯文本。对于多段落的邮件,使用 --body-file(或 --body-file - 从标准输入读取)。

  • 草稿和回复同样支持 --body-file 模式。

  • --body 不会转义 \n。如果你需要内联换行,请使用 heredoc 或 $'Line 1\n\nLine 2'。

  • 仅在需要富文本格式时使用 --body-html。

  • HTML 标签:<p> 用于段落,<br> 用于换行,<strong> 用于加粗,<em> 用于斜体,<a href="url"> 用于链接,<ul>/<li> 用于列表。

  • 示例(通过标准输入的纯文本):

    gog gmail send --to [email protected] \
      --subject "Meeting Follow-up" \
      --body-file - <<'EOF'
    Hi Name,
    
    Thanks for meeting today. Next steps:
    - Item one
    - Item two
    
    Best regards,
    Your Name
    EOF
    
  • 示例(HTML 列表):

    gog gmail send --to [email protected] \
      --subject "Meeting Follow-up" \
      --body-html "<p>Hi Name,</p><p>Thanks for meeting today. Here are the next steps:</p><ul><li>Item one</li><li>Item two</li></ul><p>Best regards,<br>Your Name</p>"
    

注意事项

  • 设置 [email protected] 可以避免重复使用 --account 参数。
  • 编写脚本时,建议使用 --json 加上 --no-input。
  • 表格的值可以通过 --values-json(推荐)或内联行传递。
  • 文档支持导出/查看/复制。原地编辑需要 Docs API 客户端(本工具不支持)。
  • 发送邮件或创建事件前请确认。
  • gog gmail search 按线程返回一行;使用 gog gmail messages search 可以独立返回每封邮件。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能