convex-security-check

Audits Convex applications for security vulnerabilities with checklists and code examples.

Updated Aug 30, 2025
One-click install
npx skills add https://github.com/kristofferaas/deep-stortinget --skill convex-security-check-kristofferaas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-security-check
Source: https://github.com/kristofferaas/deep-stortinget/tree/main/.agents/skills/convex-security-check
Command: npx skills add https://github.com/kristofferaas/deep-stortinget --skill convex-security-check-kristofferaas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers quickly audit their Convex applications for common security vulnerabilities, ensuring robust authentication, controlled function exposure, strict argument validation, proper row-level access control, and secure environment variable handling.

Core Features & Use Cases

  • Comprehensive Checklist: Provides a detailed checklist covering key security areas.
  • Code Examples: Illustrates secure coding patterns for authentication, function exposure, argument validation, row-level access control, and environment variable usage.
  • Best Practices & Pitfalls: Highlights common mistakes and recommended approaches for building secure Convex applications.
  • Use Case: A developer can run this Skill to get a structured guide and code snippets to ensure their new Convex backend is secure before deployment.

Quick Start

Use the convex-security-check skill to review the authentication and argument validation for my Convex application.

Frequently Asked Questions about convex-security-check

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

FAQPage Schema
How do I secure my Convex application before deployment?

To secure a Convex application, run a security audit covering authentication, function exposure, argument validation, row-level access control, and environment variable management to ensure robust backend protection before deployment.

How do I implement row-level access control in Convex?

Implement row-level access control in Convex by applying patterns for data ownership checks that verify user identity and restrict query or mutation results to only the rows a user is authorized to access.

What is the best way to validate arguments in Convex functions?

The best way to validate arguments in Convex functions is to use strict data validation patterns that ensure all inputs match expected schemas before executing internal logic or database mutations.

How do I manage environment variables and secrets in a Convex backend?

Manage environment variables and secrets in a Convex backend by following secure secret management patterns that prevent exposure and ensure sensitive data is handled correctly during function execution.

How do I control internal function exposure in Convex?

Control internal function exposure in Convex by auditing function visibility and applying patterns that restrict public access, ensuring only authorized users can invoke specific queries and mutations.

What are common security pitfalls when building Convex applications?

Common security pitfalls when building Convex applications include insufficient user identity verification, exposed internal functions, lax argument validation, and missing data ownership checks, all addressable using recommended secure coding patterns.