gws-script
Skill này làm gì
Lệnh này giúp quản lý các dự án Google Apps Script. Bạn có thể tạo dự án mới, xem thông tin về chúng, lấy hoặc cập nhật mã, và thậm chí xem số liệu sử dụng.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một script mới từ đầu.
- ✓Khi bạn cần xem mã của một script đã có.
- ✓Khi bạn muốn kiểm tra có bao nhiêu người đang dùng script của mình.
Liên kết skill
https://github.com/googleworkspace/cli/blob/main/skills/gws-script/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 dự án script mới tên 'My First Script'.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn chỉ định thao tác muốn thực hiện (như 'create project' hoặc 'view code') và dự án nào. Công cụ giao tiếp với Google để hoàn thành công việc.
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.
script (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws script <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+push |
Upload local files to an Apps Script project |
API Resources
processes
list— List information about processes made by or on behalf of a user, such as process type and current status.listScriptProcesses— List information about a script's executed processes, such as process type and current status.
projects
create— Creates a new, empty script project with no script files and a base manifest file.get— Gets a script project's metadata.getContent— Gets the content of the script project, including the code source and metadata for each script file.getMetrics— Get metrics data for scripts, such as number of executions and active users.updateContent— Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.deployments— Operations on the 'deployments' resourceversions— Operations on the 'versions' resource
scripts
run—
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws script --help
# Inspect a method's required params, types, and defaults
gws schema script.<resource>.<method>
Use gws schema output to build your --params and --json flags.
Câu hỏi thường gặp
Google Apps Script là gì?
Đó là cách tạo các chương trình nhỏ (script) để tự động hóa tác vụ trong Google Workspace (Gmail, Sheets, Drive, v.v.).
'Resource' và 'method' nghĩa là gì?
'Resource' giống như một loại đối tượng bạn có thể quản lý (ví dụ 'projects'). 'Method' là hành động bạn muốn thực hiện trên đối tượng đó (ví dụ 'create' hoặc 'get').
`gws schema` là gì?
Đó là lệnh hiển thị các chi tiết cụ thể cần thiết để dùng một chức năng nhất định, chẳng hạn bạn cần cung cấp thông tin gì.
Chi tiết
Độ phổ biến
- Sao GitHub
- 32k
- Vị trí xếp hạng
- #9183
- Giấy phép
- Apache-2.0
- Cập nhật
- 6/10/2026
Bình luận
- …
Thêm skill từ kho mã này
gws-admin-reports
32kGiúp agent của bạn lấy báo cáo hoạt động từ Google Workspace. Thu thập dữ liệu kiểm toán và sử dụng.
gws-calendar-agenda
32kGiúp agent của bạn xem các sự kiện sắp tới trên tất cả lịch. Hữu ích để sắp xếp lịch trình và biết những gì sắp diễn ra.
gws-calendar-insert
32kCho phép agent của bạn tạo sự kiện mới trong Google Calendar. Hữu ích để lên lịch hẹn và cuộc họp.
gws-calendar
32kCho phép agent của bạn quản lý lịch và sự kiện. Hữu ích để sắp xếp công việc và đời sống cá nhân.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.