jwx-guide-v4

jwx-guide-v4 is a skill for Claude Code, Codex from lestrrat-go/jwx. It costs 61 tokens per session (4,712 once invoked), scanned A, original, MIT.

A guide for Go developers using jwx version 4, a library for working with signed tokens, encrypted tokens, and their keys.

In plain words
What is it for?
Use it when implementing or reviewing JWT, JWS, JWE, JWK, or cryptographic-algorithm code with jwx v4.
Why use it?
It points to the right reference sources and helps avoid common mistakes when parsing or creating these security tokens.

Skill for Claude CodeCodex

Part of the jwx-dev-v4 plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lestrrat-go/jwx/guide
Any agent
npx skills add lestrrat-go/jwx --skill guide
Clone the repo
git clone --depth 1 https://github.com/lestrrat-go/jwx

Made for: Claude Code, Codex.

Or install jwx-dev-v4, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jwx-guide-v4

README.md
[![agentmods](https://agentmods.dev/badge/skills/lestrrat-go/jwx/guide.svg)](https://agentmods.dev/skills/lestrrat-go/jwx/guide)
Your own site
<a href="https://agentmods.dev/skills/lestrrat-go/jwx/guide"><img src="https://agentmods.dev/badge/skills/lestrrat-go/jwx/guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,712 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.04712
Opus 5 $0.00030 $0.02356
Sonnet 5 $0.00012 $0.00942
Haiku 4.5 $0.00006 $0.00471

Measured 4d ago against content hash e8e9bcf280e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

jwx-guide-v4 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/plugin/skills/guide/SKILL.md · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.

jwx-guide-v4

This skill helps you assist Go developers who are using github.com/lestrrat-go/jwx/v4 in their own projects. It is scoped to v4 only — for v3 or v2, install the corresponding jwx-dev-v3 / jwx-dev-v2 plugin.

Where to look things up

You will not have this repository checked out. To verify an API claim before answering, use these sources, in order of preference:

  1. Go module cache — if the user's project depends on jwx, the source is on disk:
    echo "$(go env GOMODCACHE)/github.com/lestrrat-go/jwx/v4@$(go list -m -f '{{.Version}}' github.com/lestrrat-go/jwx/v4)"
    
    This directory contains the full source tree including docs/, jwt/, jws/, jwe/, jwk/, jwa/.
  2. pkg.go.dev — canonical API reference for any exported symbol:
    • https://pkg.go.dev/github.com/lestrrat-go/jwx/v4
    • https://pkg.go.dev/github.com/lestrrat-go/jwx/v4/jwt (etc. per subpackage)
  3. GitHub — narrative documentation lives at the repo:
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/01-jwt.md
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/02-jws.md
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/03-jwe.md
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/04-jwk.md
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/10-extensions.md
    • https://github.com/lestrrat-go/jwx/blob/develop/v4/docs/99-faq.md
  4. Examples repo — runnable usage patterns. The repo's README.md is a topical index that maps "what do I want to do" → "which *_example_test.go file." Fetch the README first when looking for an example by topic; then fetch the linked file:
    • https://github.com/jwx-go/examples/blob/develop/v4/README.md

When the user's question goes beyond the patterns in this skill (custom claim types, JWE recipients with per-recipient headers, nested JWS+JWE serializers, custom key providers, base64 backend swap, performance tuning), fetch from these sources rather than guessing.

Read the full file on GitHub · 314 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 314 lines · 61 tokens per session scan A e8e9bcf280e9

Subscribe to this mod's changes

jwx-guide-v4 is a skill published in the GitHub repository lestrrat-go/jwx (2,418 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 4,712 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jwt

Development guide for the jwt JSON Web Token library for Go (github.com/kataras/jwt). Use this skill when signing or verifying JWTs, choosing a signing algorithm (HMAC, RSA, RSA-PSS, ECDSA, EdDSA), reading or validating standard or custom claims, setting expiry and clock-skew tolerance, rotating keys with a kid-based…

kataras/jwt · 107 tokens

use-modern-go

Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.

JetBrains/go-modern-guidelines · 32 tokens

sq-gomod-dependabot

Reviews and merges Dependabot pull requests for Go modules (gomod) at the sq repo root. Use for dependabot gomod PRs, go.mod/go.sum updates, and Go module security bumps—not site/ Bun PRs.

neilotoole/sq · 54 tokens

golang-gomlx

Machine learning models training and inference using GoMLX for Go. It provides an abstraction to create vectorized computation graphs, that can then be JIT-compiled (Just-In-Time) and executed very fast, with backends using XLA (for CPU/CUDA/TPU), Go and others. Includes a reach set of vector (tensors) operations on…

gomlx/gomlx · 143 tokens

go

Use for Go changes in Neva: authoring, refactoring, debugging, or review.

nevalang/neva · 21 tokens

gograph

Go repository intelligence for Claude Code. Use when reading, navigating, editing, reviewing, or refactoring a Go codebase. Exposes 64 query, analysis, and workflow capabilities through the local gograph MCP server, including bounded first-call exploration, AST-aware call graphs, blast-radius analysis, impact, and…

ozgurcd/gograph · 69 tokens