A Claude Code skill that enables reading, creating, and managing Google Docs and Drive files, including Markdown import, table operations, and OAuth-based file sharing.
git clone https://github.com/robtaylor/google-docs-skill.gitThe google-docs-skill gives Claude Code agents direct access to Google Docs and Google Drive through OAuth authentication. It supports reading and creating documents, inserting and appending content, replacing text, applying formatting, and adding page breaks. A Markdown-to-Docs pipeline lets agents convert headings, bold, italic, code, bullet lists, numbered lists, checkboxes, tables, and horizontal rules into properly styled Google Docs elements. Drive operations include uploading, downloading, searching, sharing, listing, moving, and exporting files. Developers and teams automating document workflows—reports, meeting notes, project trackers—can use this skill to connect AI-generated content directly to their Google Workspace.
The skill uses shared OAuth token management compatible with other Google skills, so authentication is configured once and reused. Install it into your Claude Code environment, authorize Google Docs and Drive API scopes, and invoke commands such as create-from-markdown, insert-table, or drive upload via the skill interface. Example scripts are included in the repository's examples directory.
Convert a Markdown report into a formatted Google Doc with headings and tables
Automatically append AI-generated summaries to an existing Google Doc
Upload local files to Google Drive and set sharing permissions
Search Google Drive for specific files and export them in alternate formats
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/robtaylor/google-docs-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to automate a task in Google Docs and Drive. Here's what I want to do: [DESCRIBE_TASK]. Can you generate the necessary Google Apps Script code to accomplish this? I want to [SPECIFIC_OUTCOME]. Please provide the complete script and explain how to implement it.
# Google Apps Script for Automating Document Formatting
Here's a script that will automatically format new Google Docs based on your specifications:
```javascript
function onOpen(e) {
var doc = DocumentApp.getActiveDocument();
var body = doc.getBody();
body.setAttributes({ 'fontFamily': 'Arial', 'fontSize': 11 });
body.setAttributes({ 'pageWidth': 8.5, 'pageHeight': 11 });
body.setAttributes({ 'marginTop': 0.5, 'marginBottom': 0.5, 'marginLeft': 0.5, 'marginRight': 0.5 });
}
function createFormattedDoc() {
var folder = DriveApp.getFolderById('YOUR_FOLDER_ID');
var doc = DocumentApp.create('Formatted Document');
var body = doc.getBody();
body.appendParagraph('This document was automatically formatted').setHeading(DocumentApp.ParagraphHeading.HEADING1);
folder.addFile(doc.getAs('application/vnd.google-apps.document'));
DriveApp.getRoot().removeFile(doc.getAs('application/vnd.google-apps.document'));
}
```
## How to Implement This Script
1. Open your Google Drive and create a new folder for formatted documents
2. Open Google Apps Script from your Google Drive (New > More > Google Apps Script)
3. Paste the code above into the script editor
4. Replace 'YOUR_FOLDER_ID' with the actual ID of your folder
5. Save the script and give it a name
6. To run the script, click the play button in the toolbar
This script will create a new document with your specified formatting and move it to your designated folder.Create and collaborate on interactive animations with powerful, user-friendly tools.
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan