auth-setup

A setup tool for adding user sign-in to web applications with Better Auth or Firebase Auth. It covers email and password accounts, Google sign-in, sessions, protected pages, and login components.

In plain words
What is it for?
Use it when starting authentication, adding it to an existing web app, changing authentication providers, or creating login and registration pages.
Why use it?
It removes the need to design the authentication flow and connect its many related parts by hand. It can also adapt the sign-in interface to an existing project's theme.

Skill for Claude CodeCodex

Part of the shipwithai-auth plugin — 2 skills, 2 commands shipped together

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.

agentmods
npx agentmods add skills/shipwithai/shipwithai-plugins/auth-setup
Any agent
npx skills add ShipWithAI/shipwithai-plugins --skill auth-setup
Clone the repo
git clone --depth 1 https://github.com/ShipWithAI/shipwithai-plugins

Made for: Claude Code, Codex.

Or install shipwithai-auth, the plugin that ships this one along with the rest of its 2 skills, 2 commands.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found 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 $0.00053 $0.08126
Opus 5 $0.00026 $0.04063
Sonnet 5 $0.00011 $0.01625
Haiku 4.5 $0.00005 $0.00813

Measured 3d ago against content hash 9229eb193cd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

auth-setup scanned grade C with 1 finding 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 3d ago.

The scan reads SKILL.md. This mod also ships 21 executable files (assets/config/authjs.config.ts, assets/config/better-auth.config.ts, assets/config/clerk.config.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

cp -a "$SCAFFOLD_DIR"/. . && rm -rf "$SCAFFOLD_DIR"
plugins/auth/skills/auth-setup/SKILL.md · 499 lines

How it starts

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

Auth Setup

Production-ready authentication for any web app in under 45 minutes. 2 auth providers (Better Auth & Firebase), Google OAuth, copy-paste UI components, and a verification script. GitHub & Apple OAuth coming soon.

When to Use

  • Starting a new project needing user authentication
  • Adding auth to an existing app (auto-detects and adapts to existing theme)
  • Migrating between auth providers
  • Setting up OAuth social login (Google, GitHub, Apple)
  • Need login/register page components

CRITICAL — New Project Scaffolding

If scaffolding a new Next.js project, never run create-next-app . in the current directory. Claude Code plugins (OMC, gstack) create dotfiles (.omc/, .claude/) that conflict with create-next-app, which requires a completely empty directory. The dotfiles are recreated by hooks between deletion and scaffolding, causing an infinite failure loop.

Correct pattern — scaffold in /tmp, pin to Next.js 14:

SCAFFOLD_DIR=/tmp/nextjs-scaffold-$RANDOM && \
npx create-next-app@14 "$SCAFFOLD_DIR" \
  --typescript --tailwind --eslint --app --src-dir \
  --import-alias "@/*" --use-npm --no-turbopack && \
cp -a "$SCAFFOLD_DIR"/. . && rm -rf "$SCAFFOLD_DIR"

Why @14 not @latest? Next.js 16 deprecated middleware.ts in favor of proxy.ts. All templates, guides, and middleware examples in this plugin use the middleware.ts convention (Next.js 14/15). Using @latest will install Next.js 16+ and the build will fail. See pitfall #37 for details.

Or scaffold into a named subdirectory, then move files up.

shadcn/ui: Use npx [email protected] init -d (NOT shadcn@2 or shadcn@latest). [email protected]+ expects Tailwind v4's CSS-based config and fails with Next.js 14's tailwind.config.ts. After shadcn init, you MUST install tailwindcss-animate — shadcn adds it to tailwind.config.ts but does NOT auto-install it: {pm} install tailwindcss-animate (use package manager detected in Step 0). See pitfall #44.

Provider Decision Framework

Read the full file on GitHub · 499 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 499 lines · 53 tokens per session scan C 9229eb193cd7

Subscribe to this mod's changes

auth-setup is a skill published in the GitHub repository ShipWithAI/shipwithai-plugins (10 stars, last pushed 21d ago), licensed MIT. It adds 53 tokens to every session and 8,126 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

rulesync

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.

dyoshikawa/rulesync · 64 tokens

agent-workspace-linux

Use when a task needs an isolated hidden Linux desktop or workspace-owned browser: GUI app QA, web/browser/shopping automation, sandboxed app observation, or stale workspace cleanup. Routes agent-workspace-linux MCP tools on demand. Does NOT apply to host desktop/Chrome control, generic MCP setup, or pure code/file…

ilysenko/codex-desktop-linux · 70 tokens

ss-component

Generate a new UI component following the StyleSeed design conventions.

bitjaru/styleseed · 14 tokens

loongsuite-pilot-insight

基于 LoongSuite Pilot / AI Coding Agent 日志生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 AI Coding 事件表语义,以及团队报表可选的部门维表、deptuser 组织关系、指标口径和公共 CTE,通常与 sls-dashboard-builder 一起使用。.

alibaba/loongsuite-pilot · 91 tokens

map-review

Interactive 4-section code review using monitor, predictor, and evaluator agents plus the user and maintainer role reviewers on current changes. Use when reviewing a diff, PR, or staged work before merge. Do NOT use to plan or implement; use map-plan or map-efficient.

azalio/map-framework · 58 tokens

map-fast

Minimal workflow for small, low-risk changes — no planning, no learning.

azalio/map-framework · 17 tokens