{
  "schemaVersion": "1.0",
  "item": {
    "slug": "jwt",
    "name": "JWT",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/ivangdavila/jwt",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/jwt",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/jwt",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=jwt",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "algorithms.md",
      "attacks.md",
      "lifecycle.md",
      "validation.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/jwt"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/jwt",
    "agentPageUrl": "https://openagent3.xyz/skills/jwt/agent",
    "manifestUrl": "https://openagent3.xyz/skills/jwt/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/jwt/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Quick Reference",
        "body": "TopicFileAlgorithm selectionalgorithms.mdToken lifecyclelifecycle.mdValidation checklistvalidation.mdCommon attacksattacks.md"
      },
      {
        "title": "Security Fundamentals",
        "body": "JWTs are signed, not encrypted—anyone can decode and read the payload; never store secrets in it\nAlways verify signature before trusting claims—decode without verify is useless for auth\nThe alg: none attack: reject tokens with algorithm \"none\"—some libraries accepted unsigned tokens\nUse strong secrets: HS256 needs 256+ bit key; short secrets are brute-forceable"
      },
      {
        "title": "Algorithm Choice",
        "body": "HS256 (HMAC): symmetric, same key signs and verifies—good for single service\nRS256 (RSA): asymmetric, private key signs, public verifies—good for distributed systems\nES256 (ECDSA): smaller signatures than RSA, same security—preferred for size-sensitive cases\nNever let the token dictate algorithm—verify against expected algorithm server-side"
      },
      {
        "title": "Required Claims",
        "body": "exp (expiration): always set and verify—tokens without expiry live forever\niat (issued at): when token was created—useful for invalidation policies\nnbf (not before): token not valid until this time—for scheduled access\nClock skew: allow 30-60 seconds leeway when verifying time claims"
      },
      {
        "title": "Audience & Issuer",
        "body": "iss (issuer): who created the token—verify to prevent cross-service token theft\naud (audience): intended recipient—API should reject tokens for other audiences\nsub (subject): who the token represents—typically user ID\nToken confusion attack: without aud/iss validation, token for Service A works on Service B"
      },
      {
        "title": "Token Lifecycle",
        "body": "Access tokens: short-lived (5-15 min)—limits damage if stolen\nRefresh tokens: longer-lived, stored securely—used only to get new access tokens\nRefresh token rotation: issue new refresh token on each use, invalidate old one\nRevocation is hard—JWTs are stateless; use short expiry + refresh, or maintain blacklist"
      },
      {
        "title": "Storage",
        "body": "httpOnly cookie: immune to XSS, but needs CSRF protection\nlocalStorage: vulnerable to XSS, but simpler for SPAs\nMemory only: most secure, but lost on page refresh\nNever store in URL parameters—visible in logs, history, referrer headers"
      },
      {
        "title": "Validation Checklist",
        "body": "Verify signature with correct algorithm (don't trust header's alg)\nCheck exp is in future (with clock skew tolerance)\nCheck iat is not unreasonably old (optional policy)\nVerify iss matches expected issuer\nVerify aud includes your service\nCheck nbf if present"
      },
      {
        "title": "Common Mistakes",
        "body": "Storing sensitive data in payload—it's just base64, not encrypted\nHuge payloads—JWTs go in headers; many servers limit header size to 8KB\nNo expiration—indefinite tokens are security nightmares\nSame secret across environments—dev tokens work in production\nLogging tokens—they're credentials; treat as passwords"
      },
      {
        "title": "Key Rotation",
        "body": "Use kid (key ID) claim to identify which key signed the token\nJWKS (JSON Web Key Set) endpoint for public key distribution\nOverlap period: accept old key while transitioning to new\nAfter rotation, old tokens still valid until they expire—plan accordingly"
      },
      {
        "title": "Implementation",
        "body": "Use established libraries—don't implement JWT parsing yourself\nLibraries: jsonwebtoken (Node), PyJWT (Python), java-jwt (Java), golang-jwt (Go)\nMiddleware should reject invalid tokens early—before any business logic"
      }
    ],
    "body": "Quick Reference\nTopic\tFile\nAlgorithm selection\talgorithms.md\nToken lifecycle\tlifecycle.md\nValidation checklist\tvalidation.md\nCommon attacks\tattacks.md\nSecurity Fundamentals\nJWTs are signed, not encrypted—anyone can decode and read the payload; never store secrets in it\nAlways verify signature before trusting claims—decode without verify is useless for auth\nThe alg: none attack: reject tokens with algorithm \"none\"—some libraries accepted unsigned tokens\nUse strong secrets: HS256 needs 256+ bit key; short secrets are brute-forceable\nAlgorithm Choice\nHS256 (HMAC): symmetric, same key signs and verifies—good for single service\nRS256 (RSA): asymmetric, private key signs, public verifies—good for distributed systems\nES256 (ECDSA): smaller signatures than RSA, same security—preferred for size-sensitive cases\nNever let the token dictate algorithm—verify against expected algorithm server-side\nRequired Claims\nexp (expiration): always set and verify—tokens without expiry live forever\niat (issued at): when token was created—useful for invalidation policies\nnbf (not before): token not valid until this time—for scheduled access\nClock skew: allow 30-60 seconds leeway when verifying time claims\nAudience & Issuer\niss (issuer): who created the token—verify to prevent cross-service token theft\naud (audience): intended recipient—API should reject tokens for other audiences\nsub (subject): who the token represents—typically user ID\nToken confusion attack: without aud/iss validation, token for Service A works on Service B\nToken Lifecycle\nAccess tokens: short-lived (5-15 min)—limits damage if stolen\nRefresh tokens: longer-lived, stored securely—used only to get new access tokens\nRefresh token rotation: issue new refresh token on each use, invalidate old one\nRevocation is hard—JWTs are stateless; use short expiry + refresh, or maintain blacklist\nStorage\nhttpOnly cookie: immune to XSS, but needs CSRF protection\nlocalStorage: vulnerable to XSS, but simpler for SPAs\nMemory only: most secure, but lost on page refresh\nNever store in URL parameters—visible in logs, history, referrer headers\nValidation Checklist\nVerify signature with correct algorithm (don't trust header's alg)\nCheck exp is in future (with clock skew tolerance)\nCheck iat is not unreasonably old (optional policy)\nVerify iss matches expected issuer\nVerify aud includes your service\nCheck nbf if present\nCommon Mistakes\nStoring sensitive data in payload—it's just base64, not encrypted\nHuge payloads—JWTs go in headers; many servers limit header size to 8KB\nNo expiration—indefinite tokens are security nightmares\nSame secret across environments—dev tokens work in production\nLogging tokens—they're credentials; treat as passwords\nKey Rotation\nUse kid (key ID) claim to identify which key signed the token\nJWKS (JSON Web Key Set) endpoint for public key distribution\nOverlap period: accept old key while transitioning to new\nAfter rotation, old tokens still valid until they expire—plan accordingly\nImplementation\nUse established libraries—don't implement JWT parsing yourself\nLibraries: jsonwebtoken (Node), PyJWT (Python), java-jwt (Java), golang-jwt (Go)\nMiddleware should reject invalid tokens early—before any business logic"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/jwt",
    "publisherUrl": "https://clawhub.ai/ivangdavila/jwt",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/jwt",
    "downloadUrl": "https://openagent3.xyz/downloads/jwt",
    "agentUrl": "https://openagent3.xyz/skills/jwt/agent",
    "manifestUrl": "https://openagent3.xyz/skills/jwt/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/jwt/agent.md"
  }
}