From google-workspace-cli
Use this skill when the user asks about creating, reading, or editing Google Docs via the Google Workspace CLI. Trigger on tasks involving document content, formatting, or collaboration on Google Docs.
npx claudepluginhub nsheaps/ai-mktpl --plugin google-workspace-cliThis skill uses the workspace's default tool permissions.
Use `gws docs` to create and manage Google Docs from the command line.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Use gws docs to create and manage Google Docs from the command line.
# Create a new document
gws docs create --title "Meeting Notes"
# Create with initial content
gws docs create --title "Project Plan" --body "Initial project outline"
# Get document content
gws docs get <document-id>
# Get as JSON
gws docs get <document-id> --format json
# Get document metadata
gws docs get <document-id> --metadata
# Append text to a document
gws docs update <document-id> --append "New section content"
# Insert text at a specific index
gws docs update <document-id> --insert "Header text" --index 1
The Docs API supports batch updates for complex document modifications:
# Apply batch updates via JSON
gws docs batchUpdate <document-id> --requests '[
{
"insertText": {
"location": {"index": 1},
"text": "New Title\n"
}
},
{
"updateTextStyle": {
"range": {"startIndex": 1, "endIndex": 10},
"textStyle": {"bold": true},
"fields": "bold"
}
}
]'
# Export via Drive API as PDF
gws drive files export <document-id> --mime-type "application/pdf" --output ./doc.pdf
# Export as plain text
gws drive files export <document-id> --mime-type "text/plain" --output ./doc.txt
# Export as DOCX
gws drive files export <document-id> --mime-type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" --output ./doc.docx
Google Docs uses a structured model with:
Use --format json to inspect document structure:
gws docs get <document-id> --format json | jq '.body.content'
docs.google.com/document/d/<DOCUMENT_ID>/editgws drive files list to find documents by namegws drive for file management (move, share, delete)