{
  "schemaVersion": "1.0",
  "item": {
    "slug": "stack-scaffold",
    "name": "Stack Scaffold",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/guifav/stack-scaffold",
    "canonicalUrl": "https://clawhub.ai/guifav/stack-scaffold",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/stack-scaffold",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stack-scaffold",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "claw.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "stack-scaffold",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-09T10:54:19.696Z",
      "expiresAt": "2026-05-16T10:54:19.696Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stack-scaffold",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stack-scaffold",
        "contentDisposition": "attachment; filename=\"stack-scaffold-0.1.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "stack-scaffold"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/stack-scaffold"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/stack-scaffold",
    "agentPageUrl": "https://openagent3.xyz/skills/stack-scaffold/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stack-scaffold/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stack-scaffold/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Stack Scaffold",
        "body": "You are an expert full-stack developer. When the user asks to create a new project, scaffold the complete structure following the conventions below. Always confirm the project name and target directory with the user before creating files. This skill only creates new files in empty or new directories — it never reads or modifies existing .env, .env.local, or credential files."
      },
      {
        "title": "Planning Protocol (MANDATORY — execute before ANY action)",
        "body": "Before writing a single file or running any command, you MUST complete this planning phase:\n\nUnderstand the request. Restate what the user wants in your own words. Identify any ambiguities. If the request is vague (e.g., \"create a project\"), ask one round of clarifying questions (project name, purpose, any specific requirements).\n\n\nSurvey the environment. Check the current directory structure and installed tools. Run ls and node -v to confirm the target directory is empty or does not exist yet. Do NOT read, open, or inspect any .env, .env.local, or credential files. This skill only creates new projects — if the directory already contains a project, ask the user to confirm before proceeding.\n\n\nBuild an execution plan. Write out the numbered list of steps you will take, including file paths you will create or modify, commands you will run, and the expected outcome of each step. Present this plan to yourself (in your reasoning) before executing.\n\n\nIdentify risks. Note any step that could fail or cause data loss (overwriting files, dropping tables, force-pushing). For each risk, define the mitigation (backup, dry-run, confirmation).\n\n\nExecute sequentially. Follow the plan step by step. After each step, verify it succeeded before moving to the next. If a step fails, diagnose the issue, update the plan, and continue.\n\n\nSummarize. After completing all steps, provide a concise summary of what was created, what was modified, and any manual steps the user still needs to take.\n\nDo NOT skip this protocol. Rushing to execute without planning leads to errors, broken state, and wasted time."
      },
      {
        "title": "Project Initialization",
        "body": "Run npx create-next-app@latest <project-name> --typescript --tailwind --eslint --app --src-dir --import-alias \"@/*\" to create the Next.js project with App Router.\ncd into the project directory.\nEnsure .gitignore exists and includes at minimum: .env, .env.local, .env*.local, node_modules/, .next/. The create-next-app template already includes these, but verify before any commit.\nInitialize git: git init && git add -A && git commit -m \"chore: initial Next.js scaffold\"."
      },
      {
        "title": "Dependencies",
        "body": "Install the following in a single command:\n\nnpm install @supabase/supabase-js @supabase/ssr firebase firebase-admin zod zustand next-themes\nnpm install -D @types/node vitest @vitejs/plugin-react playwright @playwright/test prettier eslint-config-prettier"
      },
      {
        "title": "Directory Structure",
        "body": "Create this structure inside src/:\n\nsrc/\n├── app/\n│   ├── (auth)/\n│   │   ├── login/page.tsx\n│   │   └── signup/page.tsx\n│   ├── (dashboard)/\n│   │   └── page.tsx\n│   ├── api/\n│   │   └── health/route.ts\n│   ├── layout.tsx\n│   ├── page.tsx\n│   └── globals.css\n├── components/\n│   ├── ui/           # Reusable UI primitives\n│   └── shared/       # Shared composite components\n├── lib/\n│   ├── supabase/\n│   │   ├── client.ts       # Browser Supabase client\n│   │   ├── server.ts       # Server Supabase client (cookies-based)\n│   │   ├── middleware.ts    # Auth refresh middleware helper\n│   │   └── types.ts        # Generated DB types (placeholder)\n│   ├── firebase/\n│   │   ├── client.ts       # Firebase client SDK init\n│   │   └── admin.ts        # Firebase Admin SDK init (server-only)\n│   └── utils.ts\n├── hooks/\n│   └── use-auth.ts         # Auth state hook\n├── stores/\n│   └── user-store.ts       # Zustand user store\n├── types/\n│   └── index.ts\n└── middleware.ts            # Next.js middleware for auth"
      },
      {
        "title": "src/lib/supabase/client.ts",
        "body": "import { createBrowserClient } from \"@supabase/ssr\";\n\nexport function createClient() {\n  return createBrowserClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!\n  );\n}"
      },
      {
        "title": "src/lib/supabase/server.ts",
        "body": "import { createServerClient } from \"@supabase/ssr\";\nimport { cookies } from \"next/headers\";\n\nexport async function createClient() {\n  const cookieStore = await cookies();\n  return createServerClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,\n    {\n      cookies: {\n        getAll() {\n          return cookieStore.getAll();\n        },\n        setAll(cookiesToSet) {\n          try {\n            cookiesToSet.forEach(({ name, value, options }) =>\n              cookieStore.set(name, value, options)\n            );\n          } catch {\n            // Called from Server Component — ignore\n          }\n        },\n      },\n    }\n  );\n}"
      },
      {
        "title": "src/lib/firebase/client.ts",
        "body": "import { initializeApp, getApps } from \"firebase/app\";\nimport { getAuth } from \"firebase/auth\";\n\nconst firebaseConfig = {\n  apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,\n  authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,\n  projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,\n  storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,\n  messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,\n  appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,\n};\n\nconst app = getApps().length === 0 ? initializeApp(firebaseConfig) : getApps()[0];\nexport const auth = getAuth(app);"
      },
      {
        "title": "src/lib/firebase/admin.ts",
        "body": "import { initializeApp, getApps, cert } from \"firebase-admin/app\";\nimport { getAuth } from \"firebase-admin/auth\";\n\nif (getApps().length === 0) {\n  initializeApp({\n    credential: cert({\n      projectId: process.env.FIREBASE_PROJECT_ID,\n      clientEmail: process.env.FIREBASE_CLIENT_EMAIL,\n      privateKey: process.env.FIREBASE_PRIVATE_KEY?.replace(/\\\\n/g, \"\\n\"),\n    }),\n  });\n}\n\nexport const adminAuth = getAuth();"
      },
      {
        "title": "src/middleware.ts",
        "body": "import { type NextRequest, NextResponse } from \"next/server\";\nimport { createServerClient } from \"@supabase/ssr\";\n\nexport async function middleware(request: NextRequest) {\n  let response = NextResponse.next({ request });\n\n  const supabase = createServerClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,\n    {\n      cookies: {\n        getAll() {\n          return request.cookies.getAll();\n        },\n        setAll(cookiesToSet) {\n          cookiesToSet.forEach(({ name, value }) =>\n            request.cookies.set(name, value)\n          );\n          response = NextResponse.next({ request });\n          cookiesToSet.forEach(({ name, value, options }) =>\n            response.cookies.set(name, value, options)\n          );\n        },\n      },\n    }\n  );\n\n  await supabase.auth.getUser();\n\n  return response;\n}\n\nexport const config = {\n  matcher: [\"/((?!_next/static|_next/image|favicon.ico|.*\\\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)\"],\n};"
      },
      {
        "title": "src/app/api/health/route.ts",
        "body": "import { NextResponse } from \"next/server\";\n\nexport async function GET() {\n  return NextResponse.json({ status: \"ok\", timestamp: new Date().toISOString() });\n}"
      },
      {
        "title": ".env.example",
        "body": "# Supabase\nNEXT_PUBLIC_SUPABASE_URL=\nNEXT_PUBLIC_SUPABASE_ANON_KEY=\nSUPABASE_SERVICE_ROLE_KEY=\n\n# Firebase Client\nNEXT_PUBLIC_FIREBASE_API_KEY=\nNEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=\nNEXT_PUBLIC_FIREBASE_PROJECT_ID=\nNEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=\nNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=\nNEXT_PUBLIC_FIREBASE_APP_ID=\n\n# Firebase Admin (server-only)\nFIREBASE_PROJECT_ID=\nFIREBASE_CLIENT_EMAIL=\nFIREBASE_PRIVATE_KEY=\n\n# App\nNEXT_PUBLIC_APP_URL=http://localhost:3000"
      },
      {
        "title": "vercel.json",
        "body": "{\n  \"framework\": \"nextjs\",\n  \"regions\": [\"gru1\"],\n  \"headers\": [\n    {\n      \"source\": \"/api/(.*)\",\n      \"headers\": [\n        { \"key\": \"Cache-Control\", \"value\": \"no-store\" }\n      ]\n    }\n  ]\n}"
      },
      {
        "title": "vitest.config.ts",
        "body": "import { defineConfig } from \"vitest/config\";\nimport react from \"@vitejs/plugin-react\";\nimport path from \"path\";\n\nexport default defineConfig({\n  plugins: [react()],\n  test: {\n    environment: \"jsdom\",\n    globals: true,\n    setupFiles: [\"./src/tests/setup.ts\"],\n  },\n  resolve: {\n    alias: {\n      \"@\": path.resolve(__dirname, \"./src\"),\n    },\n  },\n});"
      },
      {
        "title": "Post-Scaffold Steps",
        "body": "Copy .env.example to .env.local and remind the user to fill in the values.\nCreate an initial Supabase migration file at supabase/migrations/00000000000000_init.sql with a profiles table:\n\ncreate table public.profiles (\n  id uuid references auth.users on delete cascade primary key,\n  email text not null,\n  full_name text,\n  avatar_url text,\n  created_at timestamptz default now() not null,\n  updated_at timestamptz default now() not null\n);\n\nalter table public.profiles enable row level security;\n\ncreate policy \"Users can view own profile\" on public.profiles\n  for select using (auth.uid() = id);\n\ncreate policy \"Users can update own profile\" on public.profiles\n  for update using (auth.uid() = id);\n\nAdd scripts to package.json:\n\n{\n  \"scripts\": {\n    \"dev\": \"next dev --turbopack\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\",\n    \"format\": \"prettier --write .\",\n    \"test\": \"vitest\",\n    \"test:e2e\": \"playwright test\",\n    \"types:supabase\": \"npx supabase gen types typescript --local > src/lib/supabase/types.ts\"\n  }\n}\n\nCommit: git add -A && git commit -m \"chore: add full stack scaffold with Supabase, Firebase Auth, Vercel config\".\n\n\nPrint a summary of what was created and what the user needs to configure manually (env vars, Supabase project, Firebase project, Vercel project link, Cloudflare DNS)."
      }
    ],
    "body": "Stack Scaffold\n\nYou are an expert full-stack developer. When the user asks to create a new project, scaffold the complete structure following the conventions below. Always confirm the project name and target directory with the user before creating files. This skill only creates new files in empty or new directories — it never reads or modifies existing .env, .env.local, or credential files.\n\nPlanning Protocol (MANDATORY — execute before ANY action)\n\nBefore writing a single file or running any command, you MUST complete this planning phase:\n\nUnderstand the request. Restate what the user wants in your own words. Identify any ambiguities. If the request is vague (e.g., \"create a project\"), ask one round of clarifying questions (project name, purpose, any specific requirements).\n\nSurvey the environment. Check the current directory structure and installed tools. Run ls and node -v to confirm the target directory is empty or does not exist yet. Do NOT read, open, or inspect any .env, .env.local, or credential files. This skill only creates new projects — if the directory already contains a project, ask the user to confirm before proceeding.\n\nBuild an execution plan. Write out the numbered list of steps you will take, including file paths you will create or modify, commands you will run, and the expected outcome of each step. Present this plan to yourself (in your reasoning) before executing.\n\nIdentify risks. Note any step that could fail or cause data loss (overwriting files, dropping tables, force-pushing). For each risk, define the mitigation (backup, dry-run, confirmation).\n\nExecute sequentially. Follow the plan step by step. After each step, verify it succeeded before moving to the next. If a step fails, diagnose the issue, update the plan, and continue.\n\nSummarize. After completing all steps, provide a concise summary of what was created, what was modified, and any manual steps the user still needs to take.\n\nDo NOT skip this protocol. Rushing to execute without planning leads to errors, broken state, and wasted time.\n\nProject Initialization\nRun npx create-next-app@latest <project-name> --typescript --tailwind --eslint --app --src-dir --import-alias \"@/*\" to create the Next.js project with App Router.\ncd into the project directory.\nEnsure .gitignore exists and includes at minimum: .env, .env.local, .env*.local, node_modules/, .next/. The create-next-app template already includes these, but verify before any commit.\nInitialize git: git init && git add -A && git commit -m \"chore: initial Next.js scaffold\".\nDependencies\n\nInstall the following in a single command:\n\nnpm install @supabase/supabase-js @supabase/ssr firebase firebase-admin zod zustand next-themes\nnpm install -D @types/node vitest @vitejs/plugin-react playwright @playwright/test prettier eslint-config-prettier\n\nDirectory Structure\n\nCreate this structure inside src/:\n\nsrc/\n├── app/\n│   ├── (auth)/\n│   │   ├── login/page.tsx\n│   │   └── signup/page.tsx\n│   ├── (dashboard)/\n│   │   └── page.tsx\n│   ├── api/\n│   │   └── health/route.ts\n│   ├── layout.tsx\n│   ├── page.tsx\n│   └── globals.css\n├── components/\n│   ├── ui/           # Reusable UI primitives\n│   └── shared/       # Shared composite components\n├── lib/\n│   ├── supabase/\n│   │   ├── client.ts       # Browser Supabase client\n│   │   ├── server.ts       # Server Supabase client (cookies-based)\n│   │   ├── middleware.ts    # Auth refresh middleware helper\n│   │   └── types.ts        # Generated DB types (placeholder)\n│   ├── firebase/\n│   │   ├── client.ts       # Firebase client SDK init\n│   │   └── admin.ts        # Firebase Admin SDK init (server-only)\n│   └── utils.ts\n├── hooks/\n│   └── use-auth.ts         # Auth state hook\n├── stores/\n│   └── user-store.ts       # Zustand user store\n├── types/\n│   └── index.ts\n└── middleware.ts            # Next.js middleware for auth\n\nFile Contents\nsrc/lib/supabase/client.ts\nimport { createBrowserClient } from \"@supabase/ssr\";\n\nexport function createClient() {\n  return createBrowserClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!\n  );\n}\n\nsrc/lib/supabase/server.ts\nimport { createServerClient } from \"@supabase/ssr\";\nimport { cookies } from \"next/headers\";\n\nexport async function createClient() {\n  const cookieStore = await cookies();\n  return createServerClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,\n    {\n      cookies: {\n        getAll() {\n          return cookieStore.getAll();\n        },\n        setAll(cookiesToSet) {\n          try {\n            cookiesToSet.forEach(({ name, value, options }) =>\n              cookieStore.set(name, value, options)\n            );\n          } catch {\n            // Called from Server Component — ignore\n          }\n        },\n      },\n    }\n  );\n}\n\nsrc/lib/firebase/client.ts\nimport { initializeApp, getApps } from \"firebase/app\";\nimport { getAuth } from \"firebase/auth\";\n\nconst firebaseConfig = {\n  apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,\n  authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,\n  projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,\n  storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,\n  messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,\n  appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,\n};\n\nconst app = getApps().length === 0 ? initializeApp(firebaseConfig) : getApps()[0];\nexport const auth = getAuth(app);\n\nsrc/lib/firebase/admin.ts\nimport { initializeApp, getApps, cert } from \"firebase-admin/app\";\nimport { getAuth } from \"firebase-admin/auth\";\n\nif (getApps().length === 0) {\n  initializeApp({\n    credential: cert({\n      projectId: process.env.FIREBASE_PROJECT_ID,\n      clientEmail: process.env.FIREBASE_CLIENT_EMAIL,\n      privateKey: process.env.FIREBASE_PRIVATE_KEY?.replace(/\\\\n/g, \"\\n\"),\n    }),\n  });\n}\n\nexport const adminAuth = getAuth();\n\nsrc/middleware.ts\nimport { type NextRequest, NextResponse } from \"next/server\";\nimport { createServerClient } from \"@supabase/ssr\";\n\nexport async function middleware(request: NextRequest) {\n  let response = NextResponse.next({ request });\n\n  const supabase = createServerClient(\n    process.env.NEXT_PUBLIC_SUPABASE_URL!,\n    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,\n    {\n      cookies: {\n        getAll() {\n          return request.cookies.getAll();\n        },\n        setAll(cookiesToSet) {\n          cookiesToSet.forEach(({ name, value }) =>\n            request.cookies.set(name, value)\n          );\n          response = NextResponse.next({ request });\n          cookiesToSet.forEach(({ name, value, options }) =>\n            response.cookies.set(name, value, options)\n          );\n        },\n      },\n    }\n  );\n\n  await supabase.auth.getUser();\n\n  return response;\n}\n\nexport const config = {\n  matcher: [\"/((?!_next/static|_next/image|favicon.ico|.*\\\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)\"],\n};\n\nsrc/app/api/health/route.ts\nimport { NextResponse } from \"next/server\";\n\nexport async function GET() {\n  return NextResponse.json({ status: \"ok\", timestamp: new Date().toISOString() });\n}\n\n.env.example\n# Supabase\nNEXT_PUBLIC_SUPABASE_URL=\nNEXT_PUBLIC_SUPABASE_ANON_KEY=\nSUPABASE_SERVICE_ROLE_KEY=\n\n# Firebase Client\nNEXT_PUBLIC_FIREBASE_API_KEY=\nNEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=\nNEXT_PUBLIC_FIREBASE_PROJECT_ID=\nNEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=\nNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=\nNEXT_PUBLIC_FIREBASE_APP_ID=\n\n# Firebase Admin (server-only)\nFIREBASE_PROJECT_ID=\nFIREBASE_CLIENT_EMAIL=\nFIREBASE_PRIVATE_KEY=\n\n# App\nNEXT_PUBLIC_APP_URL=http://localhost:3000\n\nvercel.json\n{\n  \"framework\": \"nextjs\",\n  \"regions\": [\"gru1\"],\n  \"headers\": [\n    {\n      \"source\": \"/api/(.*)\",\n      \"headers\": [\n        { \"key\": \"Cache-Control\", \"value\": \"no-store\" }\n      ]\n    }\n  ]\n}\n\nvitest.config.ts\nimport { defineConfig } from \"vitest/config\";\nimport react from \"@vitejs/plugin-react\";\nimport path from \"path\";\n\nexport default defineConfig({\n  plugins: [react()],\n  test: {\n    environment: \"jsdom\",\n    globals: true,\n    setupFiles: [\"./src/tests/setup.ts\"],\n  },\n  resolve: {\n    alias: {\n      \"@\": path.resolve(__dirname, \"./src\"),\n    },\n  },\n});\n\nPost-Scaffold Steps\nCopy .env.example to .env.local and remind the user to fill in the values.\nCreate an initial Supabase migration file at supabase/migrations/00000000000000_init.sql with a profiles table:\ncreate table public.profiles (\n  id uuid references auth.users on delete cascade primary key,\n  email text not null,\n  full_name text,\n  avatar_url text,\n  created_at timestamptz default now() not null,\n  updated_at timestamptz default now() not null\n);\n\nalter table public.profiles enable row level security;\n\ncreate policy \"Users can view own profile\" on public.profiles\n  for select using (auth.uid() = id);\n\ncreate policy \"Users can update own profile\" on public.profiles\n  for update using (auth.uid() = id);\n\nAdd scripts to package.json:\n{\n  \"scripts\": {\n    \"dev\": \"next dev --turbopack\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\",\n    \"format\": \"prettier --write .\",\n    \"test\": \"vitest\",\n    \"test:e2e\": \"playwright test\",\n    \"types:supabase\": \"npx supabase gen types typescript --local > src/lib/supabase/types.ts\"\n  }\n}\n\n\nCommit: git add -A && git commit -m \"chore: add full stack scaffold with Supabase, Firebase Auth, Vercel config\".\n\nPrint a summary of what was created and what the user needs to configure manually (env vars, Supabase project, Firebase project, Vercel project link, Cloudflare DNS)."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/guifav/stack-scaffold",
    "publisherUrl": "https://clawhub.ai/guifav/stack-scaffold",
    "owner": "guifav",
    "version": "0.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/stack-scaffold",
    "downloadUrl": "https://openagent3.xyz/downloads/stack-scaffold",
    "agentUrl": "https://openagent3.xyz/skills/stack-scaffold/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stack-scaffold/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stack-scaffold/agent.md"
  }
}