Логотип Google Workspace

Google Workspace

Организация
opendatahub-io
google-workspace

Получайте данные из Google Workspace и выполняйте запросы к ним с помощью CLI gws: Gmail, Calendar, Docs, Sheets, Slides и Drive. Используйте этот навык, когда пользователь упоминает электронную почту, входящие, сообщения, календарь, встречи, расписание, повестку дня, Google Docs, таблицы, презентации или файлы Drive. Навык также срабатывает на фразы вроде «проверь мою почту», «какие у меня встречи», «прочитай этот документ», «открой эту таблицу», «найди файлы в Drive» и на любые URL Google (docs.google.com, drive.google.com).

Обзор

Издательopendatahub-io
Репозиторийai-helpers
Название навыкаgoogle-workspace
Звёзды
39
Форки
76
Файлы в комплекте
1
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 1

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — opendatahub-io. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Google Workspace в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-google-workspace/skills/google-workspace
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-google-workspace/skills/google-workspace .claude/skills/google-workspace
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Google Workspace в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Google Workspace, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Google Workspace не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Google Workspace

Access Google Workspace data via the gws CLI. Fetches content and presents it as markdown context inside the current session.

Prerequisites

  • gws binary must be on $PATH
  • Authenticated: run gws auth login if not already logged in

If gws is not installed, not on PATH, or authentication fails with a 401/403, read references/setup.md for the full first-time setup walkthrough.

Command Patterns

gws has two ways to call any service:

  1. Shortcut commands (prefixed with +) — concise, opinionated, cover common tasks. Prefer these when they fit.
  2. Raw API calls — full access to any Google API method via gws <service> <resource> <method> --params '<JSON>'. Use when shortcuts don't expose the parameter you need.

Try the shortcut first. Fall back to the raw API when you need filters, field selection, pagination control, or parameters the shortcut doesn't expose.

Extracting IDs from Google URLs

Many requests include a Google URL. Extract the document ID before calling gws:

ServiceURL patternID location
Docsdocs.google.com/document/d/<ID>/...between /d/ and next /
Sheetsdocs.google.com/spreadsheets/d/<ID>/...between /d/ and next /
Slidesdocs.google.com/presentation/d/<ID>/...between /d/ and next /
Drive filedrive.google.com/file/d/<ID>/...between /d/ and next /
Drive folderdrive.google.com/drive/folders/<ID>after /folders/

Extract the ID with sed (works on both macOS and Linux):

bash
URL="https://docs.google.com/document/d/1aBcDeFgHiJkLmNoPqRsTuVwXyZ/edit"
DOC_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')

Shell Tips

  • zsh ! expansion: Sheet ranges like Sheet1!A1 trigger history expansion in zsh. Use double quotes: --range "Sheet1!A1:D10"
  • JSON flags: Wrap --params and --json in single quotes so the shell preserves inner double quotes: --params '{"pageSize": 5}'

Gmail

Triage unread messages

bash
gws gmail +triage
gws gmail +triage --max 10
gws gmail +triage --labels

List messages matching a query

Gmail search syntax works with --query. Common patterns:

bash
# Messages in a label
gws gmail +triage --query 'label:my-label' --max 5

# Messages from a sender
gws gmail +triage --query 'from:alice@example.com' --max 10

# Unread messages in a label
gws gmail +triage --query 'label:updates is:unread'

# Recent messages with a subject keyword
gws gmail +triage --query 'subject:quarterly-report newer_than:7d'

Read a specific message

+triage output includes message IDs. Use the ID to fetch the full body:

bash
gws gmail +read --id <MESSAGE_ID>
gws gmail +read --id <MESSAGE_ID> --headers

Typical workflow: "show me the latest email in label X"

bash
# Step 1: find the message
gws gmail +triage --query 'label:X' --max 1 --format json

# Step 2: extract the ID from the JSON output, then read it
gws gmail +read --id <ID> --headers

Search with the raw API

For queries that need parameters beyond what +triage exposes:

bash
gws gmail users messages list --params '{"q": "has:attachment larger:5M", "maxResults": 5}'

Calendar

View upcoming events

bash
gws calendar +agenda                          # next few upcoming events
gws calendar +agenda --today                  # today only
gws calendar +agenda --tomorrow               # tomorrow only
gws calendar +agenda --week                   # this week
gws calendar +agenda --days 3                 # next 3 days
gws calendar +agenda --calendar 'Work'        # specific calendar
gws calendar +agenda --today --format table   # table output

Time-aware commands like +agenda automatically use your Google account timezone. Override with --timezone America/New_York.

List events via the API (custom time range or filters)

bash
# Events in the next 7 days on a specific calendar
gws calendar events list \
  --params '{"calendarId": "primary", "timeMin": "2026-04-24T00:00:00Z", "timeMax": "2026-05-01T00:00:00Z", "singleEvents": true, "orderBy": "startTime"}'

Typical workflow: "show my last N calendar entries titled X"

bash
# Use +agenda with a calendar filter, then grep or parse for matching titles
gws calendar +agenda --days 30 --calendar 'Work' --format json

Filter the JSON output for events matching the requested title.

Google Docs

Read a document

bash
# By document ID (extracted from URL)
gws docs documents get --params '{"documentId": "<DOC_ID>"}'

The response is the full document JSON (structure, text runs, styles). To extract plain text for context, pipe through jq:

bash
gws docs documents get --params '{"documentId": "<DOC_ID>"}' \
  | jq -r '[.. | .textRun? // empty | .content] | join("")'

Typical workflow: "read this Google Doc" (user provides URL)

bash
DOC_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
gws docs documents get --params "{\"documentId\": \"$DOC_ID\"}" \
  | jq -r '[.. | .textRun? // empty | .content] | join("")'

Google Sheets

Read cell values

bash
gws sheets +read --spreadsheet <SPREADSHEET_ID> --range "Sheet1!A1:D10"
gws sheets +read --spreadsheet <SPREADSHEET_ID> --range Sheet1

Read via the API (for advanced options)

bash
gws sheets spreadsheets values get \
  --params '{"spreadsheetId": "<ID>", "range": "Sheet1!A1:Z100"}'

Resolving a sheet tab from a URL with gid=

Users often share URLs like ...edit?gid=1937078361. The gid is a numeric tab ID, not a tab name. Resolve it before reading:

bash
SHEET_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
GID=$(echo "$URL" | sed -E 's|.*gid=([0-9]+).*|\1|')

# Get all tab names and their IDs
gws sheets spreadsheets get \
  --params "{\"spreadsheetId\": \"$SHEET_ID\", \"fields\": \"sheets.properties\"}" \
  | jq -r ".sheets[] | select(.properties.sheetId == $GID) | .properties.title"

Then use the resolved tab name in the +read command.

Typical workflow: "read this spreadsheet" (user provides URL)

bash
SHEET_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
# If the URL has a gid= parameter, resolve the tab name first (see above)
gws sheets +read --spreadsheet "$SHEET_ID" --range Sheet1

Google Slides

Read a presentation

bash
gws slides presentations get --params '{"presentationId": "<PRES_ID>"}'

Extract text from all slides. The Slides API stores text inside pageElements[].shape.textContent.textElements[].textRun.content:

bash
gws slides presentations get --params '{"presentationId": "<PRES_ID>"}' \
  | jq -r '.slides[] | [.pageElements[]? | .shape?.textContent?.textElements[]? | .textRun?.content? // empty] | join("")'

Typical workflow: "read this presentation" (user provides URL)

bash
PRES_ID=$(echo "$URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
gws slides presentations get --params "{\"presentationId\": \"$PRES_ID\"}" \
  | jq -r '.slides[] | [.pageElements[]? | .shape?.textContent?.textElements[]? | .textRun?.content? // empty] | join("")'

Google Drive

List recent files

bash
# 5 most recently created files
gws drive files list \
  --params '{"pageSize": 5, "orderBy": "createdTime desc", "fields": "files(id,name,mimeType,createdTime,webViewLink)"}'

# 5 most recently modified files
gws drive files list \
  --params '{"pageSize": 5, "orderBy": "modifiedTime desc", "fields": "files(id,name,mimeType,modifiedTime,webViewLink)"}'

Search for files

bash
# Files by name
gws drive files list \
  --params '{"q": "name contains '\''report'\''", "pageSize": 10, "fields": "files(id,name,mimeType,webViewLink)"}'

# Files in a specific folder
gws drive files list \
  --params '{"q": "'\''<FOLDER_ID>'\'' in parents", "pageSize": 10, "fields": "files(id,name,mimeType,webViewLink)"}'

# Only Google Docs
gws drive files list \
  --params '{"q": "mimeType='\''application/vnd.google-apps.document'\''", "pageSize": 5, "fields": "files(id,name,webViewLink)"}'

# Exclude trashed files (recommended default)
gws drive files list \
  --params '{"q": "trashed=false", "pageSize": 10, "orderBy": "modifiedTime desc", "fields": "files(id,name,mimeType,modifiedTime,webViewLink)"}'

Get file metadata

bash
gws drive files get \
  --params '{"fileId": "<FILE_ID>", "fields": "id,name,mimeType,size,createdTime,modifiedTime,webViewLink,owners"}'

Export a Google Workspace file as plain text or PDF

bash
# Export a Doc as plain text
gws drive files export \
  --params '{"fileId": "<FILE_ID>", "mimeType": "text/plain"}' \
  -o output.txt

# Export a Sheet as CSV
gws drive files export \
  --params '{"fileId": "<FILE_ID>", "mimeType": "text/csv"}' \
  -o output.csv

# Export Slides as PDF
gws drive files export \
  --params '{"fileId": "<FILE_ID>", "mimeType": "application/pdf"}' \
  -o output.pdf

List files in a folder (from URL)

bash
FOLDER_ID=$(echo "$URL" | sed -E 's|.*folders/([A-Za-z0-9_-]+).*|\1|')
gws drive files list \
  --params "{\"q\": \"'$FOLDER_ID' in parents and trashed=false\", \"pageSize\": 20, \"fields\": \"files(id,name,mimeType,modifiedTime,webViewLink)\"}"

Cross-Service Workflows

Users often ask questions that span multiple services. Chain commands together:

"Find the spreadsheet linked in my last email from Alice"

bash
# 1. Find the email
gws gmail +triage --query 'from:alice@example.com' --max 1 --format json
# 2. Read it and look for a Google Sheets URL in the body
gws gmail +read --id <MESSAGE_ID>
# 3. Extract the spreadsheet ID from the URL and read it
SHEET_ID=$(echo "$SHEET_URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
gws sheets +read --spreadsheet "$SHEET_ID" --range Sheet1

"Prep me for my next meeting"

bash
# 1. Get the next event
gws calendar +agenda --days 1 --format json
# 2. If the event description has a Google Doc link, read it
DOC_ID=$(echo "$DOC_URL" | sed -E 's|.*/d/([A-Za-z0-9_-]+).*|\1|')
gws docs documents get --params "{\"documentId\": \"$DOC_ID\"}" \
  | jq -r '[.. | .textRun? // empty | .content] | join("")'

Built-in workflow shortcuts

gws has built-in workflow commands for common multi-service tasks:

bash
gws workflow +standup-report    # today's meetings + open tasks
gws workflow +meeting-prep      # next meeting: agenda, attendees, docs
gws workflow +weekly-digest     # weekly summary: meetings + unread count

Presenting Results

After fetching data, present it as clean markdown:

  • Email: show From, Subject, Date as headers, body as quoted text
  • Calendar: show a table with Time, Title, Location columns
  • Docs/Slides: show extracted text content, noting any formatting lost
  • Sheets: show data as a markdown table
  • Drive: show a table with Name, Type, Modified, Link columns

Always tell the user what was fetched and from where, so they can verify the source.

Error Handling

  • Not authenticated: tell the user to run gws auth login
  • Permission denied: the user may not have access to the resource
  • Invalid ID: double-check the URL parsing extracted the correct ID
  • Empty results: report that no results matched the query
  • gws not found: tell the user to install gws and ensure it is on PATH

Discovering More Commands

bash
gws --help                                    # top-level help
gws <service> --help                          # browse resources
gws schema <service>.<resource>.<method>      # inspect method parameters

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Google Workspace?

Получайте данные из Google Workspace и выполняйте запросы к ним с помощью CLI gws: Gmail, Calendar, Docs, Sheets, Slides и Drive. Используйте этот навык, когда пользователь упоминает электронную почту, входящие, сообщения, календарь, встречи, расписание, повестку дня, Google Docs, таблицы, презентации или файлы Drive. Навык также срабатывает на фразы вроде «проверь мою почту», «какие у меня встречи», «прочитай этот документ», «открой эту таблицу», «найди файлы в Drive» и на любые URL Google (docs.google.com, drive.google.com).

Зачем использовать Google Workspace в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Google Workspace — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Google Workspace в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-google-workspace/skills/google-workspace. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Google Workspace?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Google Workspace?

С любым количеством. В TypingMind вы можете использовать Google Workspace с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Google Workspace?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — opendatahub-io. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇