Logo von Shoo Auth

Shoo Auth

Community
Firstp1ck
shoo-auth

Nutzen Sie diesen Skill, wenn Sie die Google-Anmeldung mit Shoo auth (shoo.dev) in Browser-Apps evaluieren, implementieren, überprüfen oder debuggen – einschließlich @shoojs/react, @shoojs/auth, gehostetem shoo.js, benutzerdefinierter JWT-Integration mit Convex, PKCE-Callbacks, Sitzungsprüfungen und serverseitiger id_token-Verifizierung. Nicht für andere Auth-Systeme verwenden.

Übersicht

HerausgeberFirstp1ck
Repositorypi-coding-agent-forge
Skill-Nameshoo-auth
Sterne
93
Forks
22
Mitgelieferte Dateien
2
LizenzMIT
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.

  • Mitgelieferte Dateien: 2

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

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

Installation

Installieren Sie den KI-Skill Shoo Auth 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/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-shoo-auth/skills/shoo-auth
  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/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-shoo-auth/skills/shoo-auth .claude/skills/shoo-auth
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Shoo Auth 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 Shoo Auth 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 Shoo Auth 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.

Shoo Auth

Deterministic workflow for deciding when Shoo fits and for applying it safely. This draft is not enabled automatically.

Primary reference snapshot: references/shoo-docs-summary.md. Refresh the live Shoo docs before high-stakes or production decisions.

When to Use

Use this skill when the task mentions any of:

  • Shoo, shoo.dev, @shoojs/auth, @shoojs/react, window.Shoo, shoo.js, or pairwise_sub.
  • Adding minimal Google sign-in to a browser app without Google client registration.
  • Choosing between Shoo React, vanilla JS, framework-agnostic, hosted-script, or Convex integration.
  • Implementing or reviewing Shoo callback handling, PKCE flow, session/revocation checks, or server-side id_token verification.
  • Debugging Shoo audience, callback, storage, Convex JWT, or missing-PII issues.

Do not use this skill as the primary workflow for unrelated auth providers or generic OAuth/OIDC work, except to explicitly decide that Shoo is not a fit.

Do Not Use / Escalate

Do not recommend Shoo as the sole answer when requirements include:

  • Non-Google identity providers, passwords, enterprise SSO/SAML/SCIM, or rich hosted user management.
  • Server-only auth without a browser redirect flow.
  • Production authorization based only on browser-local identity, localStorage, or decoded-but-unverified JWT claims.
  • Security/compliance-critical auth where maturity, SLAs, audit evidence, or operational ownership must be established first.

When any of these apply, state the mismatch and either ask whether Shoo is still mandatory or recommend comparing established auth providers.

Inputs and Assumptions

Before changing code, determine these from the user or the project:

  • Frontend shape: React, Next.js, vanilla/static, Convex, or another browser client.
  • App origin for each environment, e.g. http://localhost:3000 and https://app.example.com.
  • Callback path and whether that path is served by the app/router.
  • Server/runtime that will verify Shoo id_tokens.
  • Whether PII (email, name, picture) is actually needed.
  • Package manager and existing auth/session conventions.

If these are missing and the repository is available, inspect manifests/routes before asking. If app origin or production verification path is unknown, ask; do not guess for production auth.

Fit Gate

Apply this gate before implementation:

  1. Identity provider: if Google-only sign-in is not acceptable, Shoo is not a fit.
  2. Client model: if the app cannot perform browser redirects and store callback state in browser storage, Shoo is likely not a fit.
  3. Identifier model: if an opaque per-origin stable ID is acceptable, use pairwise_sub/sub as the user key; if a global Google subject is required, Shoo is not a fit.
  4. PII minimization: default to no PII. Use requestPii: true only when the app genuinely needs email, name, or picture and the UI explains why.
  5. Production rule: production access control requires server verification of every Shoo id_token before trusting identity.
  6. Maturity rule: for business-critical auth, verify current docs/package status and explicitly surface adoption risk before recommending Shoo.

Workflow

1. Choose the integration path

Use the first matching path:

Project needUseNotes
React SPA or React client component@shoojs/react + useShooAuth()Primary path for React. SSR-safe hook initializes in browser.
Next.js App Router@shoojs/react plus a client callback pageAdd a page at the configured callback path so the redirect does not 404.
Convex + React@shoojs/react + createShooConvexAuth() + Convex customJwtAlso configure issuer/JWKS/ES256 and preferably audience/application ID.
Static/vanilla/no bundlerHosted script https://shoo.dev/shoo.jsUse window.Shoo.startSignIn(), getIdentity(), clearIdentity().
Framework-agnostic browser client@shoojs/authUse lower-level client methods for custom flows.
Server APIJWT verification onlyShoo sign-in is browser-oriented; the server should verify tokens, not initiate trust from localStorage.

2. Add the client integration

  • Use the repository's package manager (bun, npm, pnpm, or yarn); ask before dependency changes unless implementation was explicitly requested.
  • Default Shoo base URL is https://shoo.dev.
  • Default framework-agnostic callback path is /auth/callback; docs also show /shoo/callback for Convex/hosted examples. Keep the configured callback path consistent across client, routes, and server expectations.
  • React: call useShooAuth() in a client-side component; render sign-in when !identity.userId; call signIn() or signIn({ requestPii: true }); call clearIdentity() for sign-out.
  • Vanilla/hosted script: include https://shoo.dev/shoo.js; use window.Shoo.startSignIn({ returnTo, requestPii }); read window.Shoo.getIdentity(); clear with window.Shoo.clearIdentity().
  • Custom client: create createShooAuth({ callbackPath, shooBaseUrl }); use startSignIn(), handleCallback() or finishSignIn(), getIdentity(), clearIdentity().
  • Keep returnTo relative or same-origin unless the app has an explicit open-redirect defense.

3. Handle callback deterministically

  • Ensure the callback path is served by the SPA/router/static host.
  • For Next.js App Router, create a client callback page that calls useShooAuth() and renders a transient "Signing in…" state.
  • Prefer the high-level callback handler (useShooAuth auto handling or handleCallback) unless the app needs custom redirect control.
  • If using manual handling, remove callback params after exchange and consume return-to state once.

4. Verify tokens server-side before authorization

Never authorize from identity.userId, localStorage, or decodeIdentityClaims() alone. Server verification must check:

CheckRequired value
Issuerhttps://shoo.dev
Audienceorigin:{new URL(appOrigin).origin}
SignatureES256 against https://shoo.dev/.well-known/jwks.json
ExpirationNot expired
Core claimpairwise_sub exists and is a string

TypeScript shape with jose:

ts
import { createRemoteJWKSet, jwtVerify } from "jose";

const jwks = createRemoteJWKSet(
  new URL("/.well-known/jwks.json", "https://shoo.dev"),
);

export async function verifyShooToken(idToken: string, appOrigin: string) {
  const audience = `origin:${new URL(appOrigin).origin}`;
  const { payload } = await jwtVerify(idToken, jwks, {
    issuer: "https://shoo.dev",
    audience,
  });

  if (typeof payload.pairwise_sub !== "string") {
    throw new Error("Shoo token missing pairwise_sub");
  }

  return payload;
}

Treat email, email_verified, name, and picture as optional display/profile claims. Do not require them unless PII was requested and consented.

5. Add session/revocation handling when persistent sessions matter

  • @shoojs/auth exposes checkSession() and startSessionMonitor().
  • @shoojs/react has autoSessionMonitor enabled by default and uses a 60s default interval.
  • On login_required with reason revoked, expired, or invalid_token, clear local identity and prompt sign-in.
  • If checkSession() reports unsupported, degrade gracefully and rely on token expiration/server verification.

6. Convex path

For Convex, configure a custom JWT provider:

ts
export default {
  providers: [
    {
      type: "customJwt",
      issuer: "https://shoo.dev",
      jwks: "https://shoo.dev/.well-known/jwks.json",
      algorithm: "ES256",
      // Prefer also setting applicationID: "origin:https://your-app-origin"
    },
  ],
};

Then create a module with createShooConvexAuth({ callbackPath }), pass its useAuth to ConvexProviderWithAuth, and use identity.subject from ctx.auth.getUserIdentity() as the stable user ID.

Common Failure Map

SymptomLikely causeDeterministic check
Server rejects token for audienceAPP_ORIGIN, redirect URI origin, or Convex application ID mismatchCompare exact new URL(origin).origin values; audience must be origin:{origin}.
Callback route 404Router/static host does not serve callback pathAdd route/page at configured callback path.
No identity after redirectCallback handler did not run, state/verifier lost, storage key mismatch, or code/state absentCheck callback URL, sessionStorage PKCE state, localStorage identity key, and handler execution.
PII claims missingPII not requested or user did not consentUse requestPii: true only when needed; treat claims as optional.
Convex unauthenticatedProvider config mismatch or token not passed by adapterCheck issuer, JWKS, ES256, applicationID, and fetchAccessToken().
Works locally but fails in productionOrigin/audience or callback path differsConfigure per-environment origin and callback path explicitly.

Verification

For implementation tasks, verify at the smallest meaningful level:

  • Build/typecheck/lint/tests for the modified repository.
  • Callback path exists and does not 404.
  • A successful sign-in produces an identity whose userId/pairwise_sub is present and starts with the expected opaque ps_ form.
  • Server verification succeeds for a real Shoo token from the current app origin.
  • Negative verification rejects a token with the wrong audience, a tampered signature, or an expired token when feasible in tests.
  • Authorization decisions use server-verified payloads, not client-decoded claims.
  • Optional PII is absent by default and appears only after explicit requestPii: true/consent.
  • Convex: an authenticated query can read ctx.auth.getUserIdentity() and returns identity.subject.

Optional endpoint sanity checks:

bash
curl -fsS https://shoo.dev/.well-known/openid-configuration
curl -fsS https://shoo.dev/.well-known/jwks.json

Safety and Failure Modes

  • Shoo sign-in contacts shoo.dev and Google and changes browser storage; disclose this for manual tests.
  • Do not log, paste, persist, or commit raw id_tokens or OAuth callback URLs containing codes/state.
  • Do not store secrets or user tokens in skill memory, fixtures, or examples.
  • Do not make production auth recommendations without server verification and a maturity/risk caveat.
  • Do not present decodeIdentityClaims() as verification; it is display-only.
  • Be careful with localStorage-based identity in XSS-sensitive apps; server verification does not remove the need for normal frontend security controls.
  • Ask before enabling this draft skill or moving it into an auto-discovered skill root.

Sources and Maintenance

  • Live docs root: https://docs.shoo.dev/docs.
  • API refs: /docs/api-reference/shoo-react and /docs/api-reference/shoo-auth.
  • Verification docs: /docs/server-verification.
  • Flow docs: /docs/how-it-works.
  • Convex docs: /docs/convex.
  • Discovery/JWKS: https://shoo.dev/.well-known/openid-configuration and https://shoo.dev/.well-known/jwks.json.

If the live docs conflict with this skill, prefer the live docs and update the skill.

Pi Adapter

  • In Pi, fetch the Shoo docs directly for current claims when the decision is production/security-sensitive.
  • Before editing an unfamiliar app, use repository exploration first, then make the smallest route/config/client/server changes needed.
  • This file is a disabled draft under a non-discovered draft directory; review and ask before enabling.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Shoo Auth?

Nutzen Sie diesen Skill, wenn Sie die Google-Anmeldung mit Shoo auth (shoo.dev) in Browser-Apps evaluieren, implementieren, überprüfen oder debuggen – einschließlich @shoojs/react, @shoojs/auth, gehostetem shoo.js, benutzerdefinierter JWT-Integration mit Convex, PKCE-Callbacks, Sitzungsprüfungen und serverseitiger id_token-Verifizierung. Nicht für andere Auth-Systeme verwenden.

Warum Shoo Auth in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Shoo Auth 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 Shoo Auth in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-shoo-auth/skills/shoo-auth ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Shoo Auth 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 Shoo Auth verwenden?

So viele Sie möchten. In TypingMind können Sie Shoo Auth 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 Shoo Auth kostenlos?

Ja. Der Skill wird von Firstp1ck auf GitHub unter der Lizenz MIT 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 👇