Thanks to visit codestin.com
Credit goes to officialskills.sh

Back to skills

explain-error

officialdevelopment

Explains Better Auth error codes and messages in plain English, lists common causes, and generates error handling code with user-friendly messages and retry logic.

Setup & Installation

npx skills add https://github.com/better-auth/skills --skill better-auth-explain-error
or paste the link and ask your coding assistant to install it
https://github.com/better-auth/skills/tree/main/better-auth/explain-error
View on GitHub

What This Skill Does

Explains Better Auth error codes and messages in plain English, lists common causes, and generates error handling code with user-friendly messages and retry logic.

Instead of digging through Better Auth source code or GitHub issues to decode an error, you get causes, fixes, and ready-to-paste error handling code in one step.

When to use it

  • Looking up what INVALID_SESSION error means in Better Auth
  • Adding proper catch blocks for Better Auth auth failures in a Next.js route
  • Finding related error codes when debugging a RATE_LIMIT_EXCEEDED issue
  • Generating production-ready error handling for Better Auth OAuth callback errors
  • Understanding when a Better Auth error is retryable vs fatal