Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)16k · #10896

interactive-login

Fungsinya

Memungkinkan asisten memulai proses masuk untuk alat baris perintah pengembang dan menyimpan hasilnya di keychain sistem. Cocok untuk pengembang yang memerlukan alat mereka sudah masuk.

Kapan dipakai

  • ✓Saat alat baris perintah seperti AWS atau GitHub perlu Anda masuk terlebih dahulu.
  • ✓Saat Anda ingin login disimpan agar perintah berikutnya bisa memakainya dengan aman.
  • ✓Saat kode perangkat atau masuk lewat peramban diperlukan untuk menyelesaikan pengaturan.

Link skill

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

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Masukkan saya ke alat baris perintah AWS agar Anda bisa memeriksa penerapan saya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Asisten memulai login alat itu di folder sementara yang baru, menampilkan alamat web dan kode yang harus Anda masukkan, lalu menyimpan hasilnya di keychain. Folder beranda normal Anda tidak pernah dipakai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah asisten melihat kata sandi saya?

Anda menyelesaikan masuk sendiri di peramban memakai kode yang ditampilkan alat. Asisten hanya meneruskan tautan dan kodenya.

Mengapa dipakai folder sementara?

Ini menjaga login baru terpisah dari pengaturan komputer Anda yang biasa, sehingga token yang ada tidak terpakai secara tidak sengaja.

Bagaimana jika proses masuk belum selesai?

Login hanya disimpan setelah proses masuk selesai, jadi Anda bisa mencoba lagi jika berhenti di tengah jalan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
16k
Peringkat
#10896
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa