Agent skill
better-auth-configuration-nadeemsangrasi-humanoid-and-robotic
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/better-auth-configuration-nadeemsangrasi-humanoid-and-robotic
SKILL.md
Better Auth Configuration
Instructions
-
Create Better Auth configuration:
- Set up main auth instance with appropriate options
- Configure OAuth providers (Google, GitHub, etc.)
- Define session management settings
- Configure cookie settings and security options
- Set up email/password authentication if needed
-
Follow Better Auth documentation:
- Retrieve latest official documentation via Context7 MCP
- Follow recommended security practices
- Use proper TypeScript configuration
- Include proper error handling
-
Configure frontend integration:
- Set up client-side configuration
- Configure authentication hooks
- Set up provider wrappers
- Include proper type definitions
-
Configure backend integration:
- Set up server-side configuration
- Define middleware for protected routes
- Configure API route protection
- Include proper session validation
-
Security considerations:
- Use secure cookie settings
- Configure proper CORS settings
- Set up rate limiting if needed
- Include proper error handling
Examples
Input: "Configure Better Auth with Google OAuth and JWT sessions" Output: Creates configuration with:
import { betterAuth } from 'better-auth'
export const auth = betterAuth({
database: {
provider: 'drizzle',
url: process.env.DATABASE_URL!,
},
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
},
},
session: {
expires: 7 * 24 * 60 * 60 * 1000, // 7 days
generateId: () => crypto.randomUUID(),
},
})
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?