Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)16k · #10896

interactive-login

Was er macht

Lässt den Assistenten eine Anmeldung für Entwickler-Kommandozeilenwerkzeuge starten und das Ergebnis im Schlüsselbund der Systemumgebung speichern. Er ist für Entwickler gedacht, deren Werkzeuge angemeldet sein müssen.

Wann du ihn nutzt

  • ✓Wenn ein Kommandozeilenwerkzeug wie AWS oder GitHub zuerst deine Anmeldung braucht.
  • ✓Wenn du willst, dass eine Anmeldung gespeichert wird, damit spätere Befehle sie sicher nutzen können.
  • ✓Wenn für die Einrichtung eine Geräte-Code- oder Browser-Anmeldung nötig ist.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Melde mich im AWS-Kommandozeilenwerkzeug an, damit du meine Deployments prüfen kannst.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Assistent startet die Anmeldung des Werkzeugs in einem neuen temporären Ordner, zeigt dir die Webadresse und den Code zur Eingabe und speichert das Ergebnis im Schlüsselbund. Dein normaler Benutzerordner wird nie genutzt.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Sieht der Assistent mein Passwort?

Die Anmeldung schließt du selbst im Browser ab, mit dem Code, den das Werkzeug anzeigt. Der Assistent gibt nur den Link und den Code weiter.

Warum wird ein temporärer Ordner genutzt?

So bleibt die neue Anmeldung von deinen normalen Einstellungen getrennt, und vorhandene Tokens werden nicht versehentlich wiederverwendet.

Was ist, wenn die Anmeldung nicht abgeschlossen wird?

Die Anmeldung wird erst gespeichert, wenn sie abgeschlossen ist. Bricht sie ab, kannst du es erneut versuchen.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
16k
Platz im Ranking
#10896
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills