Read and search Google Drive files (Docs, Sheets, Slides, and plain files). Use when the user asks to list, search, or read the content of any file in Google Drive, including Google Docs and Google Sheets. Uses the Google Workspace CLI (gws). Requires prior authentication via `gws auth login` or a service account credential file.
Ships in productization-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Read, search, and list files from Google Drive using the Google Workspace CLI (gws).
Prerequisites:
gws command is available (install via tools/google-workspace-cli/install.sh)gws auth login or service account)jq for JSON parsing (optional but recommended)Dependency Installation: Before running any script, install required tools:
../../../tools/google-workspace-cli/install.sh # Install gws if not present
../../../tools/jq/install.sh # Install jq if not present
The gws CLI supports several authentication modes:
| Method | How to set up |
|---|---|
| Interactive OAuth | gws auth login - browser-based consent flow |
| Service Account | Set GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE=/path/to/sa.json |
| Pre-obtained token | Set GOOGLE_WORKSPACE_CLI_TOKEN=<token> |
For non-interactive environments (CI/CD, automated agents), service account authentication is recommended.
drive.google.com/file/d/<FILE_ID>/)name contains, fullText contains, mimeType =, etc.)list_files.shList files in Google Drive with optional filtering.
Usage:
./scripts/list_files.sh [OPTIONS]
Options:
| Option | Default | Description |
|---|---|---|
--folder-id ID | (root) | List files within a specific folder |
--shared-with-me | -- | List only files shared with you (not owned by you) |
--since N | -- | Only files modified in the last N days |
--limit N | 50 | Maximum number of files to return |
--type TYPE | (all) | Filter by type: doc, sheet, slide, folder, or a full MIME type |
--human | -- | Human-readable table output |
Examples:
# List recent files (JSON)
./scripts/list_files.sh
# List all files shared with you
./scripts/list_files.sh --shared-with-me
# List files in a specific folder
./scripts/list_files.sh --folder-id 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs
# List Google Docs only, human-readable
./scripts/list_files.sh --type doc --human
# List up to 100 files
./scripts/list_files.sh --limit 100
Output (JSON):
{
"total": 3,
"files": [
{
"id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74NxxH4",
"name": "Q1 Report",
"type": "document",
"mimeType": "application/vnd.google-apps.document",
"modifiedTime": "2026-04-01T10:00:00.000Z",
"size": "N/A",
"webViewLink": "https://docs.google.com/document/d/..."
}
]
}
search_files.shSearch for files by name or content.
Usage:
./scripts/search_files.sh <query> [OPTIONS]
Arguments:
| Argument | Required | Description |
|---|---|---|
<query> | Yes | Search term (searches name and full text) |
Options:
| Option | Default | Description |
|---|---|---|
--limit N | 20 | Maximum number of results |
--type TYPE | (all) | Filter by type: doc, sheet, slide, folder, or a full MIME type string |
--human | -- | Human-readable output |
Examples:
# Search for files containing "budget"
./scripts/search_files.sh "budget"
# Search for Google Sheets named "quarterly"
./scripts/search_files.sh "quarterly" --type sheet
# Quick name search, human-readable
./scripts/search_files.sh "release notes" --limit 5 --human
Output (JSON):
{
"query": "release notes",
"total": 2,
"files": [
{
"id": "...",
"name": "Release Notes v1.2",
"type": "document",
"mimeType": "application/vnd.google-apps.document",
"modifiedTime": "2026-03-15T09:30:00.000Z",
"webViewLink": "https://docs.google.com/document/d/..."
}
]
}
read_document.shRead/export the content of a specific Google Drive file.
Usage:
./scripts/read_document.sh <file-id> [OPTIONS]
Arguments:
| Argument | Required | Description |
|---|---|---|
<file-id> | Yes | Google Drive file ID |
Options:
| Option | Default | Description |
|---|---|---|
--format FORMAT | text | Export format: text (plain text), html |
--human | -- | Human-readable output (prints content directly) |
Export format by file type:
| Source Type | text | html |
|---|---|---|
| Google Docs | plain text | HTML |
| Google Sheets | CSV | CSV |
| Google Slides | plain text | plain text |
| Plain text/code | raw content | raw content |
Examples:
# Read a Google Doc as plain text (JSON)
./scripts/read_document.sh 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74NxxH4
# Read and print directly (human mode)
./scripts/read_document.sh 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74NxxH4 --human
# Export as HTML
./scripts/read_document.sh 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74NxxH4 --format html
Output (JSON):
{
"id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74NxxH4",
"name": "Q1 Report",
"mimeType": "application/vnd.google-apps.document",
"modifiedTime": "2026-04-01T10:00:00.000Z",
"webViewLink": "https://docs.google.com/document/d/...",
"exportFormat": "text",
"content": "Q1 Report\n\nExecutive Summary\n..."
}
User Request: "Read the Q1 report from Google Drive"
# Step 1: Search for the document
./scripts/search_files.sh "Q1 report" --type doc
# Step 2: Read the document using the ID from search results
./scripts/read_document.sh <file-id-from-search>
User Request: "What documents are in the Engineering folder?"
# Step 1: Find the folder
./scripts/search_files.sh "Engineering" --type folder
# Step 2: List files in the folder
./scripts/list_files.sh --folder-id <folder-id>
User Request: "Summarize all release notes documents"
# Step 1: Search and capture all matching file IDs
OUTPUT=$(./scripts/search_files.sh "release notes" --type doc)
FILE_IDS=$(echo "$OUTPUT" | jq -r '.files[].id')
# Step 2: Read each document (in parallel via multiple tool calls)
# ./scripts/read_document.sh <id1>
# ./scripts/read_document.sh <id2>
# ./scripts/read_document.sh <id3>
User Request: "Get the budget data from the Q1 spreadsheet"
# Step 1: Find the spreadsheet
./scripts/search_files.sh "Q1 budget" --type sheet
# Step 2: Export as CSV
./scripts/read_document.sh <file-id> --format text
# Step 3: Parse the CSV content from the JSON output
OUTPUT=$(./scripts/read_document.sh <file-id>)
echo "$OUTPUT" | jq -r '.content'
| Scenario | Behavior |
|---|---|
| Not authenticated | gws exits with auth error; run gws auth login |
| File not found | gws exits with 404 error |
| No export permission | gws exits with 403 error |
| Google Folder passed to read_document.sh | Error: folders have no exportable content |
| No files matching search | Returns {"total": 0, "files": []} |
Required:
gws - Google Workspace CLI
../../../tools/google-workspace-cli/install.sh../../../tools/google-workspace-cli/install.sh --checkOptional (recommended):
jq - JSON processor for parsing outputs
../../../tools/jq/install.shpytest.ini (opens in a new tab)requirements-test.txt (opens in a new tab)scripts/list_files.sh (opens in a new tab)scripts/read_document.sh (opens in a new tab)scripts/search_files.sh (opens in a new tab)tests/__init__.py (opens in a new tab)tests/conftest.py (opens in a new tab)tests/test_arg_validation.py (opens in a new tab)tests/test_query_construction.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/productization-skills:gws-drive-readerfrom productization-skills
productization-skills@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin productization-skills18 skills in this plugin
/aws-log-analyzerTroubleshoot and analyze logs from AWS CloudWatch Logs. This skill should be used when the user asks to investigate logs, troubleshoot application issues, query log groups, analyze error patterns, or perform log analysis for machines writing to AWS CloudWatch. Uses the AWS CLI for CloudWatch Logs operations./gitlab-branch-managerCreate and protect GitLab branches. Use when the user asks to create a branch, protect a branch, or set up branch protection rules on GitLab. Uses the glab GitLab CLI. The script takes three required positional args in order: repo, branch-name, ref (no --ref flag)./gitlab-code-reviewOther plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Jul 20, 2026