neopjm109/agent.oliver/auth-generator

Claude Code and agent skill by neopjm109/agent.oliver

Trust tier 3
  • community
Source check pending

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-generator

SKILL.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

yaml
auth_requirements:
method: jwt # jwt | session | oauth
# jwt -> access/refresh tokens, token storage + refresh rotation
# session-> httpOnly server session cookie, CSRF handling
# oauth -> provider(s) + callback route + PKCE (e.g. google, github)
oauth_providers: [google, github] # only when method: oauth
login_flow: email-password
roles: [admin, user]
protected_routes: ["/dashboard", "/admin"]

Output

yaml
auth_code:
- login page + auth hook (useAuth)
- auth context / store
- route guard (middleware or HOC)
- session utilities + token management

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(), and draftMode() from next/headers are async — always await them, and read/write the session cookie through the awaited cookies() store.

Examples

Input:

yaml
auth_requirements: { method: jwt, roles: [admin, user], protected_routes: ["/dashboard"] }

Output (abridged):

tsx
// features/auth/hooks/use-auth.ts
export function useAuth() {
const { user } = useAuthStore();
const login = async (creds: Credentials) => {
const { accessToken, refreshToken } = await authApi.login(creds);
tokenStore.set(accessToken, refreshToken);
};
return { user, isAuthenticated: !!user, login, logout: authApi.logout };
}

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/neopjm109/agent.oliver/auth-generator/badge)](https://verified-skill.com/skills/neopjm109/agent.oliver/auth-generator)

Something wrong with this skill or its page? Tell us.