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
Does it follow best practices?
Evaluation — 94%
↑ 1.25xAgent success when using this skill
Validation for skill structure
Module installation and config files
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%
Without context: $0.8969 · 4m 31s · 35 turns · 842 in / 7,644 out tokens
With context: $0.4026 · 1m 3s · 20 turns · 20 in / 3,259 out tokens
Route protection and client auth patterns
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%
Without context: $0.8573 · 3m 57s · 25 turns · 24 in / 6,635 out tokens
With context: $0.6773 · 1m 37s · 32 turns · 80 in / 5,951 out tokens
Plugin setup and server-side access control
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%
Without context: $1.3463 · 4m 16s · 59 turns · 627 in / 14,187 out tokens
With context: $0.2828 · 47s · 17 turns · 45 in / 2,908 out tokens
Table of Contents
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.