Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)16 mil · #10896

interactive-login

O que ela faz

Permite que o assistente inicie um login para ferramentas de linha de comando de desenvolvedor e guarde o resultado no chaveiro do sistema. É para desenvolvedores que precisam que suas ferramentas estejam logadas.

Quando usar

  • ✓Quando uma ferramenta de linha de comando como AWS ou GitHub precisa que você faça login primeiro.
  • ✓Quando você quer um login salvo para que comandos futuros possam usá-lo com segurança.
  • ✓Quando um código de dispositivo ou um login pelo navegador é necessário para concluir a configuração.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Faça meu login na linha de comando da AWS para que você possa verificar minhas implantações.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O assistente inicia o login da ferramenta em uma pasta temporária nova, mostra o endereço web e o código que você deve digitar e salva o resultado no chaveiro. A sua pasta pessoal nunca é usada.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

O assistente vê minha senha?

Você completa o login por conta própria no navegador, usando o código que a ferramenta mostra. O assistente apenas repassa o link e o código.

Por que uma pasta temporária é usada?

Ela mantém o login novo separado das configurações normais do seu computador, para que tokens existentes não sejam reutilizados por engano.

E se o login não for concluído?

O login só é salvo depois que o processo termina, então você pode tentar de novo se ele for interrompido.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
16 mil
Posição no ranking
#10896
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas