Convex apps tend to ship with the same few authorization holes: a userId passed as a client argument that anyone can forge, a db.patch on a document id with no ownership check, a public query that returns email or revenue for whatever id it's handed, and a mutation that drops a child row into a project the caller doesn't belong to. This skill scans convex/ for those four shapes with regexes first, then applies the requireIdentity and requireOwner pattern from the convex-expert reference and reruns tsc to confirm. I like that it refuses to add ctx.auth checks to a repo that has no auth.config.ts or subject-keyed users table, since enforcement there silently does nothing and only makes the code look safer. The catch is the scanner is regex-based, so expect it to miss creative patterns, and read the diff before trusting it.

skills.sh installs
41.3K
GitHub stars
69
last updated
Oct 26, 2026

Install

$ npx -y skills add convex/agent-skills --skill convex-authz --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/convex/agent-skills
Categories
Backend & APIs, Security, AI & Agent Building, Rust, Databases
First seen
Oct 26, 2026

More from convex/agent-skills

All 30
1convex avatarconvex-reviewerconvex/agent-skillsConvex code reviewer — security, auth, validators, performance, and pattern checks for code in a convex/ directory. Use to review or audit Convex functions befo41.3Kskills.sh installs
2convex avatarconvex-docsconvex/agent-skillsPull version-current Convex docs for the version this project uses — pin the installed version, fetch page-as-markdown or check node_modules types, freshness hi41.3Kskills.sh installs
3convex avatarconvex-designconvex/agent-skillsDesign and build reactive, type-safe, production-grade backends on Convex. Covers schema, queries/mutations/actions, indexes, auth, file storage, scheduling, re41.2Kskills.sh installs
4convex avatarconvex-launch-readinessconvex/agent-skillsRun every Convex audit (authz, reviewer, advisor, insights) into one scored, deduped readiness report with an ordered fix plan — Lighthouse for your backend.41Kskills.sh installs
5convex avatarconvex-explain-appconvex/agent-skillsExplain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the41Kskills.sh installs
6convex avatarconvex-domainsconvex/agent-skillsPoint a domain you already own at your Convex app (DNS records, custom-domain attach, auth-origin rebind).41Kskills.sh installs