What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

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
#103of 239
Installs
51Kon 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

Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app

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).

  • Adoption35 points 46
  • Upkeep20 points 100
  • Trust20 points 85
  • Quality15 points 100
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

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.

ScannerResultDate
Gen Agent Trust HubPassedJul 11, 2026
SocketPassedJul 11, 2026
SnykLow riskJul 11, 2026

Details

Installs
50,970
Repository stars
229
Last repository change
Tokens always loaded
about 89
Tokens when used
about 2,554
License
Not stated
Data confidence
High

Alternatives to better-auth-security-best-practices

All skills for this job