Logo von Secrets In Output

Secrets In Output

Community
randommonicle
secrets-in-output

Nothing that can carry a secret value may reach a tool result, because the transcript is a synced file re-sent on every turn. Check an env var by presence and length only, list names not values, read a .env file by its keys, capture provider status output and API responses into a variable and print a named allowlist, and dry-run the output shape on a dummy value first. Triggers on any command, script or API call that names an env var, a .env file, a key, token, password or secret, or a credential-carrying header. Does not fire on whether a changed value is live (env-change-verification) or on comparing a secret (constant-time-secret-compare).

Übersicht

Herausgeberrandommonicle
Repositoryclaude-skills
Skill-Namesecrets-in-output
Sterne
27
Forks
3
Mitgelieferte Dateien
Nur Anweisungen
LizenzApache-2.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von randommonicle auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Secrets In Output in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/randommonicle/claude-skills/tree/main/secrets-in-output
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/randommonicle/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/secrets-in-output .claude/skills/secrets-in-output
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Secrets In Output in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Secrets In Output automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Secrets In Output nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Secrets in output

Two slips in two days, both in the ICC repo, both by an agent doing routine checks. On 18 September 2026 a Sonnet verification agent ran a bare npx supabase status and the local stack's keys went into its transcript. On 19 September the main session ran a loop over SUPABASE_* names with ${!v:-unset} to learn which were set, and the VALUES of an account-wide personal access token and another project's service-role key landed in the Claude Code transcript (the local ~/.claude/projects JSONL and whatever the desktop app syncs). Nothing in the library covered it; the handover convention "read the token into a shell variable without printing it" was prose. ICC LESSONS_LEARNED L-045.

The transcript is not a terminal that scrolls away. It is a file, it is synced, it is re-sent to the model on every later turn, and it outlives the session. Anything that reaches a tool result reaches all of that.

The rules

  1. Presence and length, never the value. The only question a check may answer is "is it set, and how long is it".

    bash
    [ -n "$SUPABASE_ACCESS_TOKEN" ] && echo "SUPABASE_ACCESS_TOKEN set (${#SUPABASE_ACCESS_TOKEN} chars)" || echo "unset"
    powershell
    if ($env:SUPABASE_ACCESS_TOKEN) { "set ($($env:SUPABASE_ACCESS_TOKEN.Length) chars)" } else { "unset" }

    Never a :- or - fallback on a secret (${X:-unset} prints X when it IS set, which is the case you were checking for), never echo $X, never a prefix (${X:0:6} is the value too).

  2. Names, not values, when listing. env | cut -d= -f1, compgen -v | grep SUPABASE, Get-ChildItem Env: | Select-Object Name. A bare env, printenv, set, export -p, declare -p, Get-ChildItem Env: or [Environment]::GetEnvironmentVariables() prints every value on the machine, and piping it into grep prints the matching lines whole.

  3. A .env file by its keys. cut -d= -f1 .env or grep -o '^[A-Z_]*=' .env answers "which keys are configured". cat .env, head .env, Get-Content .env, grep KEY .env and the Read tool on .env put the whole file in the transcript. .env.example is documentation and is fine.

  4. Provider status and config commands are listings too. supabase status prints the stack's keys in its table and supabase status -o env prints them as KEY=value; capture it (eval "$(npx supabase status -o env)", or > "$TMP/status.env") or filter it (| grep -viE 'key|secret|token|jwt'). netlify env:list, vercel env pull, gh secret, az keyvault secret show, aws ssm get-parameter --with-decryption and stripe config --list belong to the same class: know what each prints before it runs.

  5. An API response is untrusted output. A GET of a config endpoint can return the credentials it holds: the Supabase Management API's /config/auth answers 243 fields including smtp_pass, hook secrets and provider secrets. Never print a raw response. Parse it into a variable and print a named allowlist of the fields you need, as scripts/supabase-auth-config.mjs does. Verbose HTTP clients echo the request too: curl -v prints the Authorization header it sends.

  6. Dry-run the output shape on a dummy value first. Before a command that prints anything derived from a secret, run it with the variable pointed at a known string (X=dummy-value-123) and read what comes out. If the dummy appears, the real one would have.

  7. A value that must be used goes into a variable or a file the tool result never shows. Read it with X=$(cat file) or read -r X < file, pass it as a header or an env var to the process that needs it, and let only that process's non-secret output reach the transcript.

When it has already happened

Treat the value as exposed the moment it is in a tool result, whatever the permission mode and whoever was watching. Say so plainly in the same turn: which secret, which scope (a project key or an account-wide token), and where the transcript lives. Give the rotation steps for that provider. The owner decides whether to rotate; the record of the decision goes in the repo's lessons file with the line skill that should have prevented this: secrets-in-output.

The hook

hooks/secret-echo-guard.mjs (PreToolUse, Bash|PowerShell, plus Read for .env files) denies the command-string shapes above before they run and hands back the safe form in its reason. It is a deny, not an ask, because in a bypass-permissions session an ask is auto-approved and shown to nobody, and unattended is exactly where the slips happened. What the hook cannot see, this skill still owns: a value copied into another variable and printed (k=$KEY; echo $k), any script file run by name (the hook never reads its contents, so an echo $KEY inside bash phase.sh passes), a recursive grep over a folder holding a secret file (grep -rn TOKEN .), and every API response.

Why

A secret in a transcript is not a near miss; it is a disclosure with an unknown audience, and the only cheap moment to prevent it is before the command runs. Presence-and-length costs nothing, answers the real question, and cannot leak. Evidence: ICC L-045 (19 September 2026), the 18 September Sonnet slip recorded in the same repo's 2026-09-18 handover entry.

Provenance and maintenance

Date stamp: 2026-09-20. Distilled from the two ICC incidents above; the hook's asserted cases are in hooks/secret-echo-guard.test.mjs (the two incident commands are its first two deny cases).

FactRe-verify withExpected
The hook is wired for both command toolsnode hooks/check-index.test.mjsPASS secret-echo-guard.mjs is wired for both Bash and PowerShell
The hook denies the two incident shapes and passes the safe formnode hooks/secret-echo-guard.test.mjsALL PASS

Häufig gestellte Fragen

Was macht der KI-Skill Secrets In Output?

Nothing that can carry a secret value may reach a tool result, because the transcript is a synced file re-sent on every turn. Check an env var by presence and length only, list names not values, read a .env file by its keys, capture provider status output and API responses into a variable and print a named allowlist, and dry-run the output shape on a dummy value first. Triggers on any command, script or API call that names an env var, a .env file, a key, token, password or secret, or a credential-carrying header. Does not fire on whether a changed value is live (env-change-verification) or...

Warum Secrets In Output in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Secrets In Output besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Secrets In Output in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/randommonicle/claude-skills/tree/main/secrets-in-output ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Secrets In Output nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Secrets In Output verwenden?

So viele Sie möchten. In TypingMind können Sie Secrets In Output mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Secrets In Output kostenlos?

Ja. Der Skill wird von randommonicle auf GitHub unter der Lizenz Apache-2.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇