Chuyển đến nội dung
Skillpedia
PDF, Word và slide32k · #9187

gws-sheets

Skill này làm gì

Công cụ này cho phép bạn làm việc với Google Sheets. Bạn có thể đọc dữ liệu từ bảng tính, thêm hàng mới hoặc tạo bảng tính mới.

Khi nào nên dùng

  • ✓Khi bạn cần thêm thông tin mới vào một danh sách.
  • ✓Khi bạn muốn lấy dữ liệu cụ thể từ một bảng.
  • ✓Khi bạn cần tạo một bản ghi dữ liệu mới.

Liên kết skill

https://github.com/googleworkspace/cli/blob/main/skills/gws-sheets/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/googleworkspace/cli/blob/main/skills/gws-sheets/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thêm một hàng 'Apple', 'Red', 'Sweet' vào danh sách trái cây của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kết nối với Google Sheets để thực hiện các thao tác. Bạn nói bạn muốn làm gì (đọc, ghi, thêm) và với bảng tính nào, và công cụ sẽ thực hiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

sheets (v4)

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws sheets <resource> <method> [flags]

Helper Commands

Command Description
+append Append a row to a spreadsheet
+read Read values from a spreadsheet

API Resources

spreadsheets

  • batchUpdate — Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order.
  • create — Creates a spreadsheet, returning the newly created spreadsheet.
  • get — Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your desired fields using the fields URL parameter in HTTP * Set the includeGridData URL parameter to true.
  • getByDataFilter — Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. For more information, see Read, write, and search metadata. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified.
  • developerMetadata — Operations on the 'developerMetadata' resource
  • sheets — Operations on the 'sheets' resource
  • values — Operations on the 'values' resource

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws sheets --help

# Inspect a method's required params, types, and defaults
gws schema sheets.<resource>.<method>

Use gws schema output to build your --params and --json flags.

Câu hỏi thường gặp

Tôi có cần tài khoản Google không?

Có, để truy cập và chỉnh sửa Google Sheets, bạn cần đăng nhập vào tài khoản Google.

AI biết dùng bảng tính nào bằng cách nào?

Bạn cần chỉ định tên hoặc ID của bảng tính trong yêu cầu. Nếu không chắc, bạn có thể yêu cầu AI liệt kê các bảng tính của bạn.

Tôi có thể tạo bảng tính từ đầu không?

Có, công cụ cho phép bạn tạo bảng tính mới.

Chi tiết

Mô tả gốc của tác giả

Google Sheets: Read and write spreadsheets.

repo: googleworkspace/cli

Độ phổ biến

Sao GitHub
32k
Vị trí xếp hạng
#9187
Giấy phép
Apache-2.0
Cập nhật
6/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự