create-api-route

Generate Next.js API routes for Supabase authentication flows.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/Alif-N/fe-sima-arome --skill create-api-route-alif-n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-api-route
Source: https://github.com/Alif-N/fe-sima-arome/tree/main/.agents/skills/create-api-route
Command: npx skills add https://github.com/Alif-N/fe-sima-arome --skill create-api-route-alif-n

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of server-side API routes in a Next.js application for managing Supabase authentication, reducing manual code and configuration for authentication processes.

Core Features & Use Cases

  • Route Generation: Generates standard Next.js API routes for authentication such as login, logout, callback, and user session management.
  • Supabase Integration: Handles Supabase server-side session cookies, ensuring secure user authentication flows.
  • Custom Routes: Generates API routes based on provided parameters like route type (login, logout, callback, session) to match specific user authentication needs.
  • Use Case: Use this Skill to streamline the setup of your Next.js application that uses Supabase for authentication, without manually creating each authentication route.

Quick Start

Use the create-api-route skill with the parameter 'login' to generate the login API route in your Next.js app.

Frequently Asked Questions about create-api-route

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Next.js API routes for Supabase authentication?

To create Next.js API routes for Supabase authentication, use this skill to automate the generation of server-side routes for login, logout, callback handling, and user session management using Supabase SSR cookies.

How does Supabase handle server-side session cookies in Next.js?

Supabase handles server-side session cookies in Next.js by securely storing and managing authentication states through SSR cookies, which this skill uses to generate standard API routes for robust user authentication flows.

Can I generate custom authentication API routes for different flows in Next.js?

Yes, you can generate custom authentication API routes in Next.js by providing specific parameters like route type, allowing the skill to match your exact authentication needs for login, logout, callback, or session management.

What's the best way to set up Supabase login and logout endpoints in a Next.js app?

The best way to set up Supabase login and logout endpoints in a Next.js app is to automate the creation of standard API routes using this skill, eliminating manual code and configuration for secure authentication flows.

Do I need to manually configure Supabase authentication routes in Next.js?

No, you do not need to manually configure Supabase authentication routes in Next.js, as this skill automates the generation of server-side API routes and handles the Supabase server-side session cookies for you.