# JWT

> JWT is an open-source agent skill for security. Guides an agent to issue and verify JWTs and JOSE keys safely against current RFCs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/jwt
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** jwt
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill covers the IETF JOSE family of specifications for signed tokens (JWS), encrypted tokens (JWE) and JSON Web Keys, together with JWT claims. It walks the agent through choosing an allow-list of algorithms for each issuer, publishing keys as a JWK Set, issuing tokens with explicit typ values and claims, and running a fixed verification checklist covering format, header, key lookup, signature and claims.

The skill points out well-known failure modes such as algorithm confusion, alg none, unchecked kid, jku or x5u headers, and missing aud or typ checks. It also covers newer guidance on fully specified algorithms like Ed25519, post-quantum ML-DSA keys, and RFC 9068 access token profiles including roles, groups and entitlements. Several previews are marked as build or track postures, so the agent applies them only where the deployment opts in.

The skill is documentation-driven and includes reference files on versions, algorithms and keys, verification with a TypeScript example using jose, and access tokens. It expects the agent to work with the user's issuer, key sources, token kinds and target language.

## When your agent uses it

> JWT and JOSE: verify and issue JWS, JWE and JWK safely. Covers RFC 7515 JWS, RFC 7516 JWE, RFC 7517 JWK, RFC 7518 JWA, RFC 7519 JWT, RFC 8037 OKP keys, the RFC 8725 JWT Best Current Practices and its rfc8725bis update, RFC 9864 fully specified algorithms (Ed25519 instead of EdDSA), RFC 9964 ML-DSA signatures with AKP keys, the deprecation of none and RSA1_5, HPKE for JWE, RFC 9068 JWT access tokens with roles, groups and entitlements, RFC 7638 thumbprints, the RFC 7800 cnf claim, and the IANA JOSE and JWT registries. Use when validating or signing JWTs, choosing alg values, publishing a JWKS, checking typ, kid, iss, aud, exp or nbf, preventing algorithm confusion or alg none attacks, issuing at+jwt access tokens, adopting post-quantum ML-DSA or HPKE, naming a new claim, reviewing a JWT library, or upgrading a verifier to rfc8725bis. Lines: the JOSE RFCs (current); rfc8725bis, Deprecate none and RSA1_5, and HPKE for JWE are build previews; PQ/T composite signatures and JSON Web Proof are tracked.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/jwt)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/jwt)

## Features

- **Algorithm allow-lists:** Rules for restricting verifiers to fixed algorithms and rejecting none, RSA1_5 and mismatched key types.
- **Token verification checklist:** Ordered checks on format, header, kid lookup, signature, iss, aud, exp, nbf and typ.
- **Token issuance guidance:** Explicit typ, required claims, short expiry and per-recipient audience when issuing tokens.
- **Key publishing and strength:** Guidance on JWK Set members, distinct kid values, HMAC and RSA key sizes.
- **RFC 9068 access tokens:** Profile for at+jwt access tokens with standard claims and roles, groups and entitlements.
- **Post-quantum and fully specified algorithms:** Notes on Ed25519 in place of EdDSA and ML-DSA signatures with AKP keys.

## Good for

- Review our JWT validation code for algorithm confusion risks
- Issue RFC 9068 access tokens signed with Ed25519
- Publish a JWKS with rotated signing keys and kid values
- Check that a verifier rejects alg none and wrong typ tokens
- Upgrade an RFC 8725 verifier to the rfc8725bis rules

## Install

### Claude Code

This skill ships in the `better-supabase` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase
```

Or copy only this skill to `~/.claude/skills/jwt`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/jwt &&
cp -R "$tmp/.agents/skills/jwt" ~/.claude/skills/jwt &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/jwt` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/jwt` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/jwt &&
cp -R "$tmp/.agents/skills/jwt" ~/.agents/skills/jwt &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/jwt` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/jwt` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/jwt &&
cp -R "$tmp/.agents/skills/jwt" ~/.cursor/skills/jwt &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/jwt` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/jwt
```

Or copy the folder to `~/.gemini/skills/jwt` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/jwt`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/jwt &&
cp -R "$tmp/.agents/skills/jwt" ~/.copilot/skills/jwt &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/jwt` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git
```

Then copy `better-supabase/.agents/skills/jwt` into your agent's skills folder as `jwt`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does JWT need any scripts or tools to run?

The skill has no scripts. It is a set of instructions and reference files that guide the agent through JWT and JOSE work.

### What does JWT change in a project?

The skill itself only supplies guidance. Any code changes come from the agent's work on the user's own issuer or verifier.

### Which drafts does JWT apply by default?

The JOSE RFCs are the default. The rfc8725bis and none and RSA1_5 deprecation drafts are applied as stricter build-posture checks, while HPKE for JWE is used only when a deployment opts in.

### Are post-quantum signatures recommended for production?

ML-DSA from RFC 9964 can be chosen when every verifier supports it. Composite signatures and JSON Web Proof are tracked only and are not to be issued in production.

### How do I install JWT in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/jwt to use it in all your projects, or to .claude/skills/jwt in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

### Does JWT run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use JWT?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to JWT?

The closest alternatives to JWT are Sh kb auth, API security auth pattern, Authentication, Auth and rbac and Axiom security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sh kb auth](https://ai-powered.com/skills/sh-kb-auth): Sh kb auth is an open-source agent skill for security.
- [API security auth pattern](https://ai-powered.com/skills/api-security-auth-pattern): API security auth pattern is an open-source agent skill for security.
- [Authentication](https://ai-powered.com/skills/authentication): Authentication is an open-source agent skill for security.
- [Auth and rbac](https://ai-powered.com/skills/auth-and-rbac): Auth and rbac is an open-source agent skill for security.
- [Axiom security](https://ai-powered.com/skills/axiom-security-charleswiltgen-2): Axiom security is an open-source agent skill for security.
- [Sh kb crypto](https://ai-powered.com/skills/sh-kb-crypto): Sh kb crypto is an open-source agent skill for finance and payments.
- [Security](https://ai-powered.com/skills/security-sorah): Security is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/jwt-scaledockhq
