Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

google-docs

БесплатноБез исполняемых скриптовНе проверен

Manage Google Docs and Google Drive with full document operations and file management. Includes Markdown support for creating formatted documents with…

robtaylorот robtaylor★ 26 звёзд на GitHub

Об этом скилле

Google Docs & Drive Management Skill

Purpose

Manage Google Docs documents and Google Drive files with comprehensive operations:

Google Docs:

  • Read document content and structure
  • Insert and append text
  • Find and replace text
  • Basic text formatting (bold, italic, underline)
  • Insert page breaks
  • Create new documents
  • Delete content ranges
  • Get document structure (headings)
  • Insert inline images from URLs

Google Drive:

  • Upload files to Drive
  • Download files from Drive
  • Search and list files
  • Share files with users or publicly
  • Create folders
  • Move, copy, and delete files
  • Get file metadata

Integration: The drive_manager.rb script shares OAuth credentials with docs_manager.rb

📚 Additional Resources:

  • See references/integration-patterns.md for complete workflow examples
  • See references/troubleshooting.md for error handling and debugging
  • See references/cli-patterns.md for CLI interface design rationale

When to Use This Skill

Use this skill when:

  • User requests to read or view a Google Doc
  • User wants to create a new document
  • User wants to edit document content
  • User requests text formatting or modifications
  • User asks about document structure or headings
  • User wants to find and replace text
  • Keywords: "Google Doc", "document", "edit doc", "format text", "insert text"

📋 Discovering Your Documents: To list or search for documents, use drive_manager.rb:

# List recent documents
scripts/drive_manager.rb search \
  --query "mimeType='application/vnd.google-apps.document'" \
  --max-results 50

# Search by name
scripts/drive_manager.rb search \
  --query "name contains 'Report' and mimeType='application/vnd.google-apps.document'"

Core Workflows

1. Read Document

Read full document content:

scripts/docs_manager.rb read <document_id>

Get document structure (headings):

scripts/docs_manager.rb structure <document_id>

Output:

  • Full text content with paragraphs
  • Document metadata (title, revision ID)
  • Heading structure with levels and positions

2. Create Documents

Create new document (plain text):

echo '{
  "title": "Project Proposal",
  "content": "Initial plain text content..."
}' | scripts/docs_manager.rb create

Create document from Markdown (RECOMMENDED):

echo '{
  "title": "Project Proposal",
  "markdown": "# Project Proposal\n\n## Overview\n\nThis is **bold** and *italic* text.\n\n- Bullet point 1\n- Bullet point 2\n\n| Column 1 | Column 2 |\n|----------|----------|\n| Data 1   | Data 2   |"
}' | scripts/docs_manager.rb create-from-markdown

Supported Markdown Features:

  • Headings: #, ##, ### → Google Docs HEADING_1, HEADING_2, HEADING_3
  • Bold: **text**
  • Italic: *text*
  • Code: `text` → Courier New with grey background
  • Bullet lists: - item or * item
  • Numbered lists: 1. item
  • Checkboxes: - [ ] unchecked and - [x] checked
  • Horizontal rules: ---
  • Tables: | col1 | col2 | (with separator row)

Document ID:

  • Returned in response for future operations
  • Use with drive_manager.rb for sharing/organizing

3. Insert and Append Text

Insert plain text at specific position:

echo '{
  "document_id": "abc123",
  "text": "This text will be inserted at the beginning.\n\n",
  "index": 1
}' | scripts/docs_manager.rb insert

Insert formatted Markdown (RECOMMENDED):

echo '{
  "document_id": "abc123",
  "markdown": "## New Section\n\nThis has **bold** and *italic* formatting.\n\n- Item 1\n- Item 2",
  "index": 1
}' | scripts/docs_manager.rb insert-from-markdown

Append text to end of document:

echo '{
  "document_id": "abc123",
  "text": "\n\nThis text will be appended to the end."
}' | scripts/docs_manager.rb append

Index Positions:

  • Document starts at index 1
  • Use read command to see current content
  • Use structure command to find heading positions
  • End of document: use append instead of calculating index
  • For insert-from-markdown, omit index to append at end

4. Find and Replace

Simple find and replace:

echo '{
  "document_id": "abc123",
  "find": "old text",
  "replace": "new text"
}' | scripts/docs_manager.rb replace

Case-sensitive replacement:

echo '{
  "document_id": "abc123",
  "find": "IMPORTANT",
  "replace": "CRITICAL",
  "match_case": true
}' | scripts/docs_manager.rb replace

Replace all occurrences:

  • Automatically replaces all matches
  • Returns count of replacements made
  • Use for bulk text updates

5. Text Formatting

Format text range (bold):

echo '{
  "document_id": "abc123",
  "start_index": 1,
  "end_index": 20,
  "bold": true
}' | scri
Полный SKILL.md на GitHub

Установить google-docs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash(scripts/docs_manager.rb:*)
Bash(scripts/drive_manager.rb:*)

Вложенные файлы

LICENSEREADME.md

FAQ

Что делает скилл google-docs?

Manage Google Docs and Google Drive with full document operations and file management. Includes Markdown support for creating formatted documents with headings, bold, italic, lists, tables, and checkboxes. Also supports Drive operations (upload, download, share, search).

Как установить скилл google-docs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл google-docs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить google-docs с