Skills

Convex Authz

Audit and harden a Convex app's authorization: identity-from-arg impersonation, missing...

Install

npx skills add openclaw/clawhub --skill convex-authz -g -a claude-code -y
Repository
openclaw/clawhub9.5k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Mediumabout 2,180 tokens
Runs scripts
No, instructions only

What it does

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.

<!-- GENERATED from convex-agents content/capabilities/convex-authz.json, do not edit by hand. -->

Convex Authz Auditor/Hardener

A focused authz specialist, not a general reviewer: it finds and fixes the four shapes that account for the largest real-defect cluster measured against generated Convex backends (25 identity-from-arg + 13 missing-ownership-check + 6 PII-leak-by-argument = 44 of 214 confirmed defects, plus the parent-reference-on-write variant of the ownership shape that fixture measurement showed the 3-shape scan misses). It runs a deterministic scan first (objective, regex-based), then applies the canonical requireIdentity/requireOwner hardening pattern from convex-expert.md to every hit, then verifies with tsc. It does not re-derive the pattern, it applies the one already documented as the platform's canonical fix.

Workflow

Read the whole SKILL.md on GitHub

More in Engineering