google-docs-integration

Read, create, write, search, and share Google Docs and Drive files via API scripts.

656|82|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/incidentfox/incidentfox --skill google-docs-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-docs-integration
Source: https://github.com/incidentfox/incidentfox/tree/main/sre-agent/.claude/skills/docs-google
Command: npx skills add https://github.com/incidentfox/incidentfox --skill google-docs-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, google-api-python-client, google-auth, and includes scripts (resource) components.

What problem does it solve?

Incident responders and teams often need to pull information from Google Docs, search Drive for runbooks or postmortems, and generate shareable documents without leaving their AI-assisted workflow. This Skill provides script-based access to the Google Docs and Drive APIs so documents can be read, created, written, searched, and shared programmatically.

Core Features & Use Cases

  • Document Reading & Search: Read full text content from any Google Doc by ID and search Drive by name or MIME type to locate incident reports, runbooks, or postmortems.
  • Document Creation & Writing: Create new Google Docs and write content with automatic markdown heading conversion (H1-H3), supporting append or replace modes.
  • Sharing & Folder Management: Share documents with specific users or anyone with a link, and list folder contents to organize outputs.
  • Use Case: After an incident investigation, create a postmortem document, write the root cause analysis with formatted headings, and share it with the on-call team — all from a single conversation.

Quick Start

Ask the assistant to search Google Drive for recent incident reports and then create a new postmortem document summarizing the findings.

Frequently Asked Questions about google-docs-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read a Google Doc programmatically with Python?

Run the read_document.py script with the --document-id flag to fetch a document's title and full text content via the Google Docs API. It supports both a proxy mode with injected credentials and direct mode using a service account.

How to search Google Drive files from a script?

Use search_drive.py with a --query argument to find files by name, optionally filtering by MIME type such as application/vnd.google-apps.document. Results include file IDs, names, URLs, and modification times.

What credentials are needed for Google Docs API access?

In proxy mode, credentials are injected automatically via tenant headers or a sandbox JWT. In direct mode, set GOOGLE_SERVICE_ACCOUNT_KEY or GOOGLE_CREDENTIALS_FILE with a service account, and install google-api-python-client and google-auth.

Can I write markdown-formatted content to a Google Doc?

Yes, write_content.py accepts markdown content and converts #, ##, and ### headings into Google Docs HEADING_1, HEADING_2, and HEADING_3 paragraph styles. Use --replace to overwrite existing content or omit it to append.

How do I share a Google Doc with specific users or publicly?

Run share_document.py with --document-id and either --email for a specific user or --anyone for link sharing. Set --role to reader, writer, or commenter to control permission levels.