gws-best-practices

Applies best practices for gws CLI operations across Google Drive, Docs, Sheets, and Slides.

1|Updated Jul 17, 2026
One-click install
npx skills add https://github.com/waiyanphyo999/telegram-bot-deploy --skill gws-best-practices-waiyanphyo999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-best-practices
Source: https://github.com/waiyanphyo999/telegram-bot-deploy/tree/main/skills/gws-best-practices
Command: npx skills add https://github.com/waiyanphyo999/telegram-bot-deploy --skill gws-best-practices-waiyanphyo999

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx.

What problem does it solve? It prevents common errors and data loss when using the gws CLI with Google Workspace services by enforcing correct workflows, supported service boundaries, and safe operation rules. ## Core Features & Use Cases - Supported Service Boundaries: Restricts operations to Drive, Docs, Sheets, and Slides, blocking unsupported services like Gmail or Calendar. - Google Docs Creation Workflow: Generates .docx files locally with python-docx and uploads them via gws drive files create for automatic conversion to Google Docs. - Slides Text Formatting Rules: Explains the difference between \n (new paragraph) and \v (soft line break) when inserting text via the Slides API. - Use Case: When asked to create a formatted Google Doc, generate it locally with python-docx, upload it with gws drive files create, and return the shareable document link. ## Quick Start Use the gws CLI to create a Google Doc by generating a .docx file with python-docx and uploading it with gws drive files create.

Frequently Asked Questions about gws-best-practices

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

FAQPage Schema
How do I create a Google Doc with the gws CLI?

Generate a .docx file locally using the python-docx library, then upload it with gws drive files create while setting mimeType to application/vnd.google-apps.document. This triggers automatic conversion to Google Docs format and returns a file ID for the document link.

Which Google Workspace services does the gws CLI support?

The gws CLI supports Drive, Docs, Sheets, and Slides only. Services like Gmail, Calendar, Tasks, and Chat are not available and should not be attempted.

What is the difference between \n and \v in Google Slides text?

In the Slides API, \n creates a new paragraph like pressing Enter, while \v (vertical tab) creates a soft line break within the same paragraph like Shift+Enter. Use \n for separate bullet points and \v for multi-line text in one block.

Can I open Google Drive links in a browser instead of gws?

No, the browser environment may not be logged into the correct Google account and will likely fail. Use gws commands such as gws drive export or get commands to view and interact with Drive, Docs, Sheets, and Slides content.

How do I edit an existing Google Doc without losing comments?

Use gws docs documents batchUpdate to edit the document in place. This is the only method that preserves comments, suggestions, and other Google-specific features; re-uploading a converted file would lose them.

Can the gws CLI permanently delete files?

Permanent deletion is strictly prohibited by these guidelines. Always use trash or archive operations instead, and confirm explicitly with the user before any destructive action, since permanent deletion is irreversible.