Logo di Workos Setup

Workos Setup

Organizzazione
workos
workos-setup

Set up WorkOS AuthKit sign-in in a project with `npx workos@latest install`, which needs no WorkOS account. Use when the user asks to add WorkOS or AuthKit authentication to an app, to scaffold a new app with WorkOS, or to claim the temporary WorkOS environment the installer created.

Panoramica

Autoreworkos
Repositoryskills
Nome della skillworkos-setup
Stelle
46
Fork
6
File inclusi
Solo istruzioni
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.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

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

Installazione

Installa la skill IA Workos Setup 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/workos/skills/tree/main/well-known/setup
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova 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 nella cartella delle skill di quell'agente.

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

Usala in TypingMind

Attiva Workos Setup 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 Workos Setup 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 Workos Setup 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à.

Set up WorkOS

The WorkOS CLI adds AuthKit sign-in to a project. When it finds no WorkOS credentials, it provisions a temporary WorkOS environment, so the user doesn't need a WorkOS account to start. They can claim the environment into their account later.

Before you start

Tell the user what you will do and wait for a yes:

  1. Add WorkOS AuthKit sign-in to this project, or scaffold a new Next.js app if the directory is empty.
  2. Use the project's existing WorkOS credentials if it has them. Otherwise, create a temporary WorkOS environment they can claim later.

If the project already uses a different auth provider, stop and agree on a migration plan before changing anything. Don't remove existing auth without approval.

Run the installer

From the project root:

bash
WORKOS_MODE=agent npx workos@latest install
  • It writes WORKOS_API_KEY, WORKOS_CLIENT_ID and, for a new environment, WORKOS_CLAIM_TOKEN to .env.local (or .env when there is no package.json), and adds that file to .gitignore. Don't delete the claim token or the CLI profile before the environment is claimed.
  • It puts its changes on a new git branch. Pass --no-branch to stay on the current one. If it stops with git_dirty, ask the user to commit or stash first.
  • In agent mode it prints JSON. On failure, follow error.recovery.hints. Exit code 4 means it could not provision an environment: ask the user to run npx workos@latest install in their own terminal, and don't write keys yourself.
  • If the user already has a WorkOS account, have them run npx workos@latest auth login in their own terminal first, since it opens a browser. The installer then uses their Staging environment instead of creating a temporary one.

Verify

The installer's success report is not proof that sign-in works. It also reports which application URLs (Sign-out URI, Initiate login URI, CORS origin) it saved and which it left for you. Start the app and check that:

  • Sign-in completes and creates an app session.
  • Sign-out ends the session and lands on the configured Sign-out URI.
  • A sign-in started outside the app, such as an invitation or password-reset email, reaches the Initiate login URI and continues without a loop or callback error.

The Initiate login URI must be an app route that starts AuthKit sign-in, not the callback. Configure any URL the installer left by following the framework's AuthKit guide at https://workos.com/docs/authkit, or references/workos-authkit-setup.md if the workos skill is installed. If you can't save a setting or test a flow, tell the user exactly which ones remain. Never call setup complete from the installer's report, a build, or doctor output alone. To diagnose a broken integration, run WORKOS_MODE=agent npx workos@latest doctor --json --skip-ai.

Claim the environment

Only if the installer created a new environment (the env file gained WORKOS_CLAIM_TOKEN), tell the user it is temporary and how to claim it. On the same machine:

bash
WORKOS_MODE=agent npx workos@latest profile claim

In agent mode it returns a claim URL as JSON. Give that URL to the user, who signs in or creates a free account and confirms. Claiming is permanent. Never ship a temporary environment's keys to production.

Go further

  • WorkOS skills for coding agents: npx skills add https://workos.com. Ask first, since it writes into the agent's skills folder. The workos skill covers SSO, Directory Sync, RBAC, migrations, and the rest of WorkOS.
  • Documentation index: https://workos.com/docs/llms.txt. Add .md to any documentation URL to get Markdown.
  • Raw HTTP steps for provisioning and claiming an environment without Node.js: https://workos.com/auth.md

Domande frequenti

Cosa fa la skill IA Workos Setup?

Set up WorkOS AuthKit sign-in in a project with `npx workos@latest install`, which needs no WorkOS account. Use when the user asks to add WorkOS or AuthKit authentication to an app, to scaffold a new app with WorkOS, or to claim the temporary WorkOS environment the installer created.

Perché usare Workos Setup su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Workos Setup è 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 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 Workos Setup in TypingMind?

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

Quali modelli IA possono usare Workos Setup?

Qualsiasi modello che colleghi in 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 Workos Setup?

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

La skill IA Workos Setup è gratuita?

Sì. È pubblicata su GitHub da workos 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, modelli 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.

Vedi tutti

Crea subito la tua area di lavoro IA

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