agentsclimarketplace

Gdrive

Skill sdc-ren/gdrive-cli/skills/gdrive

Dùng khi làm việc với Google Drive — người dùng dán link docs.google.com (spreadsheets/document/presentation) hoặc drive.google.com, hoặc nói "đọc sheet này", "lấy dữ liệu từ Google Sheet", "đọc file docx/xlsx/slide trên Drive", "ghi kết quả vào sheet", "upload lên Drive", "tìm file trên Drive". Kèm cách xử lý 3 lỗi hay gặp nhất (403 chưa share, quota Shared Drive, file Office đời cũ).From its SKILL.md

Install
npx -y skills add sdc-ren/gdrive-cli --skill gdrive

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.8 KB, as published. Nobody here has run it

Google Drive qua service account

Các tool gdrive_* đã sẵn sàng — dùng thẳng, mọi tool nhận link dán vào nguyên văn, không cần tự bóc file id hay gid.

Chọn tool nào

LoạiTool
Google Sheets, .xlsx trên Drivegdrive_sheet_read
Google Docs, Slides, .docx, .pptx, .csv, .txt, .mdgdrive_read_document
PDF, ảnh, định dạng khácgdrive_download rồi đọc file đã tải
Chưa chắc file là gìgdrive_file_info trước — rẻ hơn nhiều so với đoán sai rồi ăn lỗi

gdrive_sheet_read luôn trả kèm danh sách mọi tab + gid. Đoán nhầm tab thì gọi lại với tham số sheet, không cần tool phụ để dò.

Ba lỗi hay gặp — biết trước thì khỏi loay hoay

403 / không có quyền. Service account là một danh tính riêng có email riêng; nó không thấy gì cho tới khi được share. Lỗi trả về kèm sẵn email đó — đưa cho người dùng và bảo họ Share (Viewer để đọc, Editor để ghi). Không có cách vòng nào khác, đừng thử tool khác.

403 storageQuotaExceeded khi upload. Service account không có dung lượng My Drive. Đích upload phải nằm trên Shared Drive; share Editor một thư mục My Drive là không đủ.

.doc / .xls / .ppt đời cũ. Không đọc được (nhị phân OLE2) và cố ý không hỗ trợ — parser nửa vời trả ra chữ trông có vẻ đúng nhưng sai, nguy hiểm hơn báo lỗi thẳng. Bảo người dùng mở trong Drive → File → "Lưu dưới dạng Google Docs/Sheets" rồi đưa link bản mới.

Vài điều nên làm

  • Kết quả có trường warnings (nội dung bị cắt, header/footer không trích được, có tracked changes…) → nói lại cho người dùng, đừng lặng lẽ bỏ qua.
  • Link "Publish to the web" (/d/e/2PACX-…) không chứa file id — bảo người dùng mở file rồi copy link trên thanh địa chỉ.
  • Không thấy tool gdrive_sheet_write / gdrive_upload nghĩa là plugin đang ở chế độ readonly. Muốn ghi thì người dùng chạy gdrive init --mode readwrite rồi mở session mới.
  • Chưa cấu hình credential → chạy skill gdrive-setup.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.