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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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-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
자주 묻는 질문
명령줄이 설치되어 있지 않다면 어떻게 하나요?
에이전트는 작업을 위해 설치하거나, 제공자의 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.
댓글
- …
이 저장소의 다른 스킬
deploy-qm
16kQM 패키지를 Fly.io, AWS, Render에 배포한 뒤, 전체 배포 체크리스트에 따라 관리자, 연결 도구, 선택적으로 Slack을 설정합니다.
onboarding
16k새 사용자가 계정을 연결하고, 일하는 방식을 공유하고, 목소리를 고르고, 첫 도움 항목을 설정하도록 짧은 대화로 안내합니다.
admin
16k검증된 조직 관리자가 채팅에서 조직 전체 설정과 다른 범위를 확인하거나 바꿀 수 있게 하며, 각 변경은 적용 전에 확인받습니다.
browse
16k셸에서 실제 스텔스 브라우저를 구동해 로그인이나 양식 작성 같은 웹사이트 작업을 수행하며, 로그인 상태는 사람마다 따로 유지됩니다. 읽기가 아닌 작업용입니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.