Jwt Encode

Create and sign JSON Web Tokens (JWTs) for testing and development. Use when the user wants to generate, create, build, or sign a JWT — e.g. "create a JWT", "generate a test token", "sign this payload", "make a JWT with these claims", "build an access token". Supports HMAC, RSA, and ECDSA algorithms.

23 stars 14 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jsonwebtoken/jwt-skills --skill jwt-encode
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-encode ~/.claude/skills/jwt-encode

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 Encode

Create and sign JWTs for testing and development.

## Steps

1. **Gather inputs**: claims/payload, algorithm (default: HS256), secret or key, expiration (default: 1 hour).
2. **Build header**: `{"alg": "HS256", "typ": "JWT"}`. Add `kid` if provided.
3. **Build payload**: Always include `iat` and `exp` unless the user opts out. Add user-specified claims.
4. **Sign the token** using the best available method (see below).
5. **Display the result**: the full JWT string and a decoded breakdown of header + payload.

## Signing Methods

Pick the first available. Use the user's claims, secret, and algorithm — the examples below are templates only. Always pass the secret via an inline env var 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 sign the token:

```bash
JWT_SECRET='user-provided-secret' node --input-type=module -e "import {SignJWT} from 'jose'; console.log(await new SignJWT({sub:'1234567890'}).setProtectedHeader({alg:'HS256'}).setIssuedAt().setExpirationTime('1h').sign(new TextEncoder().encode(process.env.JWT_SECRET)))"
```

**Python**:

```bash
JWT_SECRET='user-provided-secret' python3 -c "import jwt,time; print(jwt.encode({'sub':'1234567890','iat':int(time.time()),'exp':int(time.time())+3600}, __import__('os').environ['JWT_SECRET'], algorithm='HS256'))"
```
Read the full skill on GitHub

Details

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

FAQ

What does the Jwt Encode skill do?

Create and sign JSON Web Tokens (JWTs) for testing and development. Use when the user wants to generate, create, build, or sign a JWT — e.g. "create a JWT", "generate a test token", "sign this payload", "make a JWT with these claims", "build an access token". Supports HMAC, RSA, and ECDSA algorithms.

How do I install the Jwt Encode skill?

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

Is Jwt Encode popular?

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

Related skills

Jwt Decode

23

jsonwebtoken/jwt-skills

Decode and inspect JSON Web Tokens (JWTs) without verification. Use when the user provides a JWT string and wants to see its header, payload, or claims — e.g. "decode this JWT", "what's in this token", "inspect this JWT", "show me the claims", "parse this token". Also triggers on raw JWT strings (three base64url segments separated by dots).

Other14

Jwt Validate

23

jsonwebtoken/jwt-skills

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.

Other14

Run Simulations

59

ratacat/claude-skills

Use BEFORE and AFTER running trading engine simulations. Helps with: (1) SETUP - choosing configs, selecting segments via segment collections, batch sizing (recommend 2,000-3,000 runs); (2) EXECUTION - running batch simulations with --collection; (3) ANALYSIS - comprehensive diagnostics after runs. Triggers on: 'run simulations', 'test configs', 'batch simulation', 'analyze sim results', 'which configs to test', 'how many segments', 'simulation setup'.

Testing & QA10

Uat Coordinator

52

korchard333/claude-power-platform-community

Power Platform Solution Consultant and UAT Coordinator (Ava). Use when: writing UAT scripts from acceptance criteria, coordinating test cycles, tracking defects, confirming UAT sign-off, bridging requirements and implementation review, demo preparation, user training documentation, change management. Trigger when user says "UAT", "test scripts", "user acceptance", "defect tracking", "demo prep", "training guide", or "sign-off".

Testing & QA

Test Browser

59

ratacat/claude-skills

Run browser tests on pages affected by current PR or branch

Testing & QA10

Testing

52

korchard333/claude-power-platform-community

Power Platform Testing Strategy. Use when: writing unit tests, E2E tests, Vitest/Jest setup, Playwright, Canvas App testing, plugin testing with FakeXrmEasy, Solution Checker, accessibility testing with axe-core, CI/CD test integration.

Testing & QA

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.