Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

stack-scaffold

bởi guifav

Web & Frontend Development
404Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Scaffolds a full-stack project with Next.js App Router, Supabase, Firebase Auth, Vercel, and Cloudflare.

Mô tả

Kỹ năng này làm gì

Scaffolds a full-stack project with Next.js App Router, Supabase, Firebase Auth, Vercel config, and Cloudflare in one pass. Confirms the project name and target directory before writing any files, then generates the full src/ structure, installs dependencies, and produces a typed .env.example. Only operates on empty or new directories — never reads or modifies existing credential files.

Replaces hours of cross-referencing docs for Supabase SSR, Firebase Admin, Next.js middleware, and Vercel config by generating all of it in one committed scaffold with correct TypeScript types.

Khi nào nên dùng

  • Starting a new SaaS app with auth and a database from scratch
  • Getting a Next.js and Supabase boilerplate ready without manually wiring four services
  • Generating a consistent project layout across multiple team members
  • Setting up dual auth with Firebase and Supabase at the same time
  • Bootstrapping a Vercel-deployable app with all environment variables documented upfront

Quy trình ví dụ

ĐẦU VÀO

User asks: Create a new project called my-app in the current directory

AGENT
  1. 1

    Confirms project name and target directory with the user before taking any action

  2. 2

    Runs create-next-app with TypeScript, Tailwind CSS, ESLint, App Router, and src-dir flags

  3. 3

    Installs Supabase SSR, Firebase, Zustand, Zod, Vitest, and Playwright in a single command

  4. 4

    Creates the full src/ directory tree with typed Supabase browser and server clients, Firebase client and Admin SDK init files, Next.js auth middleware, and .env.example

  5. 5

    Commits the scaffold and prints the list of manual steps remaining: fill in env vars, link Supabase project, link Firebase project, connect Vercel, configure Cloudflare DNS

ĐẦU RA

A committed Next.js repository with Supabase and Firebase clients wired up, middleware configured, and a .env.local template ready to fill in

Yêu cầu

  • Supabase account and project (provides NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY)
  • Firebase project with client SDK credentials (NEXT_PUBLIC_FIREBASE_API_KEY, auth domain, project ID, storage bucket, messaging sender ID, app ID)
  • Firebase Admin SDK service account credentials (FIREBASE_PROJECT_ID, FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY)
  • Vercel account for deployment
  • Cloudflare account for DNS configuration

Cài đặt

clawhub install guifav/stack-scaffold

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết