gws-best-practices

Enforces safe workflows for the gws CLI across Google Drive, Docs, Sheets, and Slides.

Updated Sep 16, 2026
One-click install
npx skills add https://github.com/Military-Veteran-Team-LPT-Realty/mvt-manus-public-skills --skill gws-best-practices-military-veteran-team-lpt-realty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-best-practices
Source: https://github.com/Military-Veteran-Team-LPT-Realty/mvt-manus-public-skills/tree/main/skills/gws-best-practices
Command: npx skills add https://github.com/Military-Veteran-Team-LPT-Realty/mvt-manus-public-skills --skill gws-best-practices-military-veteran-team-lpt-realty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx.

What problem does it solve? Prevents common errors and data loss when using the gws CLI with Google Workspace services by enforcing correct workflows for document creation, formatting, and file operations. ## Core Features & Use Cases - Google Docs Creation Workflow: Mandates generating .docx files locally with python-docx and uploading via gws drive files create for automatic conversion, preserving formatting. - In-Place Document Editing: Uses gws docs documents batchUpdate to modify existing Google Docs while preserving comments and suggestions. - Slides Text Formatting Rules: Clarifies the difference between \n (new paragraph) and \v (soft line break) when inserting text via the Slides API. - Data Safety Guardrails: Prohibits permanent deletion commands and browser-based access to Drive links, requiring trash operations and CLI-based interaction instead. - Use Case: When asked to create a formatted Google Doc, generate it locally with python-docx, upload it with the correct MIME type for conversion, and return the shareable document link. ## Quick Start Use the gws CLI to create a Google Doc from a locally generated docx file and upload it to Drive following best practices.

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 using the gws CLI?

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

How to 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 that would be lost by re-uploading a converted file.

Which Google Workspace services does the gws CLI support?

Only Drive, Docs, Sheets, and Slides are available and pre-configured. 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?

The Slides API converts \n into a new paragraph marker, creating separate paragraphs or bullet points. The \v vertical tab creates a soft line break within a single paragraph, like pressing Shift+Enter.

Can I permanently delete files with the gws CLI?

No, permanent deletion is strictly prohibited because it is irreversible and risks catastrophic data loss. Always use trash or archive operations instead, and confirm explicitly with the user before any deletion.

Why should I avoid opening Google Drive links in a browser?

The browser environment may not be logged into the correct Google account and will likely fail to access the file. Use gws commands like gws drive export to view and interact with Drive content instead.