zitadel-sdk-sveltekit SKILL.md skillC

zitadel-sdk-sveltekit from zitadel/nextgen is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add zitadel/nextgen/zitadel-sdk-sveltekit@git:20261021.ab19e1e

Pins git:20261021.ab19e1e in mdr.lock. Pin the fingerprint instead.

Audit grade
C, 15 of 17 checks passed
Kind
SKILL.md skill
Repository
zitadel/nextgen
Path
packages/sdk-sveltekit/skills/zitadel-sdk-sveltekit/SKILL.md
Versions recorded
4
Latest version
git:20261021.ab19e1e, committed Oct 21, 2026
First version recorded
Oct 19, 2026
Size
5,311 bytes
Repository stars
27
License
AGPL-3.0

Integrate Zitadel authentication into an existing or custom SvelteKit app with @zitadel/sdk-sveltekit. Use when the user wants login, logout, session handling, or protected routes in a SvelteKit 2 or 3 app and is wiring the SDK by hand rather than letting the CLI scaffold a fresh project — adding the `handle` hook, reading auth state in a load function, or rendering the `ZitadelLogin` / `ZitadelSession` widgets.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# @zitadel/sdk-sveltekit

A SvelteKit `handle` hook and helpers that add Zitadel (Nextgen) auth to a
SvelteKit app. The hook proxies auth traffic same-origin under `/__nextgen`,
verifies the session JWT via JWKS on the server, writes the result to
`event.locals.nextgenAuth`, and redirects unauthenticated requests on protected
routes. The package is server-only; the widgets come from `@zitadel/sdk-svelte`.

## When to use

The `zitadel` CLI (`zitadel setup --framework sveltekit`) scaffolds the hook,
login/register/profile routes, and `.env.local` into a fresh or detected
SvelteKit project — prefer it for greenfield work. Reach for **this skill** when
you are adding auth to an **existing or custom** SvelteKit app by hand, or
adjusting a scaffolded wiring.

## Install

```bash
pnpm add @zitadel/sdk-sveltekit@latest
# the login/logout/session widgets are a separate package:
pnpm add @zitadel/sdk-svelte@latest
```

Peer deps: `@sveltejs/kit ^2.0.0 || ^3.0.0`, `svelte ^5.0.0`.

## Integrate

**1. Server hook.** Create or extend `src/hooks.server.ts`:

```ts
import { createNextgenHandle } from '@zitadel/sdk-sveltekit/server';

export const handle = createNextgenHandle({
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zitadel/nextgen/zitadel-sdk-sveltekit@sha256:0f147cdb65c3f3ed

The line at the top of this page pins the label git:20261021.ab19e1e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vmz7yzjtxii4e3zw.svg)](https://markdownregistry.com/a/art_vmz7yzjtxii4e3zw)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Oct 19, 2026 and Oct 21, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261021.ab19e1e latest2026-10-21 ab19e1e 5,311 BC view · diff
git:20261019.12b32262026-10-19 12b3226 5,309 BC view · diff
git:20261019.c1ec7ca2026-10-19 c1ec7ca 5,155 BC view · diff
git:20261019.7f82bfc2026-10-19 7f82bfc 5,005 BC view

Audit of the latest version

C  15 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No instruction to read or print local credentials (matched: Read config from `process.env)
  • fail: No script tag (matched: <script)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5311 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

zitadel/nextgen · 27 stars · license AGPL-3.0 · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vmz7yzjtxii4e3zw
GET https://markdownregistry.com/api/v1/resolve?ref=zitadel/nextgen/zitadel-sdk-sveltekit
GET https://markdownregistry.com/api/v1/blob/0f147cdb65c3f3ed475b5c159371c15e5a640eccf77543e5a89a4e234fba4453

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from zitadel/nextgen

.cursorrules Cursor rule
zitadel/nextgen · .cursorrules
git:20261014.2e7bbe8 · audit A · 27 stars
AGENTS.md@.moon AGENTS.md file
zitadel/nextgen · .moon/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md AGENTS.md file
zitadel/nextgen · AGENTS.md
git:20261017.9e45fa5 · audit A · 27 stars
AGENTS.md@api/openapi AGENTS.md file
zitadel/nextgen · api/openapi/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps AGENTS.md file
zitadel/nextgen · apps/AGENTS.md
git:20261015.74f0bb1 · audit A · 27 stars
AGENTS.md@apps/cli AGENTS.md file
zitadel/nextgen · apps/cli/AGENTS.md
git:20261016.c9fd392 · audit A · 27 stars
zitadel-cli SKILL.md skill
zitadel/nextgen · apps/cli/skills/zitadel-cli/SKILL.md · Set up and manage Zitadel authentication in a local project with the agent-friendly `zitadel` CLI. Use when the user…
git:20261018.eef798c · audit A · 27 stars
AGENTS.md@apps/cli/src/lib/local-server AGENTS.md file
zitadel/nextgen · apps/cli/src/lib/local-server/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/cli/tests AGENTS.md file
zitadel/nextgen · apps/cli/tests/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/console AGENTS.md file
zitadel/nextgen · apps/console/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/docs AGENTS.md file
zitadel/nextgen · apps/docs/AGENTS.md
git:20261021.9b24d6e · audit A · 27 stars
AGENTS.md@apps/storybook AGENTS.md file
zitadel/nextgen · apps/storybook/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars

Every file in zitadel/nextgen

Browse by kind, by grade C, or by owner.