create-auth

create-auth is a skill for Claude Code from pleaseai/claude-code-plugins. It costs 64 tokens per session (3,664 once invoked), scanned A, a copy of create-auth-skill, MIT.

A guided implementation skill for adding Better Auth login features to TypeScript or JavaScript applications.

In plain words
What is it for?
It is for adding sign-up, login, database adapters, OAuth providers, route handlers, and authentication pages after inspecting the project.
Why use it?
It helps avoid mismatching the authentication setup with the app's framework, database, existing auth code, or required sign-in methods.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the better-auth plugin — 7 skills shipped together

Good fit It is for adding sign-up, login, database adapters, OAuth providers, route handlers, and authentication pages after inspecting the project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pleaseai/claude-code-plugins/create-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pleaseai/claude-code-plugins --skill create-auth
Clone the repo
git clone --depth 1 https://github.com/pleaseai/claude-code-plugins

Made for: Claude Code.

Or install better-auth, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/create-auth/github.svg)](https://agentmods.dev/skills/pleaseai/claude-code-plugins/create-auth)
Your own site
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/create-auth"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/create-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/create-auth"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/create-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 83% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.03664
Opus 5.5 $0.00026 $0.01466
Sonnet 5.5 $0.00013 $0.00733
Haiku 4.5 $0.00006 $0.00366

Measured 17d ago against content hash e3f24141de73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

83% identical to create-auth-skill — 83 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/better-auth/.agents/skills/create-auth/SKILL.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Auth Skill

Guide for adding authentication to TypeScript/JavaScript applications using Better Auth.

For code examples and syntax, see better-auth.com/docs.


Phase 1: Planning (REQUIRED before implementation)

Before writing any code, gather requirements by scanning the project and asking the user structured questions. This ensures the implementation matches their needs.

Step 1: Scan the project

Analyze the codebase to auto-detect:

  • Framework — Look for next.config, svelte.config, nuxt.config, astro.config, vite.config, or Express/Hono entry files.
  • Database/ORM — Look for prisma/schema.prisma, drizzle.config.ts, package.json deps (pg, postgres, @neondatabase/serverless, mysql2, better-sqlite3, mongoose, mongodb). If drizzle.config.ts exists, read its dialect field to determine the DB type (e.g., "postgresql" → Drizzle + Postgres). Also check which Drizzle driver is installed (drizzle-orm/node-postgres → pg, drizzle-orm/postgres-js → postgres, drizzle-orm/neon-http → Neon).
  • Existing auth — Look for existing auth libraries (next-auth, lucia, clerk, supabase/auth, firebase/auth) in package.json or imports.
  • Package manager — Check for pnpm-lock.yaml, yarn.lock, bun.lockb, or package-lock.json.

Use what you find to pre-fill defaults and skip questions you can already answer.

Step 2: Ask planning questions

Use the AskQuestion tool to ask the user all applicable questions in a single call. Skip any question you already have a confident answer for from the scan. Group them under a title like "Auth Setup Planning".

Questions to ask:

  1. Project type (skip if detected)

    • Prompt: "What type of project is this?"
    • Options: New project from scratch | Adding auth to existing project | Migrating from another auth library
  2. Framework (skip if detected)

    • Prompt: "Which framework are you using?"
    • Options: Next.js (App Router) | Next.js (Pages Router) | SvelteKit | Nuxt | Astro | Express | Hono | SolidStart | Other

Read the full file on GitHub · 391 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 391 lines · 64 tokens per session scan A e3f24141de73

Subscribe to this mod's changes

create-auth is a skill published in the GitHub repository pleaseai/claude-code-plugins (17 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 3,664 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to create-auth-skill, differing in 83 lines, and is treated as a copy.

Related

create-auth compared with skills from other repositories

create-auth next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-authpleaseai/claude-code-pluginsSkill17yesterdayMITA64Claude Code
stripe-projectse2b-dev/E2BSkill15ktodayApache-2.0A51Claude Code, Codex
nestjs-expertJeffallan/claude-skillsSkill13ktodayMITA107Claude Code
nestjsericrisco/rsc-harnessSkill6915d agoMITA81Claude Code, Codex
azure-web-pubsub-tsbenjaminasterA/antigravity-awesome-skillsSkill522todayMITA51Claude Code, Codex
better-authsecondsky/claude-skillsSkill257yesterdayMITA53Claude Code
hono-routingsecondsky/claude-skillsSkill257yesterdayMITA41Claude Code