BeClaude

auth-skills

New
Community RegistryGeneralby Alex Yang

Create and update auth layer for JavaScript/TypeScript projects

First seen 5/22/2026

Summary

This skill helps developers quickly scaffold and update authentication layers in JavaScript/TypeScript projects.

  • It provides reusable patterns for common auth flows like JWT, OAuth, and session management, reducing boilerplate and security risks.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/auth-skills.md https://raw.githubusercontent.com/better-auth/skills/main/SKILL.md
3
Invoke in Claude Code
/auth-skills

Use Cases

Set up JWT-based authentication with access and refresh tokens in a new Express API.
Add OAuth2 login (Google, GitHub) to an existing Next.js application.
Implement role-based access control (RBAC) for a TypeScript backend.
Migrate a project from session-based auth to token-based auth.
Generate password hashing and validation utilities using bcrypt.
Create middleware for protected routes in a Node.js/Express app.

Usage Examples

1

/auth-skills add jwt auth to my express app with refresh tokens

2

Set up Google OAuth login for my Next.js project using this skill

3

Add role-based access control middleware to my TypeScript API

View source on GitHub
typescript

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is auth-skills?

This skill helps developers quickly scaffold and update authentication layers in JavaScript/TypeScript projects. It provides reusable patterns for common auth flows like JWT, OAuth, and session management, reducing boilerplate and security risks.

How to install auth-skills?

To install auth-skills: create the skills directory (mkdir -p .claude/skills), then run: mkdir -p .claude/skills && curl -o .claude/skills/auth-skills.md https://raw.githubusercontent.com/better-auth/skills/main/SKILL.md. Finally, /auth-skills in Claude Code.

What is auth-skills best for?

auth-skills is a skill categorized under General. It is designed for: typescript. Created by Alex Yang.

What can I use auth-skills for?

auth-skills is useful for: Set up JWT-based authentication with access and refresh tokens in a new Express API.; Add OAuth2 login (Google, GitHub) to an existing Next.js application.; Implement role-based access control (RBAC) for a TypeScript backend.; Migrate a project from session-based auth to token-based auth.; Generate password hashing and validation utilities using bcrypt.; Create middleware for protected routes in a Node.js/Express app..