google-sheets
Skill này làm gì
Skill tạo và định dạng Google Sheets, bao gồm biểu đồ và quy tắc nhập liệu. Dành cho người xây dựng bảng tính, bảng theo dõi và dashboard đơn giản.
Khi nào nên dùng
- ✓Khi bạn yêu cầu agent tạo bảng tính hoặc dashboard trong Google Sheets.
- ✓Khi bạn cần thêm hoặc sửa một biểu đồ trong Google Sheet.
- ✓Khi bạn muốn định dạng ô, thêm kiểm tra dữ liệu hoặc sắp xếp lại các tab và dòng.
Liên kết skill
https://github.com/cursor/plugins/blob/main/third_party/google-sheets/skills/google-sheets/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một Google Sheet theo dõi chi phí hàng tháng của chúng tôi, có biểu đồ cột tổng theo danh mục.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent ghi giá trị trước, rồi áp dụng định dạng, và thêm biểu đồ sau cùng. Nó dùng tên tab và ID sheet để nhắm đúng từng thay đổi.
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.
Google Sheets authoring
Two coordinate systems, on purpose
- VALUE tools (
read_range,write_range,append_rows,clear_range) address a TAB TITLE plus A1 cells:{sheet: "Data", cells: "A1:B4"}. - STRUCTURE/FORMAT tools (
format_cells,set_borders,merge_cells,add_chart,add_conditional_formatting,insert_rows_or_columns,delete_rows_or_columns,freeze_rows_or_columns,sort_range,set_data_validation,set_basic_filter,add_banding,set_column_width,rename_sheet_tab,delete_sheet_tab) address the numericsheetId.
get_spreadsheet returns both (each tab's title AND sheetId) with no cell
data - call it first and keep the mapping. A new tab's sheetId is in
add_sheet_tab's reply (replies[0].addSheet.properties.sheetId).
Sequencing a styled sheet: values first, then format, chart last
create_spreadsheet(optionally with named tabs; it cannot target a folder - move it after with google-drivegoogle_drive_move_or_rename).write_rangethe data withparseInput: truewhen values include numbers, dates, or formulas (default false stores everything as literal text - a top source of "chart is empty" bugs).- Format like a real dashboard, not a bare grid:
format_cellsbold header with a fill color and white text; number patterns on value columns ($#,##0,0.0%).freeze_rows_or_columnsthe header row.set_basic_filterover the table range - filter dropdowns are what make it read as a data table.set_borders(outer heavier than inner) oradd_bandingfor alternating row colors;set_column_widthso nothing clips.add_conditional_formattingfor thresholds worth seeing at a glance.
add_chartLAST, after the data exists.
Charts
- In
add_chart, the FIRST range is the domain (x axis / pie labels) and later ranges are the series, one column each; anchoring a chart to the wrong or reversed ranges is the most common chart bug. All ranges live on the same tab as the chart.headerCount: 1uses the first cells as series labels - include the header row in each range when you set it. - Place the chart over empty cells beside or below the table, not on top of the data it plots.
- A wrong chart is fixed in place, not worked around:
get_spreadsheetlists every tab's charts (chartId, title),update_chartreplaces a chart's spec keeping its position,delete_chartremoves one. Never add a second chart to paper over a bad first one.
Named and protected ranges
add_named_rangemakes formulas self-documenting (=SUM(Budget)instead of=SUM(B2:B13)); write the formula withparseInput: true. Names cannot look like cell references.protect_rangeguards headers and formula cells (warningOnly: trueby default warns editors;falselocks them). Protect AFTER the last write to that range, or your own writes fight the protection.get_spreadsheetlists both, with the idsdelete_named_rangeandunprotect_rangeneed.
Pitfalls
- No revision guard anywhere: last write wins. Read before writing when a collaborator may be editing.
merge_cellskeeps only the top-left value; write the text after merging.sort_rangerewrites cell positions; sort before adding formulas that reference the range, and exclude the header row from the sorted range.insert_rows_or_columns/delete_rows_or_columnspositions are 1-based (A=1); deletes are immediate and not undoable through the API.find_replace_sheetis literal (never regex here) and can search inside formulas withsearchFormulas: true.- Whole-tab reads can blow the byte cap; bound
cells(e.g. "1:2000") on tabs you have not sized and follownextCellswhen truncated.
Verify your work
read_range for values (FORMATTED_VALUE shows what the user sees;
UNFORMATTED_VALUE the raw numbers - use it to confirm numbers are numbers,
not text). get_spreadsheet for structure: tabs, charts, named ranges,
protections. google-drive google_drive_export_file (pdf renders every tab
including charts and formatting) when the visual result matters.
Câu hỏi thường gặp
Vì sao biểu đồ của tôi trống?
Thường là vì các số được lưu dưới dạng văn bản. Skill có thể ghi giá trị sao cho số và ngày vẫn là giá trị thật.
Nó có thêm định dạng có điều kiện không?
Có. Skill bao gồm định dạng có điều kiện, kiểm tra dữ liệu và bộ lọc.
Nó có khóa được vùng dữ liệu không?
Có. Vùng đặt tên và vùng được bảo vệ là một phần của skill.
Chi tiết
Mô tả gốc của tác giả
Build and edit Google Sheets with the google-sheets tools - values, formatting, charts, conditional formatting, structure, validation, named and protected ranges. Use when creating a spreadsheet or dashboard, formatting cells, adding or fixing charts, or reorganizing tabs and rows.
repo: cursor/plugins
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11017
- Giấy phép
- —
- Cập nhật
- 31/10/2026
Bình luận
- …
Thêm skill từ kho mã này
advisor
15kCho agent hỏi ý kiến một mô hình thứ hai mạnh hơn tại các điểm then chốt, như trước quyết định lớn hoặc khi bị kẹt ở lỗi, nếu bạn bật nó.
check-agent-compatibility
15kKiểm tra xem coding agent AI có khởi động, xác minh và ghi tài liệu được cho một repository không, rồi trả về một điểm tương thích và vấn đề chính.
cli-for-agents
15kDạy agent thiết kế hoặc rà soát công cụ dòng lệnh để các coding agent AI chạy được mà không cần lời nhắc, với trợ giúp rõ ràng và ví dụ.
continual-learning
15kGiữ các ghi chú AGENTS.md của bạn cập nhật bằng cách giao việc rà soát các cuộc trò chuyện trước cho một trình cập nhật bộ nhớ chuyên dụng.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.