security-engineer

Audits Supabase RBAC policies, Edge Functions, Stripe webhooks, and secret handling.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/coreymaypray/sloth-skill-tree --skill security-engineer-coreymaypray
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-engineer
Source: https://github.com/coreymaypray/sloth-skill-tree/tree/main/plugins/maycrest-secure/skills/security-engineer
Command: npx skills add https://github.com/coreymaypray/sloth-skill-tree --skill security-engineer-coreymaypray

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect Corey's apps from production threats such as misconfigured RLS policies that expose data, insecure Stripe webhook handlers, and secret leakage across frontend and mobile bundles.

Core Features & Use Cases

  • Audit Supabase RLS policies for completeness, correctness, and potential bypasses
  • Design RBAC schemas using Postgres roles and policy combinations to enforce least privilege
  • Review Edge Functions for authentication enforcement, input validation, and secret handling
  • Validate Stripe webhook signatures and ensure idempotent processing to prevent replay attacks
  • Detect and remediate secret exposure in client apps or build-time environments
  • Provide actionable remediation guidance with concrete fixes and guardrails for new features

Quick Start

Configure a new Supabase project for security review following the guardrails to identify gaps and prioritized fixes.

Frequently Asked Questions about security-engineer

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

FAQPage Schema
How do I audit Supabase RLS policies for security bypasses?

Auditing Supabase RLS policies involves reviewing Postgres role combinations and policy logic to enforce least privilege and detect potential data exposure bypasses. This process provides actionable remediation guidance with concrete fixes to secure row-level security configurations.

How do I validate Stripe webhook signatures and prevent replay attacks?

Validating Stripe webhook signatures requires verifying incoming request signatures at the trust boundary and ensuring idempotent processing. This prevents replay attacks and secures payment integration endpoints against unauthorized or duplicated event injections.

What is the best way to secure Supabase Edge Functions and enforce auth checks?

Securing Supabase Edge Functions requires enforcing authentication checks on endpoints, validating inputs at trust boundaries, and properly handling secrets. This hardening process prevents unauthorized access and protects sensitive data processed by serverless functions.

How do I prevent secret exposure in Expo mobile and web app bundles?

Preventing secret exposure in Expo and web apps involves scanning client bundles and build-time environments for leaked credentials. This detection and remediation process ensures API keys and sensitive tokens are not accidentally shipped to frontend production environments.

Does this security review cover RBAC schema design for Supabase Postgres roles?

Yes, this security review covers RBAC schema design by using Postgres roles and policy combinations to enforce least privilege. It applies to mobile and web apps built on Expo, Supabase, and Stripe integrations requiring strict access control.

What are common limitations when hardening Supabase RLS and Edge Functions?

Limitations when hardening Supabase RLS and Edge Functions often involve complex policy combinations that can inadvertently bypass authentication or expose secrets. Anticipating these edge cases requires strict input validation at trust boundaries and continuous auditing of endpoint auth checks.