streak-insights
Get cross-challenge insights, compound learning detection, and patterns
Turn a finalized survey design into a working app scaffold (TanStack Start / Next.js / static, with Supabase or local storage)
> /plugin marketplace add ooiyeefei/cccHow it fires
How this command gets triggered: by you, by Claude, or both.
/turn-into-appContext preview
What this command does when you run it.
Turn a finalized survey design into a working app scaffold (TanStack Start / Next.js / static, with Supabase or local storage)
description: Turn a finalized survey design into a working app scaffold (TanStack Start / Next.js / static, with Supabase or local storage) allowed-tools: Read, Write, Bash, Edit, AskUserQuestion
Take a finalized survey design (output from `/design-survey` or a Markdown spec the user provides) and emit a working app scaffold the user can `npm install && npm run dev` immediately.
/turn-into-app
Or with a path to a design doc:
/turn-into-app from survey-design-2026-04-29.md
Always invoke the `rethink-surveys` skill first. Then load [`references/multimodal-ux.md`](../skills/rethink-surveys/references/multimodal-ux.md) for stack and code-pattern guidance.
Ask if not obvious: *"Is this the final question set? If you're still iterating on questions, run `/design-survey` first — it's harder to fix questions after the app exists."*
Ask the user to pick:
| Stack | Best for | |---|---| | **TanStack Start + Supabase** | Production-grade, voice support, multilingual, mobile web. (Proxymate stack — battle-tested.) | | **Next.js + Supabase** | Team already on Next.js. Roughly equivalent capability. | | **Static HTML + Supabase Edge Functions** | One-off survey, no team, minimal infra. | | **Reboot.ai** | AI-interviewer is the primary modality. |
Default if user hasn't picked: **TanStack Start + Supabase** (Proxymate-style).
Ask:
| Storage | When | |---|---| | **Supabase (managed Postgres + Storage + Edge Functions)** | Production. Standard. | | **Local JSON file + simple express server** | Hackathon prototype, no online deps. | | **Bring your own DB** | User has an existing schema/host they want to write into. |
Default: **Supabase**.
If the design includes voice or AI-interviewer mode, ask for relevant credentials:
Don't bake credentials into code; emit env-var references and a `.env.example` file.
For TanStack Start + Supabase (the default):
1. **Project structure** based on Proxymate (`src/routes/survey.index.tsx` + components):
2. **Generate the question-driven code:**
3. **Don't reinvent components.** Reuse Proxymate's `OptionCard`, `StepShell`, `TaskCapture` verbatim — they're already battle-tested for this use case. Reference the live repo: `https://github.com/ooiyeefei/shanghai-lovable-survey`.
4. **Migration first.** The migration must run before the app starts (or first INSERT 400s). Note this prominently in the README.
Before declaring "scaffold ready", run through:
Don't ship without it. Recommend (and offer to do):
Brief deploy notes per stack:
The plugin assumes the Proxymate repo (`shanghai-lovable-survey`) is the canonical reference implementation. Direct file mappings to copy from:
Get cross-challenge insights, compound learning detection, and patterns
Create a new challenge with guided setup (learning, building, fitness, habit, creative, custom)
View progress statistics, streaks, and achievements for your challenge