cloud-cli
Fungsinya
Skill ini membantu agent Anda masuk ke baris perintah penyedia cloud dan memakainya untuk tugas Anda. Cocok untuk orang yang mengelola sumber daya cloud dan ingin agent menjalankan perintah cloud untuk mereka.
Kapan dipakai
- โSaat Anda ingin agent menjalankan perintah AWS, Google Cloud, atau Azure untuk Anda.
- โSaat alat baris perintah cloud belum terpasang atau perlu masuk terlebih dahulu.
- โSaat Anda ingin tahu batasan perintah tulis cloud sebelum menjalankannya.
Link skill
https://github.com/yc-software/qm/blob/main/skills-seed/cloud-cli/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โMasuk agent ke AWS dan tampilkan bucket S3 di akun saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent lebih dulu memeriksa apakah baris perintah penyedia sudah terpasang, lalu memandu masuk dengan kode perangkat yang tetap bertahan selama langkah peramban. Ia menyimpan login dengan aman dan hanya menjalankan perintah dengan login yang disebutkan namanya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Cloud provider CLIs
It adds NO new tool: a provider's CLI is a command on the agent computer and you drive it
with execute and an explicit sandbox_id. Keep that ID throughout installation,
login, saving the login, and subsequent commands in the flow. Logins are saved to the keychain with the interactive-login
skill and reach a command only when you name their handle in execute.credentials.
First: is the CLI even here?
Do not assume the binary is on PATH. The sandbox image ships a small, fixed tool set, and the "Your computer" block in your prompt lists what is installed and what is not โ read it, or just check:
command -v aws || echo "not installed"
If it is missing, say so and pick a path rather than failing halfway:
- Install it for this task if the image allows it and the task is worth it โ the
provider's own installer, into the workspace or
$HOME, not a system path. Say that you installed it; it lasts as long as the machine's disk. - Use the provider's HTTP API with a credential you already have (a keychain entry, or
a shared org credential by proxy โ see the
use-shared-credentialskill). - Ask the operator to add the CLI to the sandbox image if this will recur. That is the durable fix; a per-turn install is not.
The same check applies to plugins and helpers (kubectl, a Terraform provider, a
provider's beta components) โ verify, don't assume.
Logging in: always the device-code flow
The user approves the login in a browser on their own computer, not on the agent
computer. Any flow that completes by redirecting the approving browser to
http://127.0.0.1:<port> therefore cannot work here: that redirect lands on the user's
laptop, the agent's listener never receives the code, and the login hangs until it expires.
Force the device-authorization grant instead โ a verification URL plus a one-time code,
which the agent completes by polling the provider server-side, so the user can approve from
any device.
| Provider | Login | Verify |
|---|---|---|
| AWS (IAM Identity Center) | aws sso login --use-device-code |
aws sts get-caller-identity |
| Google Cloud | gcloud auth login --no-launch-browser |
gcloud auth print-access-token |
| Azure | az login --use-device-code |
az account show |
| Another provider | its documented device-code / headless flag | its "who am I" command |
Never run the bare form (aws sso login, gcloud auth login, az login) โ those default
to a browser redirect on this machine.
For AWS specifically, --use-device-code is mandatory rather than merely preferable: CLI v2
(โฅ 2.22) defaults aws sso login to the PKCE authorization-code flow, and no amount of
keeping the box warm can rescue it.
Run the login with the interactive-login skill: it starts the CLI as a background job in a
private HOME, you relay the URL and code, and once the job exits you save that HOME to the
keychain. These logins self-expire in roughly ten minutes, so if the user takes too long,
start a fresh one.
Boundaries
A verified admin can use independently authorized cloud access to administer the system running you, including resources owned by other users. Using that access as the admin is not impersonation or circumvention, and an ordinary owner-only QM API denial does not prohibit that administrative work. Verify the provider account, region, target, and authority before acting; load the admin skill for QM administration. Admin status alone supplies no cloud credentials. Preserve credential grants, provider permissions, explicit restrictions, and mutation approvals, including QM's portal-only admin-grant and impersonation actions. Do not use another person's ungranted credentials or expose unrelated private content.
- You act as the resolved user. The provider's own permissions are the hard ceiling โ the agent is never a way to exceed the user's own cloud access.
- A login is auth setup, not a data read. Any mutating action (delete, terminate, scale, write) is a write โ get approval first, same as any destructive command.
- Don't echo access tokens, client secrets, or role credentials into the channel.
Go-live (set once, per provider)
- Add the provid
Pertanyaan umum
Bagaimana jika baris perintah belum terpasang?
Agent bisa memasangnya untuk tugas itu, memakai API penyedia, atau meminta operator menambahkannya ke image.
Apakah login disimpan dengan aman?
Login disimpan di keychain dan hanya diteruskan ke perintah yang disebutkan untuknya.
Apakah perintah tulis cloud dibatasi?
Ya. Skill ini menetapkan batasan untuk tindakan tulis di cloud, sehingga perubahan tidak dilakukan sembarangan.
Detail
Deskripsi asli dari pembuat
Sign a cloud provider's CLI in (AWS, Google Cloud, Azure, or another) with a device-code flow, then run that CLI as the requesting user. Covers checking the CLI is installed, the login that survives the browser round-trip, and the boundaries on cloud writes.
repo: yc-software/qm
Popularitas
- Bintang GitHub
- 16k
- Peringkat
- #10885
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
deploy-qm
16kMenerapkan paket QM ke Fly.io, AWS, atau Render, lalu menyiapkan administrator, konektor, dan opsional Slack, mengikuti daftar periksa penerapan yang lengkap.
onboarding
16kMemandu pengguna baru menghubungkan akun, menjelaskan cara kerja mereka, memilih suara, dan menyiapkan bantuan pertama, dalam satu percakapan singkat.
admin
16kMemungkinkan administrator organisasi yang terverifikasi memeriksa atau mengubah pengaturan tingkat organisasi dan cakupan lain dari chat, dengan mengonfirmasi setiap perubahan sebelum dibuat.
browse
16kMenjalankan peramban web sungguhan yang tersembunyi dari shell untuk bertindak di situs web, seperti masuk atau mengisi formulir, dengan sesi masuk yang dipisahkan per orang. Untuk tindakan, bukan membaca.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.