본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)16k · #10885

cloud-cli

하는 일

이 스킬은 에이전트가 클라우드 제공자의 명령줄에 로그인하고 작업에 사용하도록 돕습니다. 클라우드 자원을 관리하고, 에이전트가 클라우드 명령을 대신 실행하기를 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓에이전트가 AWS, Google Cloud, Azure 명령을 대신 실행하기를 원할 때.
  • ✓클라우드 명령줄 도구가 설치되어 있지 않거나 먼저 로그인해야 할 때.
  • ✓클라우드 쓰기 명령을 실행하기 전에 그 한계를 알고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/yc-software/qm/blob/main/skills-seed/cloud-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“에이전트를 AWS에 로그인시키고, 제 계정의 S3 버킷 목록을 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 제공자의 명령줄이 설치되어 있는지 확인한 뒤, 브라우저 단계를 거치는 기기 코드 로그인을 안내합니다. 로그인 정보는 안전하게 저장되며, 지정된 명령에만 사용됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

명령줄이 설치되어 있지 않다면 어떻게 하나요?

에이전트는 작업을 위해 설치하거나, 제공자의 API를 쓰거나, 운영자에게 이미지에 추가해 달라고 요청할 수 있습니다.

로그인 정보는 안전하게 보관되나요?

로그인 정보는 키체인에 저장되며, 지정된 명령에만 전달됩니다.

클라우드 쓰기 명령에 제한이 있나요?

네. 이 스킬은 클라우드 쓰기 작업에 경계를 두어, 변경이 가볍게 이루어지지 않도록 합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
16k
순위
#10885
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬