Agent skill
jwt-verify
Implement JWT verification middleware in FastAPI for user auth. Use when securing APIs or handling tokens.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/jwt-verify
SKILL.md
JWTVerify Instructions
Input: Request with Authorization header, shared secret. Output: Verified user claims or 401 error. Steps:
- Install dependencies if needed (jose, fastapi-security).
- Generate middleware code. Example Code: from fastapi import Depends, HTTPException from jose import JWTError, jwt from fastapi.security import HTTPBearer security = HTTPBearer() async def verify_jwt(token: str = Depends(security)): try: payload = jwt.decode(token.credentials, SECRET_KEY, algorithms=["HS256"]) return payload except JWTError: raise HTTPException(401, "Invalid token")
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?