30 rules that catch what CI cannot
Each rule is deterministic, dependency-free, and fails a build on a real production defect — never a style preference. Every page below is generated from the same registry the CLI and MCP server use, so the docs cannot drift from the engine.
23 error7 warnClerk Auth (5)Supabase Auth (5)DB / Drizzle (7)Vercel / Next (5)UploadThing & Webhooks (4)Inngest Jobs (4)
clerk · 5 rules
- clerk/unprotected-mutationMutating endpoint has no authenticationerror
- clerk/ui-only-role-gateRole is enforced in the UI, not on the serverwarn
- clerk/userprofile-page-missing-props<UserProfile.Page> is missing a required properror
- clerk/middleware-blocks-webhooksMiddleware protects webhook routeserror
- clerk/middleware-missing-auth-await`auth()` is not awaited in middlewareerror
supabase-auth · 5 rules
- supabase-auth/server-get-session`supabase.auth.getSession()` used on the servererror
- supabase-auth/deprecated-auth-helpersImport from the deprecated `@supabase/auth-helpers-nextjs`error
- supabase-auth/service-role-in-clientService-role key referenced in a client moduleerror
- supabase-auth/missing-session-refresh-middlewareMiddleware never refreshes the Supabase sessionwarn
- supabase-auth/sync-cookies-next15`cookies()` used synchronously on Next 15error
db · 7 rules
- db/per-request-clientDatabase client constructed per requesterror
- db/shared-client-max-oneShared client configured with `max: 1`error
- db/supabase-rls-missingTable created in `public` with no RLSerror
- db/rls-permissive-using-trueRLS policy is `USING (true)`warn
- db/neon-pooler-in-migrationsPooler URL used for migrationserror
- db/postgres-js-prepare-true-with-poolerpostgres.js against a pooler without `prepare: false`error
- db/neon-http-multi-statement-tx`db.transaction()` on the Neon HTTP drivererror
vercel · 5 rules
- vercel/hobby-cron-violationCron schedule is not allowed on the Hobby planerror
- vercel/env-parity-driftMissing secret env var is swallowed instead of failing fastwarn
- vercel/serverless-budget-guardLong-running AI call with no `maxDuration`warn
- nextjs/server-action-unvalidated-inputServer action trusts an `any` parametererror
- nextjs/client-secret-leakSecret exposed through a `NEXT_PUBLIC_` variableerror
webhooks · 4 rules
- uploadthing/unauthenticated-file-routerUploadThing route has no auth in `.middleware()`error
- uploadthing/missing-size-or-mime-limitFile route declares no size limiterror
- webhooks/unverified-signatureWebhook parses the body without verifying its signatureerror
- webhooks/payment-update-missing-idempotencyPayment webhook update has no lifecycle predicatewarn
inngest · 4 rules
- inngest/non-deterministic-outside-stepSide effect runs outside `step.run()`error
- inngest/nested-step-run`step.run()` nested inside another `step.run()`error
- inngest/missing-put-handlerInngest serve() does not export `PUT`error
- inngest/missing-retry-or-idempotencyFunction has neither `retries` nor `idempotency`warn