
Description
This skill gives a coding agent security guidelines for implementing JSON Web Token authentication and authorization, covering how tokens are created, validated and stored. Its starting point is that JWTs are not secure by themselves; their safety depends entirely on how they are used. The core principles it asks the agent to follow are: always validate tokens on the server, even for internal services; prefer asymmetric signing algorithms such as RS256 or ES256; keep tokens short-lived and build a proper refresh mechanism; and never put sensitive data in the payload, since it can be read by anyone holding the token. It then explains the structure of a token, made of a header, a payload and a signature joined by dots. It is part of the mindrally skills collection. Install with npx skills add https://github.com/mindrally/skills --skill jwt-security.…
Highlights
- Server-side token validation rules
- Prefers RS256 or ES256 signing
- Short-lived tokens with refresh
- No sensitive data in payloads
- Token structure explained
Ratings & Reviews
No ratings yet
Be the first to rate jwt-security.
People also visit

springboot-security
Spring Security best practices for authn/authz, validation, CSRF, secrets

better-auth-security-best-practices
Configure rate limiting, manage auth secrets, set up CSRF protection

auth-implementation-patterns
Authentication and authorization with JWT, OAuth2, sessions and RBAC
jwt-security FAQ
What does the jwt-security skill cover?
Best practices for creating, validating and storing JSON Web Tokens for authentication and authorization.
Which signing algorithms does it recommend?
Asymmetric ones such as RS256 or ES256 where possible.
Should tokens be checked by internal services?
Yes. The skill says to always validate tokens server-side, even for internal services.
How do I install it?
Run: npx skills add https://github.com/mindrally/skills --skill jwt-security
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best jwt-security alternatives?
Popular alternatives to jwt-security include jwt-oauth-token-attacks, springboot-security and better-auth-security-best-practices. See all jwt-security alternatives











