# nodeops-auth

This skill wires NodeOps PKCE sign-in into a Next.js project. Use it when the app needs NodeOps login or SSO.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 564 installs · ★ 2
- Author: NodeOps-app
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NodeOps-app/skills/tree/HEAD/skills/nodeops-auth/SKILL.md
- Updated: 2026-09-23
- HTML: https://affpapa.org/en/nevibecode/skills/nodeops-auth

## What it does

The skill adds `@nodeops-createos/integration-oauth`, exposes routes for the current user and token exchange, and places `AuthProvider` around the root layout. It also creates `app/callback/page.tsx`, where the post-login destination is configured.

It prepares environment templates and a local environment file for NodeOps settings. The workflow checks `.gitignore` and keeps `.env.local` out of version control. Credentials from the NodeOps developer portal are required, including `NEXT_PUBLIC_NODEOPS_CLIENT_ID` and `NODEOPS_CLIENT_SECRET`.

A project that uses `pages/` instead of `app/` stops the setup because this skill requires Next.js App Router. File extensions follow the presence of `tsconfig.json`, while package installation follows the detected lockfile.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add NodeOps-app/skills --skill nodeops-auth -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add NodeOps-app/skills --skill nodeops-auth -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add NodeOps-app/skills --skill nodeops-auth -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install NodeOps-app/skills nodeops-auth
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add NodeOps-app/skills --skill nodeops-auth -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/NodeOps-app/skills --path skills/nodeops-auth
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add NodeOps-app/skills --skill nodeops-auth -a opencode
```

### 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/NodeOps-app/skills/tree/HEAD/skills/nodeops-auth/SKILL.md

## When to use it
- connect NodeOps sign-in to a Next.js app
- add user and token API routes
- place `AuthProvider` in the root layout
- create the post-login callback page
- prepare environment variables and protect `.env.local`

## Example prompts
- Add NodeOps PKCE authentication to this Next.js application.
- Inspect the project and create `app/api/auth/me/route.ts` plus `app/api/auth/token/route.ts`.
- Create the callback page and send users to `/dashboard` after login; then prepare `.env.local`.

## Similar
- [oauth-oidc-misconfiguration](https://affpapa.org/en/nevibecode/skills/oauth-oidc-misconfiguration.md) — skill · 3700 installs
- [oauth-implementation](https://affpapa.org/en/nevibecode/skills/oauth-implementation.md) — skill · 719 installs
- [better-auth](https://affpapa.org/en/nevibecode/skills/better-auth.md) — skill · 3600 installs
- [create-auth](https://affpapa.org/en/nevibecode/skills/create-auth.md) — skill · 13400 installs
- [safe-action-better-auth](https://affpapa.org/en/nevibecode/skills/safe-action-better-auth.md) — skill · 477 installs
- [better-auth-authentication](https://affpapa.org/en/nevibecode/skills/better-auth-authentication.md) — skill · 389 installs

From the same set: [nodeops-app/skills](https://affpapa.org/en/nevibecode/by/nodeops-app/skills.md) — 2 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
