better-auth-security-best-practices: a Claude Code skill by Better Auth
Official
For developers running Better Auth who want to lock down sessions, cookies and sign-in limits before launch. Skip it if your app uses a different auth library.
- Score
- 76of 100
- Rank
- #95of 200
- Installs
- 50.1Kon skills.sh
- Security
- Clear 3 scanners
- Updated
- 2026
- Context
- ~89tokens always
Install
npx skills add https://github.com/better-auth/skills --skill better-auth-security-best-practices Run it in your terminal. View the source
What does better-auth-security-best-practices do?
better-auth-security-best-practices is a Claude skill that walks Claude through hardening a Better Auth setup in its TypeScript config. It covers where the secret is read from and how to generate one with openssl, rate limit windows and storage with stricter defaults on sign-in and sign-up routes, and CSRF checks that should stay on. It explains trusted origins, including wildcards and per-request lists, session expiry and cookie caching strategies, cookie attributes and cross-subdomain cookies. Further sections handle encrypting OAuth tokens with AES-256-GCM, IP header settings behind proxies, audit logging through database hooks and a checklist to run before deploying.
When should you use better-auth-security-best-practices?
Use it when
- Preparing a Better Auth app for production
- Sign-in endpoints are getting brute forced
- Sharing a login across subdomains
Skip it when
- Your app uses a different auth library
What it needs and what it can touch
You need
- A project that uses the Better Auth library
From reading its instructions, not from running it.
Why it scores 76
Strongest on upkeep (100 of 100), weakest on adoption (46).
Is better-auth-security-best-practices safe to install?
Every scanner that checked it passed it. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Jul 11, 2026 |
| Socket | Passed | Jul 11, 2026 |
| Snyk | Low risk | Jul 11, 2026 |
Details
- Installs
- 50,116
- Repository stars
- 229
- Last repository change
- Tokens always loaded
- about 89
- Tokens when used
- about 2,554
- License
- Not stated
- Data confidence
- High
Did it do the job for you?
Alternatives to better-auth-security-best-practices
All skills for this job-
Get supabase-postgres-best-practicessupabase-postgres-best-practices
For developers writing SQL, schemas or row level security policies on any Postgres database.
-
Get supabasesupabase
For developers building on Supabase who want auth, RLS and migrations handled with care.
-
Get solana-devsolana-dev
For developers building Solana programs, clients or wallet UIs who want current tooling defaults.
-
Get security-auditsecurity-audit
For developers who want a source-based security review, from one question up to a full multi-agent audit.