auth-setup

auth-setup is a skill for Claude Code from ShipWithAI/shipwithai-plugins. It costs 53 tokens per session (8,126 once invoked), scanned C, original, MIT.

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 Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code; built for gstack.

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

Good fit Use it when starting authentication, adding it to an existing web app, changing authentication providers, or creating login and registration pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shipwithai/shipwithai-plugins/auth-setup
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 ShipWithAI/shipwithai-plugins --skill auth-setup
Clone the repo
git clone --depth 1 https://github.com/ShipWithAI/shipwithai-plugins

Made for: Claude Code.

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

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 auth-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/auth-setup/github.svg)](https://agentmods.dev/skills/shipwithai/shipwithai-plugins/auth-setup)
Your own site
<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/auth-setup"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/auth-setup/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 auth-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/auth-setup"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/auth-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00053 $0.08126
Opus 5.5 $0.00021 $0.03250
Sonnet 5.5 $0.00011 $0.01625
Haiku 4.5 $0.00005 $0.00813

Measured 3mo ago against content hash 9229eb193cd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (9 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 8,126 once invoked, about $0.0002 per session on Opus 5.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

auth-setup compared with skills from other repositories

auth-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auth-setupShipWithAI/shipwithai-pluginsSkill93mo agoMITC53Claude Code
api-auditgreglas75/zuvoSkill8yesterdayMITA135Claude Code
performance-auditgreglas75/zuvoSkill8yesterdayMITA90Claude Code
ccc-saasKevinZai/commanderSkill6yesterdayMITA43Claude Code
nodejsxobotyi/cc-foundrySkill232d agoMITB50Claude Code
zogxobotyi/cc-foundrySkill232d agoMITB45Claude Code
dddzdanovichnick/dotnet-pilotSkill54d agoMITA36Claude Code