Resolves PermDock subjects from access tokens, API keys and share links. Use when verifying OAuth or OIDC access tokens with subjectFromJwt or an introspection response with subjectFromIntrospection, issuing personal access tokens, API keys, service accounts or feed keys with decideCredential and resolving them with subjectFromApiKey, setting tenant key rules (maxTtl, kinds, allowNoExpiry) in a SettingsSource, minting guest or share links with signCapability and resolving them with subjectFromCapability, serving a link through RLS with exchangeCapability, or fixing doctor PD029 and on('auth') causes such as invalid-chain.
Ships in PermDock. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Authentication is upstream: core never verifies a token. A subjectFrom* resolver verifies the material and hands core a Subject, and anything it cannot verify becomes the anonymous subject, never a throw (authentication). Set up the policy and factory first with the permdock-wire skill (npx skills add ScaleDockHQ/PermDock --skill permdock-wire).
user) keys, service accounts (service), or both; where the hashes are stored; the tenant rules on lifetime and kinds.permdock/jwt, permdock/server key helpers and the provider subjectFrom* helpers do.on('auth').user_metadata), and never take a subject from a request body, an unsigned header, a CLI flag or a model argument.hashApiKey(key) and show the key once. A user or service key lists its permissions and expires unless the tenant opts in with allowNoExpiry. A feed key (pdfeed_) does not expire; rotation replaces the secret, and the key is bound to one resource.exchangeCapability, never service_role.npx skills add ScaleDockHQ/scaledock-skills --skill <name>): jwt for JOSE, oauth for access tokens and introspection, openid-connect for ID tokens and Discovery.jwtSubjectResolver({ discovery, audience }) per issuer from permdock/jwt for the life of the process, because it caches Discovery and the JWKS; subjectFromJwt(token, options) caches nothing and suits a one-off check. Or use subjectFromIntrospection when the app already called introspection. -> references/tokens-keys-links.md
✓ An ID token, a token for another audience and an expired token each resolve to the anonymous subject.decideCredential(permdock, request, { settings }), store the hash with the returned Credential, and show the key once. -> references/tokens-keys-links.md
✓ A service key wider than its creator is denied with exceeds-creator.subjectFromApiKey(key, { verifier: apiKeyVerifier({ find }), permissions, principals, revoked, settings, sink, tenant }) on each request.
✓ A revoked or expired key is anonymous, and a user key never exceeds its owner's current rights.signCapability behind a guard of its own, and resolve with subjectFromCapability and the tenant's linkPolicy. With Supabase RLS, exchange the link with exchangeCapability and generate with --capabilities. -> references/tokens-keys-links.md
✓ An expired, revoked or replayed (once) link resolves to the anonymous subject.permdock doctor.
✓ The tests pass and PD029 is clean.subjectFromJwt uses Discovery or an explicit jwks plus issuer, sets audience, and allows only Ed25519, ES256 or PS256.user_metadata, a request body or an unsigned header.permdock.decideCredential behind their own guard, and expire (PD029).memberships source is passed to createPermDock for service-key subjects.exchangeCapability.subjectFromJwt options, introspection, CI OIDC, decideCredential, key storage and resolution, tenant settings, signCapability, subjectFromCapability, exchangeCapability.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/permdockExplains how PermDock decides and routes to the right PermDock skill. Use first for any work with permdock, typed permissions, roles or access control in a TypeScript app, when a check is denied and the reason is unclear, when reading a Decision, denial reason or doctor code, when looking up current PermDock identifiers through the docs MCP, or when choosing between the permdock-wire, permdock-audit, permdock-agents, permdock-approvals, permdock-tenancy, permdock-data and permdock-credentials skills./permdock-agentsGuards AI agent tool calls, automations and chat commands with PermDock operations, subjects, actors and delegation. Use when declaring defineOperations, wiring operations in permdock/agent, permdock/ai-sdk, permdock/claude-agent, permdock/openai, permdock/eve or permdock/mcp, gating models or filtering tool results, running published automations with permdock/workflow or permdock/workflow-sdk, protecting chat commands and approval buttons with permdock/chat or permdock/chat-sdk, separating the user (principal) from the agent (actor), declaring a delegation option or policy delegations, publishing an A2A Agent Card with permdock/a2a, registering WebMCP tools with permdock/webmcp, verifying Web Bot Auth signers as actors, or when agent calls are denied with no-delegation or not-delegated./permdock:permdock-credentialsfrom PermDock
npx claudepluginhub scaledockhq/permdock --plugin permdock