跳到正文
cccskills
免费在 GitHub 公开

fullstack-platform-completion

End-to-end platform completion workflow for Next.js applications. Use when the user wants to fix broken features, create missing pages, implement dashboard tabs, connect APIs to UI components, or complete an incomplete full-stack application. Triggers on: "complete the app", "fix everything", "finish the platform", "implement all features", "wire up APIs", "connect frontend to backend", "fix broken flows", "missing pages", "stub features", "incomplete components".

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation星标 5(GitHub 5 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Full-Stack Platform Completion

This skill provides a systematic approach to completing a full-stack Next.js application by identifying and fixing all broken, incomplete, or stub features.

Phase 1: Audit & Inventory

Run this audit to identify all incomplete features:

# 1. Find all stub/mock data patterns
grep -r "TODO\|FIXME\|HACK\|STUB\|PLACEHOLDER\|mock\|stub\|placeholder\|hardcoded\|not implemented" src/ --include="*.ts" --include="*.tsx" | grep -v node_modules

# 2. Find all API routes and check if they exist for every referenced endpoint
find src/app/api -name "route.ts" | wc -l

# 3. Find all page routes and check for missing page.tsx files
find src/app -type d | while read dir; do
  if [ ! -f "$dir/page.tsx" ] && [ ! -f "$dir/page.ts" ]; then
    echo "MISSING PAGE: $dir"
  fi
done

# 4. Find all component imports and check for missing files
grep -r "import.*from" src/ --include="*.tsx" | grep -v node_modules | grep -v ".next" | cut -d'"' -f2 | sort -u

Phase 2: Critical Flow Fixes

2.1 Fix Authentication Flows

Check these endpoints are fully wired:

  • /api/auth/register — handles all form fields including new consent checkboxes
  • /api/auth/login — returns proper user object with profile data
  • /api/auth/logout — clears session cookies
  • /api/auth/me — returns full user profile
  • /api/auth/reset-password — must NOT use withAuth wrapper (unauthenticated endpoint)

2.2 Fix Registration/Signup Flow

Common issues:

  • Signup form sends FormData but API expects JSON — align the format
  • Missing consent checkboxes not validated server-side
  • Therapist verification doesn't create VerificationDoc records
  • Password not hashed before storage

2.3 Fix Dashboard Tab Integration

Each GoldDashboard tab must:

  • Accept therapistId prop
  • Fetch real data from API (no hardcoded numbers)
  • Handle loading and error states
  • Save changes back to API on submit

Phase 3: Missing Page Creation

3.1 Dynamic Route Pages

Create these missing pages with real data fetching:

src/app/therapist/[id]/page.tsx

'use client';
import { useRouter, useSearchParams } from 'next/navigation';
// Fetch therapist data from /api/therapists/[id]
// Show profile, services with discounts, book button
// Tabs: overview, services, reviews, photos

src/app/booking/[id]/page.tsx

'use client';
import { useRouter, useSearchParams } from 'next/navigation';
// Multi-step booking: service selection → date/time → client details
// Submit to /api/bookings
// Redirect to success page

src/app/city/[city]/page.tsx

// Server component with SSR
// Fetch therapists by city from /api/therapists?city=
// Revalidate: 300s

3.2 Blog & Content Pages

  • /blog — List published posts from /api/blog
  • /blog/[slug] — Single post with view increment

Phase 4: API-UI Connection

4.1 Services & Discounts

// ServicesTab must:
// 1. Fetch from /api/therapists/services (GET)
// 2. Create via POST with { name, duration, price, discount, discountType }
// 3. Update via PUT with { id, ...fields }
// 4. Delete via DELETE with ?id= query param
// 5. Show effective price: price - (discount% or fixed amount)

4.2 Finance Tab

// FinanceTab must:
// 1. Fetch financial data from /api/financial?userId=
// 2. Show real income, expenses, net profit
// 3. Add expense via POST /api/financial/expenses
// 4. Export CSV from existing expense data

4.3 Photo Studio

// PhotoStudioTab must:
// 1. Fetch photos from /api/therapists/[id] include: photos
// 2. Upload via POST /api/photos/upload (FormData)
// 3. Delete via DELETE /api/photos/[id]
// 4. AI edit via POST /api/photo-editor

Phase 5: Build Verification

# 1. Generate Prisma client
npx prisma generate

# 2. Run type check
npx tsc --noEmit

# 3. Run tests
npx vitest run

# 4. Build production
npm run build

# 5. Verify no TypeScript errors
# Fix any "error TS" or "Type error" messages

Phase 6: Common Fixes Quick Reference

SymptomFix
Property 'user' does not exist on type 'NextRequest'Cast: (req as any).user
Property 'query' does not exist on type 'AppRouterInstance'Use useSearchParams() instead of router.query
discount field missing from PrismaAdd to schema, run npx prisma migrate dev
Form sends FormData but API expects JSONChange to JSON.stringify() or fix API to parse FormData
Static page can't access request.urlAdd export const dynamic = 'force-dynamic'
API route needs auth but shouldn't require itRemove withAuth wrapper

Files to Create/Modify

src/app/
├── booking/[id]/page.tsx          # NEW: Booking flow
├── booking/[id]/success/page.tsx  # NEW: Booking confirmation
├── city/[city]/page.tsx           # NEW: City listings
├── therapist/[id]/page.tsx        # NEW: Therapist detail
├── blog/page.tsx                  # NEW: Blog index
└── api/
    ├── therapists/services/route.ts    # NEW: Service CRUD
    ├── financial/expenses/route.ts     # NEW: Expense management
    ├── system/health/route.ts          # NEW: System health
    └── system/optimize/route.ts        # NEW: Auto-cleanup

src/components/dashboard/GoldDashboard/
├── ServicesTab.tsx       # FIXED: Real API integration
├── FinanceTab.tsx        # FIXED: Real API integration
├── PhotoStudioTab.tsx    # FIXED: Real upload/delete
├── MarketingTab.tsx      # FIXED: AI generation + campaigns
└── AISettingsTab.tsx     # FIXED: Config persistence

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ace-music

免费

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

查看 ProjectZeroDays 的全部技能

报告此技能的问题