Saltar al contenido
Skillpedia
Deploy y nube (DevOps)16 mil · #10896

interactive-login

Qué hace

Permite que el asistente inicie un inicio de sesión para herramientas de línea de comandos de desarrollo y guarde el resultado en el llavero del sistema. Está pensada para desarrolladores que necesitan tener sus herramientas con sesión iniciada.

Cuándo usarla

  • ✓Cuando una herramienta de línea de comandos como AWS o GitHub necesita que inicies sesión primero.
  • ✓Cuando quieres guardar un acceso para que los comandos posteriores lo usen de forma segura.
  • ✓Cuando hace falta un código de dispositivo o un inicio de sesión en el navegador para terminar la configuración.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Inicia sesión en la herramienta de línea de comandos de AWS para que puedas revisar mis despliegues.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El asistente inicia el inicio de sesión de la herramienta en una carpeta temporal nueva, te muestra la dirección web y el código que debes introducir, y guarda el resultado en el llavero. Tu carpeta personal nunca se usa.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿El asistente ve mi contraseña?

Tú completas el inicio de sesión en tu navegador, con el código que muestra la herramienta. El asistente solo transmite el enlace y el código.

¿Por qué se usa una carpeta temporal?

Así el acceso nuevo queda separado de la configuración normal de tu equipo, y no se reutilizan tokens existentes por error.

¿Qué pasa si no termina el inicio de sesión?

El acceso solo se guarda cuando el inicio de sesión termina, así que puedes intentarlo de nuevo si se detiene.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
16 mil
Posición en el ranking
#10896
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas