gws-drive▌
googleworkspace/cli · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Complete Google Drive API access for file, folder, and shared drive management.
- ›Covers 15+ resource types including files, folders, shared drives, permissions, comments, revisions, and access proposals with 50+ methods total
- ›Supports file operations: create, copy, download, export, upload (via helper skill), search with query parameters, and label management
- ›Enables sharing workflows: create/update/delete permissions, manage access proposals, and control shared drive visibility
- ›In
drive (v3)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws drive <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+upload |
Upload a file with automatic metadata |
API Resources
about
get— Gets information about the user, the user's Drive, and system capabilities. For more information, see Return user info. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.
accessproposals
get— Retrieves an access proposal by ID. For more information, see Manage pending access proposals.list— List the access proposals on a file. For more information, see Manage pending access proposals. Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.resolve— Approves or denies an access proposal. For more information, see Manage pending access proposals.
approvals
get— Gets an Approval by ID.list— Lists the Approvals on a file.
apps
get— Gets a specific app. For more information, see Return user info.list— Lists a user's installed apps. For more information, see Return user info.
changes
getStartPageToken— Gets the starting pageToken for listing future changes. For more information, see Retrieve changes.list— Lists the changes for a user or shared drive. For more information, see Retrieve changes.watch— Subscribes to changes for a user. For more information, see Notifications for resource changes.
channels
stop— Stops watching resources through this channel. For more information, see Notifications for resource changes.
comments
create— Creates a comment on a file. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.delete— Deletes a comment. For more information, see Manage comments and replies.get— Gets a comment by ID. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.list— Lists a file's comments. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.update— Updates a comment with patch semantics. For more information, see Manage comments and replies. Required: Thefieldsparameter must be set. To return the exact fields you need, see Return specific fields.
drives
create— Creates a shared drive. For more information, see Manage shared drives.get— Gets a shared drive's metadata by ID. For more information, see Manage shared drives.hide— Hides a shared drive from the default view. For more information, see Manage shared drives.list— Lists the user's shared drives. This method accepts theqparameter, which is a search query combining one or more search terms. For more information, see the Search for shared drives guide.unhide— Restores a shared drive to the default view. For more information, see Manage shared drives.update— Updates the metadata for a shared drive. For more information, see Manage shared drives.
files
copy— Creates a copy of a file and applies any requested updates with patch semantics. For more information, see Create and manage files.create— Creates a file. For more information, see Create and manage files. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:*/*(Specify a valid MIME type, rather than the literal*/*value. The literal*/*is only used to indicate that any valid MIME type can be uploaded.download— Downloads the content of a file. For more information, see Download and export files. Operations are valid for 24 hours from the time of creation.export— Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see Download and export files. Note that the exported content is limited to 10 MB.generateIds— Generates a set of file IDs which can be provided in create or copy requests. For more information, see Create and manage files.get— Gets a file's metadata or content by ID. For more information, see Search for files and folders. If you provide the URL parameteralt=media, then the response includes the file contents in the response body. Downloading content withalt=mediaonly works if the file is stored in Drive.list— Lists the user's files. For more information, see Search for files and folders. This method accepts theqparameter, which is a search query combining one or more search terms. This method returns all files by default, including trashed files. If you don't want trashed files to appear in the list, use thetrashed=falsequery parameter to remove trashed files from the results.listLabels— Lists the labels on a file. For more information, see List labels on a file.modifyLabels— Modifies the set of labels applied to a file. For more information, see Set a label field on a file. Returns a list of the labels that were added or modified.update— Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such asmodifiedDate. This method supports patch semantics. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types:*/*(Specify a valid MIME type, rather than the literal*/*value.watch— Subscribes to changes to a file. For more information, see Notifications for resource changes.
operations
get— Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
permissions
create— Creates a permission for a file or shared drive. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.delete— Deletes a permission. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.get— Gets a permission by ID. For more information, see Share files, folders, and drives.list— Lists a file's or shared drive's permissions. For more information, see Share files, folders, and drives.update— Updates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permissions operations on the same file aren't supported; only the last update is applied.
replies
create— Creates a reply to a comment. For more information, see Manage comments and replies.delete— Deletes a reply. For more information, see Manage comments and replies.get— Gets a reply by ID. For more information, see Manage comments and replies.list— Lists a comment's replies. For more information, see Manage comments and replies.update— Updates a reply with patch semantics. For more information, see Manage comments and replies.
revisions
delete— Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see Manage file revisions.get— Gets a revision's metadata or content by ID. For more information, see Manage file revisions.list— Lists a file's revisions. For more information, see Manage file revisions. Important: The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision.update— Updates a revision with patch semantics. For more information, see Manage file revisions.
teamdrives
create— Deprecated: Usedrives.createinstead.get— Deprecated: Usedrives.getinstead.list— Deprecated: Usedrives.listinstead.update— Deprecated: Usedrives.updateinstead.
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws drive --help
# Inspect a method's required params, types, and defaults
gws schema drive.<resource>.<method>
Use gws schema output to build your --params and --json flags.
How to use gws-drive on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add gws-drive
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches gws-drive from GitHub repository googleworkspace/cli and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate gws-drive. Access the skill through slash commands (e.g., /gws-drive) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★75 reviews- ★★★★★Dhruvi Jain· Dec 28, 2024
Registry listing for gws-drive matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Anaya Martinez· Dec 28, 2024
I recommend gws-drive for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Isabella Mensah· Dec 24, 2024
Solid pick for teams standardizing on skills: gws-drive is focused, and the summary matches what you get after install.
- ★★★★★Li Verma· Dec 20, 2024
gws-drive is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Kofi Gonzalez· Dec 16, 2024
gws-drive has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Luis Jain· Dec 16, 2024
Registry listing for gws-drive matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Harper Thompson· Dec 12, 2024
Solid pick for teams standardizing on skills: gws-drive is focused, and the summary matches what you get after install.
- ★★★★★Oshnikdeep· Nov 19, 2024
Solid pick for teams standardizing on skills: gws-drive is focused, and the summary matches what you get after install.
- ★★★★★Anaya Harris· Nov 19, 2024
Useful defaults in gws-drive — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Valentina Rahman· Nov 15, 2024
Registry listing for gws-drive matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 75