Authentication required. Logging in...Opening browser to log in...✔ Login successful!What should your agent become an expert at?Skills should encode best practices, constraints, and decision-making —not step-by-step tutorials or one-off tasks.Examples: ✕ "Deploy a Next.js app to Vercel" ✓ "Best practices and constraints for deploying Next.js apps to Vercel" ✕ "Use Tailwind for responsive design" ✓ "Responsive layout decision-making with Tailwind CSS"? Describe the expertise: OAuth authentication patterns and pitfalls with NextAuth.js⠋ Finding relevant sources...✔ Found 3 relevant sources? Select sources: ❯◉ 1. NextAuth.js (next-auth/next-auth) ◉ 2. Next.js Auth (vercel/next.js) ◯ 3. OAuth 2.0 (websites/oauth.net)⠋ Preparing follow-up questions to clarify scope and constraints...✔ Questions prepared✓ [1/3] What authentication providers should be covered? GitHub, Google, credentials✓ [2/3] Should the skill include session management? Yes, including JWT and database sessions✓ [3/3] What security considerations are most important? CSRF protection, secure callbacks, token rotation⠋ Reading selected Context7 sources to generate the skill... • NextAuth.js Configuration Configure NextAuth.js with providers, callbacks, and session strategies. Use the `providers` array to define authentication methods. Configure callbacks for session and JWT customization... • OAuth Security Patterns Implement CSRF protection using the `state` parameter. Validate redirect URIs against allowlists. Rotate refresh tokens after each use...✔ Read Context7 sources⠋ Generating skill content...✔ Generated skill for "nextauth-oauth-patterns"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━Generated Skill: nextauth-oauth-patterns━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━# NextAuth.js OAuth Authentication PatternsThis skill provides expertise in implementing OAuth authenticationwith NextAuth.js, focusing on security, session management, andcommon pitfalls.## Provider ConfigurationWhen configuring OAuth providers:- Use environment variables for client IDs and secrets- Configure appropriate scopes for each provider- Implement provider-specific error handling...... 150 more lines━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━? What would you like to do? ❯ ✓ Install skill (save locally) ⤢ Edit skill in editor ✎ Request changes ✕ Cancel
After reviewing the generated skill, you can request modifications:
? What would you like to do? Request changes? What changes would you like?Add more details about refresh token rotation⠋ Regenerating skill with your feedback...✔ Generated skill for "nextauth-oauth-patterns"
? What would you like to do? Install skill (save locally)? Select installation targets: ❯◉ Universal (.agents/skills/) ◯ Claude Code (.claude/skills/) ◉ Cursor (.cursor/skills/)⠋ Writing skill files...✔ Created skill in 2 location(s)Skill saved successfully .agents/skills/nextauth-oauth-patterns .cursor/skills/nextauth-oauth-patterns
# Search for skillsctx7 skills search typescript# Install to current projectctx7 skills install /user/repo typescript# List installed skillsctx7 skills list# Test in your agent, then remove if not neededctx7 skills remove typescript
# Install globally for all agentsctx7 skills install /anthropics/skills --all --global \ --universal --claude --cursor# List what's installed for eachctx7 skills list --global --claudectx7 skills list --global --cursorctx7 skills list --global --universal