SKILL36.5K installs68

Convex Authz

Audit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a client-supplied id, and writes into a parent/container the caller doesn't own. Scans for the 4 shapes, applies requireIdentity/requireOwner, verifies with tsc. TRIGGER on 'secure my app', 'audit auth/authz', 'who can access this data'. SKIP when there is no convex/ directory.

Type
Skill
Author
convex
Category
Security
GitHub stars
68
Installs
36.5K
Last updated
October 29, 2026

Install

npx skills add https://github.com/convex/agent-skills --skill convex-authz

Use cases


Frequently Asked Questions

Which authorization problems does it look for?

Four shapes: identity taken from an argument instead of the auth context, missing per-document ownership checks, public queries leaking data by a client-supplied id, and writes into a parent the caller doesn't own.

What fixes does it apply?

It applies requireIdentity and requireOwner, then verifies the result with tsc.

Does it work outside Convex projects?

No — it skips projects that have no convex/ directory.


About this skill

Audits a Convex app's authorization code for four specific failure shapes: identity taken from an argument instead of the auth context, missing per-document ownership checks, public queries that leak data by a client-supplied id, and writes into a parent the caller doesn't own. It applies requireIdentity and requireOwner fixes and verifies the result with tsc. Trigger it with requests like "secure my app" or "audit authz"; it skips projects with no convex/ directory.

Summary written with AI assistance from the project's public description.


Categories


More from convex


Similar Skills