gws-best-practices

Guides safe gws CLI operations for Google Drive, Docs, Sheets, and Slides.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill gws-best-practices-anderhonorato
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-best-practices
Source: https://github.com/AnderHonorato/Mem-rias-IA---Infinity/tree/main/Manus/Skills/gws-best-practices
Command: npx skills add https://github.com/AnderHonorato/Mem-rias-IA---Infinity --skill gws-best-practices-anderhonorato

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx.

What problem does it solve? Working with the gws CLI for Google Workspace can lead to errors like broken document formatting, failed Drive link access, or irreversible data deletion. This Skill provides the operational rules that prevent these mistakes. ## Core Features & Use Cases - Google Docs Creation Workflow: Generate documents locally with python-docx, then upload via gws drive files create with automatic conversion to Google Docs format. - Correct Text Formatting in Slides: Explains when to use \n (new paragraph) versus \v (soft line break) in gws slides presentations batchUpdate calls. - Data Safety Guardrails: Prohibits permanent deletion commands, requiring trash/archive operations instead, and directs all Drive link access through gws commands rather than a browser. - Use Case: When asked to create a formatted Google Doc with headings and tables, follow the python-docx generation and upload workflow to produce a properly converted document with a shareable link. ## Quick Start Use the gws best practices skill to create a Google Doc from a locally generated docx file and upload it to Drive.

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 the document locally with python-docx as a .docx file, then upload it with gws drive files create. Set the JSON mimeType to application/vnd.google-apps.document to trigger automatic conversion to Google Docs format.

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 in existing Docs.

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?

In gws slides batchUpdate, \n creates a new paragraph like pressing Enter, while \v inserts 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 to view or retrieve file content instead.

Why should permanent deletion be avoided with gws commands?

Permanent deletion is irreversible and can cause catastrophic data loss. Always use trash or archive operations first and confirm explicitly before any destructive action, even if deletion is requested.