Reviews an existing PermDock setup or a pull request that changes it. Use when auditing permissions, reviewing a PR that touches permissions.ts, policy.ts or an adapter guard, finding ungranted or unused leaves, missing human approvals on agent tools, closures that should be portable, validate never, untested grants, or mapping an app to OWASP ASI02 and ASI03. Use whenever the user asks to audit, review or harden PermDock.
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.
None: SKILL.md is the whole skill.
Read the app's permissions.ts, policy.ts, factory file and every adapter guard, then write the findings as a Markdown checklist the user can turn into pull requests. Every finding names the file and the permission or role.
permdock binary runs here (permdock usage --json, permdock doctor --json; the report is in the result's data); otherwise walk the files and the catalog by hand.decide or can.definePermissions, every role from defineRoles / role(), every plan from definePlans, and every grant from definePolicy (grants, role bindings, delegations). Note which entries import the policy (server, agent) and which import only the snapshot (client).
✓ Every leaf, role, plan and grant is in the report, including leaves with zero grants.allow mentions is ungranted: grant it or delete it. A granted leaf never passed to can, decide, assert, protect, tools or <Protected> is unused; confirm with usage --json or a repo-wide search for the reference.
✓ Every leaf is tagged granted and used, granted and unused, or ungranted.validate: 'never' on a policy that sees HTTP bodies, MCP arguments or model output is a finding.permdock/react and the client half of a framework adapter) import permissions and snapshots only.subject and actor come from the host session or subjectFrom*, never from tool arguments or a model-supplied id.limit grant without limits on createPermDock always denies with limit-unavailable, and a mutation that only calls can never spends a unit.ctx.supabaseAdmin, withPostgresAdminClient or service_role client sits behind permdock.assert(...) (or withPermDock({ protect })), and subjectFromSupabase receives getClaims() output or ctx.jwtClaims, never getSession().access_token or user_metadata.
✓ Each check has a pass or a file-level finding.npx skills add ScaleDockHQ/PermDock --skill <name>): permdock-agents, permdock-approvals, permdock-tenancy, permdock-data, permdock-credentials.
✓ Every item of every applicable Verify list has a pass or a finding.describePolicy suite, or one with exhaustive: false, is a finding: a new permission can ship untested. A custom ApprovalStore, DecisionSink, MembershipSource, CustomRoleSource, SnapshotSource, LimitStore, RelationSource or DirectoryStore without its test<Interface> runner from permdock/testing is a finding.
✓ Every policy and custom store has its runner, or a finding.owasp-agentic spec skill (npx skills add ScaleDockHQ/scaledock-skills --skill owasp-agentic).
approval, capability lists that include denied tools.mode: "confirm" on a sensitive action, a resume token not bound to permission, resource, subject and actor, API keys stored in plain text or created outside decideCredential, keys without expiry (PD029), and a memberships source applied to service-key subjects.
✓ Each agent adapter in the app has an ASI02 line and an ASI03 line.permdock collect --check and permdock usage --json on both sides and compare. New leaves with no grant, grants for leaves nobody checks, and new undeclared or outsideInclude findings are comments.allow (a role gains a leaf, a where is dropped or loosened, a to becomes anyone() or authenticated()), a new policy delegations entry, or a removed deny needs a matching describePolicy row in the same PR.permdock-agents and permdock-approvals Verify lists.rls config or generated RLS comes with permdock rls generate --check passing and an testRlsParity or rls verify run.permdock doctor --json on the head branch reports no new error.
✓ Every changed grant, leaf and tool has a comment on the changed line or an explicit pass.permdock-agents, permdock-approvals, permdock-tenancy, permdock-data and permdock-credentials skills.permdock doctor, permdock usage, testing.What SKILL.md sets; muted values are Claude Code's defaults
/permdock:permdock-auditfrom PermDock
npx claudepluginhub scaledockhq/permdock --plugin permdock8 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-approvalsRequires human approval on PermDock grants, notifies approvers and resumes the approved call. Use when adding approval to a destructive or money-moving action (delete, publish, pay, refund, transfer), choosing approvers with approval by, user(), relation(), manager(), mode confirm or authorize, quorum, ttl, escalation, staleOn or approvalFingerprint, ordering approvers with combine and stages, covering an approver with an ApprovalDelegation, loading approval rules as data with an ApprovalPolicySource, separating preparer and approver with exclusiveWith, labelling operations with risk and effects meta, mounting approvalsHandler with an ApprovalStore, sending approval emails (approvalEmail) or chat cards (approvalCard, approvalActions) from approvalPrompt, parking a background run on an ApprovalWaiter (pollingApprovalWaiter, workflowSdkWaiter), resuming with the PermDock-Approval header, mapping approval-required to an agent runtime, MCP elicitation or AG-UI interrupt, or fixing doctor PD017, PD018 or PD024./permdock-credentialsResolves 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./permdock-dataEnforces PermDock permissions in database queries and Postgres row-level security. Use when listing rows with permdock.where() and filter(), compiling conditions with toWhere from permdock/drizzle, permdock/prisma or permdock/kysely, guarding Convex functions with permdock/convex, generating or verifying RLS with permdock rls generate, verify or migrate, modelling folders, sub-teams or reporting lines with parent and relation() through a RelationSource, prefetchRelations or whoCan, or proving query and database parity with testOrmParity and testRlsParity. Also for doctor PD027, PD028, PD031 and PD032./permdock-tenancyModels tenants, memberships, contacts and support sessions in PermDock. Use when declaring named scopes (organizations, workspaces, customers inside an organization), loading memberships through a MembershipSource, putting a role on one scope, keeping an owner per organization with min, max or transferOnly, controlling who hands out which role with assigns and for, checking a membership change with decideRoleChange, letting tenant admins define custom roles with customRoles and validateCustomRole, giving external customer contacts portal access as kind contact principals found through a PrincipalSource and principalByIdentity, letting support staff view the app as a customer with decideSupportSession, signSupportSession and subjectFromSupportSession, or fixing doctor PD023, PD025 or PD026 and denials such as tenant-mismatch, last-holder, not-assignable-by or reason-required.Other plugins' skills for the same job