Skip to content
Skill

JWT

Guides an agent to issue and verify JWTs and JOSE keys safely against current RFCs

JWT is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About JWT

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (55 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

JWT 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.

More from ScaleDockHQ/better-supabase

  1. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown

    • Open source
    • 5 GitHub stars
    • Files and documents
  2. Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI

    • Open source
    • 5 GitHub stars
    • Browser automation
  5. Guides an agent to write, review and validate SKILL.md skills against the Agent Skills

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Write, place, migrate and review AGENTS.md instruction files for coding agents

    • Open source
    • 5 GitHub stars
    • Developer tools