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.
mdr add zitadel/nextgen/zitadel-sdk-sveltekit@git:20261021.ab19e1ePins 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
mdr add zitadel/nextgen/zitadel-sdk-sveltekit@sha256:0f147cdb65c3f3edThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261021.ab19e1e latest | 2026-10-21 | ab19e1e | 5,311 B | C | view · diff |
| git:20261019.12b3226 | 2026-10-19 | 12b3226 | 5,309 B | C | view · diff |
| git:20261019.c1ec7ca | 2026-10-19 | c1ec7ca | 5,155 B | C | view · diff |
| git:20261019.7f82bfc | 2026-10-19 | 7f82bfc | 5,005 B | C | view |
Audit of the latest version
- 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
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.