Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)16k · #10885

cloud-cli

Ce qu’il fait

Cette compétence aide votre agent à se connecter à l'interface en ligne de commande d'un fournisseur cloud et à l'utiliser pour votre tâche. Elle s'adresse aux personnes qui gèrent des ressources cloud et veulent que l'agent exécute des commandes cloud pour elles.

Quand l’utiliser

  • ✓Quand vous voulez que l'agent exécute des commandes AWS, Google Cloud ou Azure pour vous.
  • ✓Quand un outil en ligne de commande cloud n'est pas installé ou nécessite d'abord une connexion.
  • ✓Quand vous voulez connaître les limites des commandes d'écriture cloud avant de les lancer.

Lien du skill

https://github.com/yc-software/qm/blob/main/skills-seed/cloud-cli/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/yc-software/qm/blob/main/skills-seed/cloud-cli/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Connecte l'agent à AWS et liste les buckets S3 de mon compte.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie d'abord si l'interface en ligne de commande du fournisseur est installée, puis guide une connexion par code d'appareil qui tient compte de l'étape dans le navigateur. Il enregistre la connexion de façon sécurisée et n'exécute des commandes qu'avec la connexion qu'il a désignée.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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-credential skill).
  • 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
Questions fréquentes

Que faire si l'interface en ligne de commande n'est pas installée ?

L'agent peut l'installer pour la tâche, utiliser l'API du fournisseur, ou demander à l'opérateur de l'ajouter à l'image.

Les connexions sont-elles stockées en sécurité ?

Oui. Elles sont enregistrées dans le trousseau et ne sont utilisées que pour la commande pour laquelle elles ont été désignées.

Les commandes d'écriture cloud sont-elles limitées ?

Oui. La compétence fixe des limites aux actions d'écriture cloud, pour que les modifications ne soient pas faites à la légère.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
16k
Position au classement
#10885
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires