CtrlK
BlogDocsLog inGet started
Tessl Logo

nuxt-better-auth

Use when implementing auth in Nuxt apps with @onmax/nuxt-better-auth - provides useUserSession composable, server auth helpers, route protection, and Better Auth plugins integration.

94

1.25x
Quality

93%

Does it follow best practices?

Impact

94%

1.25x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

86%

25%

Set Up Authentication for a Nuxt 4 App

Module installation and config files

Criteria
Without context
With context

Correct module name

100%

100%

Server config path

0%

0%

Client config path

0%

0%

Secondary storage enabled

28%

100%

Redirect config: login

100%

100%

Redirect config: guest

100%

100%

defineServerAuth import

0%

100%

Server config uses factory fn

100%

100%

Cookie cache enabled

100%

100%

Cookie cache maxAge

100%

100%

createAppAuthClient import

0%

100%

BETTER_AUTH_SECRET documented

100%

100%

NUXT_PUBLIC_SITE_URL documented

100%

100%

Secret min length note

100%

100%

96%

28%

Implement Protected Dashboard with Login Flow

Route protection and client auth patterns

Criteria
Without context
With context

routeRules dashboard auth

100%

100%

routeRules guest page

100%

100%

routeRules public path

50%

100%

useUserSession composable

100%

100%

Safe redirect: starts with /

100%

100%

Safe redirect: blocks //

100%

100%

ready ref check

50%

50%

BetterAuthState component

0%

100%

BetterAuthState placeholder slot

0%

100%

BetterAuthState default slot

0%

100%

signOut called correctly

100%

100%

signIn.email pattern

100%

100%

100%

4%

Add Admin Role Management and Two-Factor Authentication

Plugin setup and server-side access control

Criteria
Without context
With context

Server admin plugin import

100%

100%

Server 2FA plugin import

100%

100%

Server plugins array

100%

100%

twoFactor issuer

100%

100%

Client adminClient import

100%

100%

Client twoFactorClient import

100%

100%

Client plugins array

100%

100%

serverAuth() for sessions

100%

100%

requireUserSession admin role

75%

100%

getUserSession null pattern

100%

100%

set-role admin protection

75%

100%

Import path documentation

100%

100%

No server plugins on client

100%

100%

Repository
onmax/nuxt-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.