Claude Code skill for Google Docs and Drive management
git clone https://github.com/robtaylor/google-docs-skill.gitClaude Code skill for Google Docs and Drive management
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