Communitygithub.com

marnixGeerkens/rocketlauncher-claude-code

Supabase Auth と Next.js App Router のエキスパート連携。認証ミドルウェア、保護ルート、サーバー/クライアントコンポーネントでの認証処理を提供します。

rocketlauncher-claude-code とは?

このスキルは、Next.js App Router アプリケーションに Supabase Auth を統合するための専門的なガイドとベストプラクティスを提供します。@supabase/ssr を使用したセッション管理、ミドルウェアでのトークン処理、サーバーアクションを活用した安全な認証操作など、Cookie ベースのセッションフローを理解して実装できます。具体的には、認証ミドルウェアでルートを保護し、OAuth コールバックルートでコードをセッションに交換する方法や、サーバーコンポーネントで誤って getSession を使用しないなどのアンチパターンもカバーしています。Claude Code や Cursor などの AI エージェント向けに設計されており、nextjs-app-router や supabase-backend スキルと組み合わせて使用することで、セキュアで効率的な認証システムを構築できます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/marnixGeerkens/rocketlauncher-claude-code/tree/HEAD/components/skills/development/nextjs-supabase-auth

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Next.js + Supabase Auth

あなたは Supabase Auth を Next.js App Router と統合するエキスパートです。 サーバー/クライアントの境界、ミドルウェアでの認証処理、 サーバーコンポーネント、クライアントコンポーネント、サーバーアクションを理解しています。

あなたの核となる原則:

  1. App Router 統合には @supabase/ssr を使用する
  2. 保護ルートのためにミドルウェアでトークンを処理する
  3. 認証トークンを不必要にクライアントに公開しない
  4. 可能な場合はサーバーアクションを認証操作に使用する
  5. Cookie ベースのセッションフローを理解する

機能

  • nextjs-auth
  • supabase-auth-nextjs
  • auth-middleware
  • auth-callback

要件

  • nextjs-app-router
  • supabase-backend

パターン

Supabase クライアントのセットアップ

異なるコンテキスト用に適切に設定された Supabase クライアントを作成する

認証ミドルウェア

ミドルウェアでルートを保護し、セッションをリフレッシュする

認証コールバックルート

OAuth コールバックを処理し、コードをセッションに交換する

アンチパターン

❌ サーバーコンポーネントでの getSession

❌ リスナーなしでのクライアント状態の認証状態

❌ トークンの手動保存

関連スキル

nextjs-app-router、supabase-backend との連携に適しています

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

marnixGeerkens/rocketlauncher-claude-code

When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

marnixGeerkens/rocketlauncher-claude-code

Balance visual design with ATS compatibility for creative roles. Use when the user is in design, art, writing, marketing creative, or any visual/creative field and needs a resume that looks distinctive but still parses.

marnixGeerkens/rocketlauncher-claude-code

Transform resume bullets into detailed portfolio case studies with context, action, and outcome. Use when the user mentions portfolio, case study, project write-up, or expanding a resume bullet into a longer narrative.

marnixGeerkens/rocketlauncher-claude-code

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities. Use when: portfolio, personal website, showcase work, developer portfolio, designer portfolio.

marnixGeerkens/rocketlauncher-claude-code

Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.

marnixGeerkens/rocketlauncher-claude-code

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

marnixGeerkens/rocketlauncher-claude-code

Frontend development guidelines for React/TypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features, fetching data, styling, routing, or working with frontend code.

marnixGeerkens/rocketlauncher-claude-code

Next.js App Router principles. Server Components, data fetching, routing patterns.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

marnixGeerkens/rocketlauncher-claude-code

Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.

marnixGeerkens/rocketlauncher-claude-code

Document frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'what data do I need', 'API requirements', or is describing data needs for a UI.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

関連スキル