convex-security-check

Audit Convex applications for security vulnerabilities with a checklist and TypeScript examples.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/pratikpakhale/convex-next-starter --skill convex-security-check-pratikpakhale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-security-check
Source: https://github.com/pratikpakhale/convex-next-starter/tree/main/.agent/skills/convex/modules/convex-security-check
Command: npx skills add https://github.com/pratikpakhale/convex-next-starter --skill convex-security-check-pratikpakhale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers proactively identify and fix common security vulnerabilities in their Convex applications, ensuring data integrity and user trust.

Core Features & Use Cases

  • Comprehensive Checklist: Covers authentication, function exposure, argument validation, row-level access control, and environment variable handling.
  • Code Examples: Provides practical TypeScript snippets demonstrating secure patterns for each security aspect.
  • Use Case: Before deploying your Convex application, run through this checklist and apply the provided code examples to harden your authentication, validate all inputs, and ensure only authorized users can access sensitive data.

Quick Start

Review the security checklist and apply the provided code examples to your Convex project.

Frequently Asked Questions about convex-security-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a security audit on my Convex application?

Run a security audit on your Convex application by reviewing a checklist that covers authentication, function exposure, argument validation, row-level access control, and environment variables. Apply provided TypeScript snippets to fix common vulnerabilities.

How does row-level access control work in Convex?

Row-level access control in Convex works by implementing security checks within your query and mutation functions to ensure only authorized users can access sensitive data. The checklist provides TypeScript snippets demonstrating secure patterns.

How do I validate arguments in Convex functions to prevent unauthorized access?

Validate arguments in Convex functions by using the built-in argument validation features to strictly define expected input types. This prevents unauthorized access and data corruption by rejecting malformed or malicious inputs before execution.

What is the best way to secure environment variables in a Convex app?

The best way to secure environment variables in a Convex app is by following deployment best practices that prevent sensitive data exposure. The security checklist provides specific guidance on managing environment variables safely.

Why are my Convex function endpoints exposed to unauthorized users?

Convex function endpoints are exposed to unauthorized users when function access levels are not properly restricted. The security checklist helps you identify and fix incorrect function exposure settings to ensure only authenticated users can execute them.