Jwt Validate

Verify and validate JSON Web Tokens (JWTs) by checking signatures, expiration, claims, and structure. Use when the user wants to verify, validate, or check a JWT — e.g. "verify this token", "is this JWT valid", "check the signature", "validate this token against my JWKS", "is this token expired". Supports HMAC, RSA, and ECDSA with secrets, PEM keys, or JWKS endpoints.

23 stars 14 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jsonwebtoken/jwt-skills --skill jwt-validate
Manual install
git clone --depth 1 https://github.com/jsonwebtoken/jwt-skills.git /tmp/jwt-skills
mkdir -p ~/.claude/skills
cp -r /tmp/jwt-skills/jwt-validate ~/.claude/skills/jwt-validate

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# JWT Validate

Verify a JWT's signature and validate its claims. Confirms the token is authentic, unexpired, and structurally sound.

## Validation Order

Check in this order. Stop and report at the first failure.

### 1. Structure

- Exactly 3 dot-separated parts, each valid base64url
- Header and payload parse as valid JSON
- Header contains `alg`; `alg` is not `none` (unless explicitly expected)

### 2. Claims

- `exp` must be in the future (report time until expiry or how long ago it expired)
- `nbf` must be in the past or present
- `iat` must be in the past; flag if > 30 days old
- `iss`, `aud`, `sub` — if user provides expected values, they must match
- Allow 60 seconds clock skew tolerance on all time checks

### 3. Signature

Requires the user to provide a secret, PEM public key, or JWKS URI. Always pass secrets and tokens via inline env vars to avoid shell history exposure.

**Node.js** (preferred):

First, ensure `jose` is available — install it globally if missing:

```bash
node --input-type=module -e "await import('jose')" 2>/dev/null || npm install -g jose
```

Then verify the token:
Read the full skill on GitHub

Details

Skill name
jwt-validate
Path
jwt-validate/SKILL.md
Repo updated
7 April 2026

FAQ

What does the Jwt Validate skill do?

Verify and validate JSON Web Tokens (JWTs) by checking signatures, expiration, claims, and structure. Use when the user wants to verify, validate, or check a JWT — e.g. "verify this token", "is this JWT valid", "check the signature", "validate this token against my JWKS", "is this token expired". Supports HMAC, RSA, and ECDSA with secrets, PEM keys, or JWKS endpoints.

How do I install the Jwt Validate skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jsonwebtoken/jwt-skills --skill jwt-validate. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Jwt Validate popular?

It lives in jsonwebtoken/jwt-skills, which has 23 GitHub stars and 14 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.