Skill / SKILL.md

Factory Auth

nonlinear-xyz/factory-kit

Auth and authorization conventions distilled across builds with three different auth stacks (Better Auth + orgs, Supabase Auth + RLS, Clerk). Covers the provider decision matrix, the unified wrapper interface (`requireAuth` / `requireRole` / `withOrgContext`), procedure tier stacking, session handling, OAuth callback safety, plugin composition with Better Auth, and the anti-patterns (hardcoded allowlists, admin client at module scope, triple-fallback auth surfaces).
3 views 10 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Auth and authorization conventions distilled across builds with three different auth stacks (Better Auth + orgs, Supabase Auth + RLS, Clerk). Covers the provider decision matrix, the unified wrapper interface (`requireAuth` / `requireRole` / `withOrgContext`), procedure tier stacking, session handling, OAuth callback safety, plugin composition with Better Auth, and the anti-patterns (hardcoded allowlists, admin client at module scope, triple-fallback auth surfaces).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/nonlinear-xyz/factory-kit' skill-source

Use the complete skill-source/skills/factory-auth directory with your client’s skill installer.

Source directory skills/factory-auth

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
1 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
fb65dead97b629d928ebf36e9e4980282701122c93f9eec4238cd502fb249c40
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills