google-docs-integration

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

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill google-docs-integration-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-docs-integration
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/docs-google
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill google-docs-integration-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing Google Docs and Drive files manually during incident response or documentation workflows is slow and error-prone. This Skill lets an AI agent programmatically read documents, search Drive, create new docs, write markdown-formatted content, and manage sharing permissions without leaving the conversation. ## Core Features & Use Cases - Document Reading & Search: Read full text from any Google Doc by ID and search Drive by name or MIME type to locate incident reports and postmortems. - Document Creation & Writing: Create new Google Docs in specific folders and write content with automatic markdown heading conversion (H1/H2/H3 styles). - Sharing & Permissions: Share documents with specific users by email or with anyone via link, with reader, writer, or commenter roles. - Use Case: After resolving an incident, ask the agent to create a postmortem document in the team's Drive folder, write the structured report with headings, and share it with stakeholders as commenters. ## Quick Start Use the google docs skill to create a document titled "Incident Postmortem" and write a summary of today's outage with markdown headings.

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. It extracts text from paragraph elements via the Google Docs API and supports JSON output for downstream processing.

How to search Google Drive files from the command line?

Use search_drive.py with a --query flag 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 timestamps.

Does writing to Google Docs support markdown formatting?

Yes, write_content.py converts markdown headings (#, ##, ###) into Google Docs HEADING_1, HEADING_2, and HEADING_3 paragraph styles. It supports appending content or replacing the entire document body with the --replace flag.

What credentials are needed for the Google Docs API?

In direct mode, set GOOGLE_SERVICE_ACCOUNT_KEY or GOOGLE_CREDENTIALS_FILE with a service account. In proxy mode, credentials are injected automatically via GOOGLE_DOCS_BASE_URL and GOOGLE_DRIVE_BASE_URL environment variables.

Why does document creation fail with a credentials error?

The error occurs when neither GOOGLE_SERVICE_ACCOUNT_KEY nor GOOGLE_CREDENTIALS_FILE is set in direct mode. Verify the environment variables are configured, or switch to proxy mode where authentication is handled by the proxy layer.