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

interactive-login

하는 일

이 스킬은 어시스턴트가 개발자용 명령줄 도구의 로그인을 시작하고, 그 결과를 키체인에 저장하게 합니다. 도구에 로그인이 필요한 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓AWS나 GitHub 같은 명령줄 도구가 먼저 로그인을 요구할 때.
  • ✓나중에 명령이 안전하게 쓸 수 있도록 로그인을 저장하고 싶을 때.
  • ✓설정을 마치기 위해 기기 코드나 브라우저 로그인이 필요할 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/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 명령줄 도구에 저를 로그인시켜서, 제 배포 상태를 확인할 수 있게 해 주세요.”

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

작동 방식

어시스턴트는 새 임시 폴더에서 도구의 로그인을 시작하고, 입력할 웹 주소와 코드를 보여 준 뒤 결과를 키체인에 저장합니다. 사용자의 일반 홈 폴더는 쓰지 않습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Interactive login

Nothing captures logins for you. Every login runs in a fresh temporary home and is saved to the keychain with the script shipped with this skill. Never log in against the real $HOME, and never treat a token or config already in $HOME as a usable login: only a keychain handle is. Use the same explicit sandbox_id for the skill read, login, and save-login commands so the temporary home and save script stay on one computer.

  1. Make a fresh directory and start the login with execute(background:true) with every config location pointed into it. Copy in any config the CLI needs first (for AWS, the [profile …]/[sso-session …] blocks in .aws/config); everything under that directory becomes the saved login.

    d=$(mktemp -d) && echo "$d"
    in_d() { env HOME="$d" XDG_CONFIG_HOME="$d/.config" XDG_DATA_HOME="$d/.local/share" XDG_STATE_HOME="$d/.local/state" XDG_CACHE_HOME="$d/.cache" "$@"; }
    in_d aws sso login --profile work --use-device-code --no-browser
    in_d gh auth login --hostname github.com --git-protocol https --web
    in_d glab auth login --hostname gitlab.com --web
    in_d gcloud auth login --no-launch-browser
    

    Use the CLI's device-code mode (AWS needs --use-device-code); a browser flow only completes on the same machine.

  2. Relay the verification URL and code from the job output. Answer any prompt with background action send_input. Use its watch or poll action with the returned process_id; never stop the job while the person is approving.

  3. When it exits successfully, save the directory with the script under the absolute directory the skill read reported:

    node <skill dir>/scripts/save-login.mjs aws "$d" --label "work (123456789012)"
    

    The script uploads only the files under that directory, removes the directory, and prints the credential handle. It also removes a directory that holds no usable login. Never remove the directory yourself; if the save fails, run the script again. Saving the same service again replaces that entry in place: its id, handle, owner and grants stay the same.

  4. Use the login only by naming the handle in credentials on execute (including background:true), including to check that it works. The files are staged in a private home for that command or job, and refreshes the CLI writes are saved back when it ends.

Never print token files or paste their contents into the conversation. If the login fails or expires, start again from step 1 with a new directory.

자주 묻는 질문

어시스턴트가 내 비밀번호를 보나요?

사용자가 브라우저에서 도구가 보여 주는 코드로 직접 로그인을 마칩니다. 어시스턴트는 링크와 코드를 전달할 뿐입니다.

임시 폴더는 왜 쓰나요?

새 로그인을 평소 컴퓨터 설정과 분리해, 기존 토큰이 실수로 재사용되지 않게 합니다.

로그인이 끝나지 않으면 어떻게 하나요?

로그인은 완료된 뒤에만 저장되므로, 중단되었다면 다시 시도할 수 있습니다.

상세 정보

작성자의 원본 설명

Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.

repo: yc-software/qm

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬