Audit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking PII/financial data by a client-supplied id, and writes into a parent/container the caller doesn't own — the single largest real-defect cluster measured against generated Convex backends (44 of 214). Runs a deterministic scan for the 4 shapes, then applies the canonical requireIdentity/requireOwner pattern, then verifies with tsc. TRIGGER on 'secure my app', 'audit auth', 'add login', 'who can access this data', or an explicit 'audit my authz'. NOT always-on. SKIP when there is no convex/ directory.
$npx -y skills add get-convex/convex-backend-skill --skill convex-authzInstalls into the current project.
Run `npx skills use "https://github.com/get-convex/convex-backend-skill" --skill "get-convex/convex-backend-skill/convex-authz"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/get-convex/convex-backend-skill" that are relevant to the current task. Run `npx skills add "https://github.com/get-convex/convex-backend-skill"` and select the relevant skills, then follow their instructions.