.agents/skills/auth-jwt/SKILL.md
Work on Madoc TS JWT parsing, verification, and service token behavior. Use when changing JWT payload handling, signature verification, or service JWT configuration in services/madoc-ts.
npx skillsauth add digirati-co-uk/madoc-platform auth-jwtInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Explain how JWTs are verified and parsed so changes to claims, service tokens, or verification stay consistent.
services/madoc-ts/src/utility/verify-signed-token.tsservices/madoc-ts/src/utility/parse-jwt.tsservices/madoc-ts/src/utility/get-token.tsservices/madoc-ts/service-jwts/madoc-ts.jsonverify-signed-token.ts verifies RS256 JWTs via jwtVerify, with a fallback compactVerify for expired tokens when ignoreExpired is true.parse-jwt.ts builds application state from JWT claims and supports service tokens plus gateway-issued tokens.service-jwts/madoc-ts.json defines scope and service identity for Madoc TS service tokens.services/madoc-ts/src/utility/verify-signed-token.ts to understand verification and expiry handling.services/madoc-ts/src/utility/parse-jwt.ts for how claims map into ApplicationState.services/madoc-ts/service-jwts/madoc-ts.json for service token scope and identity.ApplicationStatex-madoc-* overridestools
Work on Madoc TS shared utility helpers (JWT, metadata, errors, IIIF helpers, auth helpers). Use when changing core utility functions or shared helpers in services/madoc-ts.
development
Work on Madoc TS shared type definitions and schema contracts. Use when updating TypeScript types, JSON schema shapes, or cross-layer data contracts in services/madoc-ts.
tools
Understand and extend Madoc TS task automation, including bots and task-related extensions. Use when adding task automation, bot behavior, or task metadata resolution in services/madoc-ts.
development
Work on Madoc TS site SSR pipeline, HTML template injection, and site render data wiring. Use when changing site SSR behavior, template tokens, or site SSR data wiring in services/madoc-ts.