neopjm109/agent.oliver/auth-generator
Claude Code and agent skill by neopjm109/agent.oliver
- community
Checking that the SKILL.md file is still in the repository.
Generate authentication and authorization features for Next.js — login flow, session/token management, route guards — for JWT, session, or OAuth strategies.
Install
npx vskill@latest install neopjm109/agent.oliver/auth-generatorSKILL.md
The same SKILL.md was published earlier as neopjm109/agent.oliver/auth-generator.
Goal
Generate authentication flows and authorization guards for a Next.js application: login page, auth hook, auth context/store, route guards, session utilities, and token management. Delegates implementation to typescript-senior-programmer.
Inputs
Output
Workflow
Step 1 — Analyze strategy
Select the auth strategy and enumerate its concerns:
- JWT: access/refresh token storage, refresh rotation, attach token to requests.
- Session: httpOnly cookie session, server-side validation, CSRF protection.
- OAuth: provider config, callback route, PKCE, token exchange.
Step 2 — Design flow and authorization
Design the login flow and role-based route guards; keep authentication separate from authorization.
Step 3 — Delegate implementation
Delegate the pages, hooks, guards, and utilities to typescript-senior-programmer.
Step 4 — Validate
Confirm no secrets are exposed and token/session handling is centralized and secure.
Rules
- Never expose secrets to the client; keep secrets server-side.
- Separate authentication (who you are) from authorization (what you can do).
- Centralize token/session handling; JWT refresh must be transparent to callers.
- For OAuth use PKCE and a dedicated callback route; for sessions use httpOnly cookies + CSRF.
- Next.js 15:
cookies(),headers(), anddraftMode()fromnext/headersare async — alwaysawaitthem, and read/write the session cookie through the awaitedcookies()store.
Examples
Input:
Output (abridged):
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingv1/skills/web/auth-generator/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neopjm109/agent.oliver/auth-generator)