Logo di Skills Keys

Skills Keys

Community
Mikefluff
skills-keys

Manage API keys for the runner's --execute layer. CRUD on ~/.skills.env (chmod 600): list / add / update / remove / verify / export. Covers OpenAI, Gemini, BFL, FAL, Replicate, Runway, Kling, Suno, Eleven, Ideogram, Anthropic, S3. Use when: 'add my OpenAI key', 'rotate the Suno key', 'which keys are set', 'verify my key works'.

Panoramica

Pubblicato daMikefluff
Repositoryskills
Nome della skillskills-keys
Stelle
26
Fork
2
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Mikefluff su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Skills Keys in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Mikefluff/skills/tree/main/skills/skills-keys
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mikefluff/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/skills-keys .claude/skills/skills-keys
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Skills Keys in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Skills Keys non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Skills Keys non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

This skill does NOT:

  • Store keys in macOS Keychain / Linux Secret Service (cross-platform parity matters more than OS-native vault for v1).
  • Encrypt the file at rest (chmod 600 is the v1 posture).
  • Manage non-runner keys (database creds, SSH keys, etc.).
  • Validate every provider — only the 9 that have lightweight public verify endpoints.

Use when the user wants to add a new API key, swap one, see what's set, or check whether a key is actually valid against the vendor.

ROLE

Read the user's intent (add/update/remove/list/verify/enable/disable/path/export) → call the matching common/runners/cli/keys.py subcommand → relay the result. Mask values when displaying. Prompt for value silently if not provided on the command line. Never write keys to stdout in full unless export is explicitly requested.

PIPELINE

  1. Parse intent: which subcommand and which arg(s).
  2. Run python3 scripts/run.py <subcommand> [args].
  3. Relay the output — already masked / colorized by the CLI.
  4. Optional follow-up: if user added a new key, suggest running skills-keys verify <KEY> to confirm it works.

MODES

Inspection

  • skills-keys list — show all keys with masked values + gate-flag indicator
  • skills-keys path — print the keys-file path (default ~/.skills.env; override via SKILLS_KEYS_FILE env var)
  • skills-keys verify — ping every supported provider's endpoint, report valid/invalid/unknown/unsupported per key
  • skills-keys verify OPENAI_API_KEY GEMINI_API_KEY — verify specific keys only

Mutation

  • skills-keys add OPENAI_API_KEY sk-proj-... — add or update
  • skills-keys add OPENAI_API_KEY — interactive (silent stdin read; not echoed)
  • skills-keys update OPENAI_API_KEY sk-new-... — alias for add
  • skills-keys remove OPENAI_API_KEY — delete the entry

Gate flags

Three keys are NOT API tokens but on/off gates for paid premium endpoints:

  • OPENAI_SORA_API_ENABLED — required to call Sora 2 (anti-accidental-spend gate)
  • LYRIA_API_ENABLED — required to call Lyria 3 Pro
  • SUNO_API_ENABLED — required to call Suno

Shortcut commands:

  • skills-keys enable SUNO_API_ENABLED — equivalent to add SUNO_API_ENABLED 1
  • skills-keys disable SUNO_API_ENABLED — equivalent to remove SUNO_API_ENABLED

Export

  • skills-keys export — print eval-ready lines:

    export OPENAI_API_KEY="sk-..."
    export GEMINI_API_KEY="..."

    Use to apply file changes to the CURRENT shell: eval "$(skills-keys export)". Plaintext output — only pipe to eval, don't share.

  • skills-keys export --mask — same shape but values masked, for inspection.

REFERENCES (load on demand)

FileWhen to load
references/usage.mdDetailed UX reference — what each subcommand prints, exit codes, interactive prompts, file format, precedence rules

EXAMPLES

See examples/before-after.md — 4 example sessions covering: first-time setup of OpenAI + Gemini, rotating a leaked Suno key, verifying a freshly-pasted key, enabling Lyria gate.

CONSTRAINTS

  • Values are masked in every output EXCEPT export without --mask. Logs / list / add confirmation print sk-pr…WXYZ style only.
  • The file is chmod 600. Skill enforces after every write.
  • Explicit shell exports win. If the user has export OPENAI_API_KEY=... in their .zshrc, the file entry is ignored — by design.
  • Interactive add reads via getpass — value not echoed to terminal or shell history.
  • Don't print full key in error messages. Errors reference env var NAMES, not values.
  • verify uses lightweight HTTP probes — costs $0, no generation. Only 9 providers covered (OpenAI, Gemini, Anthropic, BFL, Ideogram, Replicate, FAL, Runway, ElevenLabs). Suno / Kling / Lyria gate flags / S3 / SKILLS_* don't have verify — they show unsupported.
  • Network errors in verify show as unknown — not a key problem.
  • Don't auto-purge invalid keys. If verify reports invalid, the skill flags it but doesn't delete — the user might have just rotated the key in the vendor dashboard.
  • gate flags are NOT API keys. Use enable / disable for them, not add / remove. The skill warns when you try to misuse.
  • ~/.skills.env location is overrideable via SKILLS_KEYS_FILE=/custom/path. Useful for CI (where home dir might be ephemeral) or multi-profile setups.
  • Never commit ~/.skills.env to git. The home-dir location avoids accidental commits. If someone wants the file elsewhere (project root), they MUST add it to .gitignore.
  • For CI / GitHub Actions: don't use this skill. Use the platform's native secret management (secrets.OPENAI_API_KEY) which propagates to env vars. This skill is for local dev.

INVOCATION HINTS

When the user says any of:

  • "add my key", "store my OpenAI key", "save the Gemini key"
  • "rotate the key", "update / change / swap the X key"
  • "remove / delete the X key", "I leaked my Suno key, take it out"
  • "list keys", "what keys do I have set", "which providers are configured"
  • "verify my key", "test the OpenAI key", "is my key still valid"
  • "enable Suno", "turn on Lyria", "disable Sora"
  • "where do I put my keys", "where is the keys file"

RU triggers:

  • «добавь ключ OpenAI», «сохрани Gemini-ключ»
  • «обнови / поменяй / ротируй ключ X»
  • «удали ключ X», «утёк Suno-ключ, убери»
  • «покажи ключи», «какие ключи у меня заданы»
  • «проверь ключ X», «работает ли OpenAI-ключ»
  • «включи Suno», «выключи Lyria»
  • «где хранятся ключи», «куда вставлять ключи»

Default subcommand if intent is ambiguous: list (safe — masks everything).

This is a meta-skill, sibling to skills-update. Both wrap common/runners/cli/... plumbing. Their outputs are not Claude-produced text — they're tool outputs to be relayed honestly.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Skills Keys?

Manage API keys for the runner's --execute layer. CRUD on ~/.skills.env (chmod 600): list / add / update / remove / verify / export. Covers OpenAI, Gemini, BFL, FAL, Replicate, Runway, Kling, Suno, Eleven, Ideogram, Anthropic, S3. Use when: 'add my OpenAI key', 'rotate the Suno key', 'which keys are set', 'verify my key works'.

Perché usare Skills Keys su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Skills Keys è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Skills Keys in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Mikefluff/skills/tree/main/skills/skills-keys. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Skills Keys?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Skills Keys?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Skills Keys: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Skills Keys è gratuita?

Sì. È pubblicata su GitHub da Mikefluff con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇