Logo Gcloud Skill

Gcloud Skill

Cộng đồng
zeenie-ai
gcloud-skill

Work with Google Cloud via the official gcloud CLI — check auth/config, list and switch projects, manage Compute Engine instances, deploy and inspect Cloud Run services, work with Cloud Storage, and run any other gcloud command. Output is parsed JSON.

Tổng quan

Nhà phát hànhzeenie-ai
Kho mãOpenCompany
Tên kỹ nănggcloud-skill
Sao
912
Bản fork
137
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được zeenie-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Gcloud Skill trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/gcloud/gcloud-skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany.git /tmp/OpenCompany
mkdir -p .claude/skills
cp -r /tmp/OpenCompany/server/skills/gcloud/gcloud-skill .claude/skills/gcloud-skill
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Gcloud Skill trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Gcloud Skill ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Gcloud Skill với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Google Cloud Skill

Wrapper over the official Google Cloud CLI (gcloud). Typed operations for the core flows plus a custom passthrough that covers the entire gcloud surface. JSON-capable operations run with --format=json, so results come back parsed in result.

Each call starts a fresh gcloud process — a few seconds of startup latency per call is normal; don't retry a slow call.

Tool: gcloud

Operations

OperationPurposeKey fields
auth_listCredentialed accounts + which is active—
config_listCurrent configuration (account, project, region defaults)—
projects_listProjects the account can access (parsed JSON)limit (default 50)
set_projectSet the configuration's default projectproject_id (required)
compute_instances_listCompute Engine instances (parsed JSON)zone (optional filter), project
compute_instance_startStart an instanceinstance, zone (both required), project
compute_instance_stopStop an instanceinstance, zone (both required), project
compute_instance_describeFull instance detailsinstance, zone (both required), project
run_deployDeploy a Cloud Run serviceservice, region (required), exactly one of source / image, allow_unauthenticated, project
run_services_listCloud Run services (all regions unless filtered)region (optional), project
run_service_describeCloud Run service details (URL, revisions)service, region (both required), project
storage_lsList buckets or objectsurl (optional gs:// URL; omit to list buckets), project
storage_cpCopy files local <-> gs://src, dst (required), recursive, path (working dir)
storage_rmDelete objectsurl (required gs:// URL), recursive
customAny other gcloud commandcommand — exactly what you would type after gcloud

The project / zone / region fields map to --project / --zone / --region. When project is empty, gcloud falls back to the configured default — run set_project once instead of repeating project on every call.

Response

json
{
  "operation": "projects_list",
  "success": true,
  "result": [{ "projectId": "my-project-123", "name": "My Project", "lifecycleState": "ACTIVE" }]
}

Parsed JSON lands in result; plain text (set_project, storage_cp progress) lands in stdout. On failure the tool raises an error carrying gcloud's own message — surface it verbatim; gcloud's errors are precise (including "You do not currently have an active account selected", which means the user needs to log in via Credentials -> Google Cloud).

Typical flows

Orient first when state is unknown:

json
{ "operation": "auth_list" }
{ "operation": "config_list" }
{ "operation": "projects_list" }
{ "operation": "set_project", "project_id": "my-project-123" }

Compute Engine — zone is required for single-instance operations (get it from the list output's zone field):

json
{ "operation": "compute_instances_list" }
{ "operation": "compute_instance_stop", "instance": "my-vm", "zone": "us-central1-a" }

Cloud Run — deploy from a container image, or from source (source deploys run Cloud Build and can take minutes; the 15-minute timeout accommodates that):

json
{ "operation": "run_deploy", "service": "my-api", "region": "us-central1", "image": "gcr.io/my-project/my-api:latest", "allow_unauthenticated": true }
{ "operation": "run_deploy", "service": "my-api", "region": "us-central1", "source": ".", "path": "app" }
{ "operation": "run_service_describe", "service": "my-api", "region": "us-central1" }

The deployed URL is in the describe/deploy result under status.url.

Cloud Storage — local paths resolve against the workflow workspace:

json
{ "operation": "storage_ls", "url": "gs://my-bucket/reports/" }
{ "operation": "storage_cp", "src": "gs://my-bucket/reports/latest.csv", "dst": "./downloads/" }
{ "operation": "storage_cp", "src": "./build", "dst": "gs://my-bucket/site/", "recursive": true }

The full gcloud surface via custom

json
{ "operation": "custom", "command": "iam service-accounts list" }
{ "operation": "custom", "command": "sql instances list" }
{ "operation": "custom", "command": "functions deploy my-fn --runtime python312 --trigger-http --region us-central1" }
{ "operation": "custom", "command": "container clusters list" }
{ "operation": "custom", "command": "logging read \"severity>=ERROR\" --limit 20 --format=json" }
{ "operation": "custom", "command": "services enable run.googleapis.com" }

Notes for custom:

  • Add --format=json yourself when you want parsed output — it is not injected for you.
  • command is parsed with shlex.split — wrap filter expressions and JSON in quotes as you would in a shell.
  • Long-running commands get a 10-minute timeout; for very long operations prefer the --async flag and poll.
  • auth application-default login mints Application Default Credentials for client-library code (stored isolated under OpenCompany's data directory). gcloud CLI commands themselves never need ADC.

Authentication

Auth is owned by the gcloud CLI itself, isolated under OpenCompany's data directory (a login you did in your own terminal is NOT visible here):

  • Credentials Modal -> Google Cloud -> Login — gcloud opens the browser itself for Google sign-in (localhost callback, so the browser must be on the server's machine). First use auto-installs the CLI (~100 MB; allow a few minutes).

If a command fails with an auth error, point the user at the Login button; don't ask them to paste credentials in chat. If it fails with "API not enabled", enable it via { "operation": "custom", "command": "services enable <api>.googleapis.com" }.

Best practices

  1. Run config_list first when state is unknown — it shows the active account and default project without side effects.
  2. Set the project once (set_project) instead of repeating the project field.
  3. Destructive operations (instance stop, storage_rm, deletes via custom) — confirm with the user before running unless they explicitly asked.
  4. Surface gcloud error messages verbatim — don't paraphrase; they name the exact flag, permission, or API to fix.
  5. Costs are real — starting instances and deploying services incurs billing; mention it when the user's intent is exploratory.

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

Kỹ năng AI Gcloud Skill làm được gì?

Work with Google Cloud via the official gcloud CLI — check auth/config, list and switch projects, manage Compute Engine instances, deploy and inspect Cloud Run services, work with Cloud Storage, and run any other gcloud command. Output is parsed JSON.

Vì sao nên dùng Gcloud Skill trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Gcloud Skill là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Gcloud Skill trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/gcloud/gcloud-skill. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Gcloud Skill?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Gcloud Skill với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Gcloud Skill với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Gcloud Skill có miễn phí không?

Có. Kỹ năng này được zeenie-ai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇