用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill google-sheets命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
| name | google-sheets |
| description | Read and write data on Google Sheets Use when this capability is needed. |
| metadata | {"author":"alanalvestech"} |
Connect to Google Sheets to read, analyze and write data. Pure Ruby, zero gems — stdlib only.
scripts/
├── auth.rb # JWT auth + sheets_request helper (required by all scripts)
├── check_setup.rb # Check if key file exists (outputs OK or SETUP_NEEDED)
├── save_key.rb # Save a Service Account JSON key
├── list_sheets.rb # List tabs in a spreadsheet
├── read.rb # Read data (entire tab or specific range)
├── write.rb # Write to a range
└── append.rb # Append rows at the end
ruby ~/.claude/skills/google-sheets/scripts/check_setup.rb
If the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next. Use simple, non-technical language.
Step 1 — Ask the user to open this link and create a new project (or use an existing one):
Abra este link e crie um projeto no Google Cloud com o nome Hitank: https://console.cloud.google.com/projectcreate
Step 2 — After the user confirms, ask them to enable the Sheets API:
Agora abra este link e clique no botão azul "Ativar" (ou "Enable"): https://console.cloud.google.com/apis/library/sheets.googleapis.com
Step 3 — After the user confirms, guide them to create a Service Account:
Abra este link e clique em "Criar conta de serviço" (ou "Create Service Account"): https://console.cloud.google.com/iam-admin/serviceaccounts
No campo "Nome da conta de serviço", escreva: Hitank Planilha Clique em "Concluir" (ou "Done").
Step 4 — After the user confirms, guide them to download the key:
Na lista que apareceu, clique em Hitank Planilha (a conta que você acabou de criar). Vá na aba Chaves (ou "Keys"). Clique em Adicionar chave → Criar nova chave → escolha JSON → Criar. Um arquivo vai ser baixado automaticamente. Abra esse arquivo, copie TODO o conteúdo e cole aqui.
Step 5 — When the user pastes the JSON, save it:
ruby ~/.claude/skills/google-sheets/scripts/save_key.rb 'PASTED_JSON_CONTENT'
The script outputs the client_email. Tell the user:
Última etapa! Abra sua planilha no Google Sheets, clique em Compartilhar (canto superior direito), e cole este email:
<client_email>Escolha a permissão Editor e clique em Enviar. Isso permite que a gente acesse a planilha.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
The argument $ARGUMENTS contains the Google Sheets URL.
From the Google Sheets URL, extract the ID (the segment between /d/ and /edit or the next /).
ruby ~/.claude/skills/google-sheets/scripts/list_sheets.rb SPREADSHEET_ID
Present the tabs to the user and ask which one to access (or access the first one by default).
Entire tab (first by default):
ruby ~/.claude/skills/google-sheets/scripts/read.rb SPREADSHEET_ID
Specific range:
ruby ~/.claude/skills/google-sheets/scripts/read.rb SPREADSHEET_ID "Sheet1!A1:D50"
Output is JSON (array of arrays). Parse and present to the user in a readable format.
If the spreadsheet is large (>100 rows), read only the relevant range.
After reading the data, present a summary to the user:
ALL writes require explicit user confirmation before executing.
Show exactly what will be written and where (cell, range, tab). Only execute after a "yes".
Write to a range:
ruby ~/.claude/skills/google-sheets/scripts/write.rb SPREADSHEET_ID "Sheet1!A1:B2" '[["a1","b1"],["a2","b2"]]'
Append rows at the end:
ruby ~/.claude/skills/google-sheets/scripts/append.rb SPREADSHEET_ID "Sheet1" '[["col1","col2","col3"]]'
For formulas and dates interpreted by Sheets, pass USER_ENTERED as the last argument:
ruby ~/.claude/skills/google-sheets/scripts/write.rb SPREADSHEET_ID "Sheet1!A1" '[["=SUM(B1:B10)"]]' USER_ENTERED
~/.config/gcloud/sheets-sa-key.json (outside the repo, never commit)Source: alanalvestech/hitank — distributed by TomeVault.