# auth-stinger

auth-stinger guides authentication architecture, provider choice, sessions, RBAC, and OAuth verification under strict security baselines.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/platform-and-release-tools/skills/auth-stinger/SKILL.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/auth-stinger

## What it does

The skill inspects `package.json` and `.env.example` to detect runtimes such as Next.js, Remix, Vite, Express, or Fastify. It evaluates whether a project needs hosted services like Clerk, self-hosted libraries like Better Auth, or Supabase Auth, producing decision records and migration blueprints.

It enforces explicit security rules across the application. Session cookies require `HttpOnly`, `Secure`, and `SameSite=Lax`, while access control checks must live in middleware and data layers simultaneously. For Google OAuth, it insists on Google Identity Services over legacy `gapi.auth2` and accounts for Google client deletion rules.

The skill rejects SMS as a primary MFA factor because of SIM-swap attacks, relegating it to recovery workflows only.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install platform-and-release-tools@wasp-nest
```
This installs the whole platform-and-release-tools plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill auth-stinger -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/auth-stinger/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/auth-stinger/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill auth-stinger -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/auth-stinger/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill auth-stinger -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/auth-stinger/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install legioncodeinc/vibe-coding-tools plugins/platform-and-release-tools/skills/auth-stinger
```

2. **Manually: put the files in place**
- File: `.github/skills/auth-stinger/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill auth-stinger -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/legioncodeinc/vibe-coding-tools --path plugins/platform-and-release-tools/skills/auth-stinger
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/auth-stinger/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/platform-and-release-tools/skills/auth-stinger/SKILL.md

## When to use it
- select an authentication vendor across B2B and B2C constraints
- configure session cookies and refresh token rotation schemes
- prepare scope justifications for Google OAuth verification
- outline migrations between auth libraries without session invalidation

## Example prompts
- Evaluate Clerk versus Better Auth for our Fastify and React project
- Configure Google sign-in using Google Identity Services and draft scope requirements
- Audit the session cookie storage and role checks before deployment

## Similar
- [convex-auth](https://affpapa.org/en/nevibecode/skills/convex-auth.md) — skill · 44200 installs
- [better-auth-security-best-practices](https://affpapa.org/en/nevibecode/skills/better-auth-security-best-practices.md) — skill · 52200 installs
- [modern-auth-2026](https://affpapa.org/en/nevibecode/skills/modern-auth-2026.md) — skill · 208 installs
- [auth-implementation-patterns](https://affpapa.org/en/nevibecode/skills/auth-implementation-patterns.md) — skill · 19388 installs
- [auth-patterns](https://affpapa.org/en/nevibecode/skills/auth-patterns.md) — skill · 183 installs
- [auth-sec](https://affpapa.org/en/nevibecode/skills/auth-sec.md) — skill · 4100 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
