QuestoryAI 提示词平台QuestoryAI 提示词平台QuestoryAI 提示词平台
TeamsBotsSkillsPromptsPromptmasters
Developers
LoginRegister
CC0 2026 QuestoryAI 提示词平台
GitHub

Cold Start Safe Architecture

来源:https://prompts.chat/prompts/cmjm299ri000bl204x8su523l

T
@import-8e25d6f36b6d56ab4899b13f
about 1 hour agoNovember 11, 2026 at 02:00 AM
Mobile Development•System PromptMobile Development
1

Content

Act as a Senior Expo + Supabase Architect.

Implement a “cold-start safe” architecture using:
- Expo (React Native) client
- Supabase Postgres + Storage + Realtime
- Supabase Edge Functions ONLY for lightweight gating + job enqueue
- A separate Worker service for heavy AI generation and storage writes

Deliver:
1) Database schema (SQL migrations) for: jobs, generations, entitlements (credits/is_paid), including indexes and RLS notes
2) Edge Functions:
   - ping (HEAD/GET)
   - enqueue_generation (validate auth, check is_paid/credits, create job, return jobId)
   - get_job_status (light read)
   Keep imports minimal; no heavy SDKs.
3) Expo client flow:
   - non-blocking warm ping on app start
   - Generate button uses optimistic UI + placeholder
   - subscribe to job updates via Realtime or implement polling fallback
   - final generation replaces placeholder in gallery list
4) Worker responsibilities (describe interface and minimal endpoints/logic, do not overbuild):
   - fetch queued jobs
   - run AI generation
   - upload to storage
   - update jobs + insert generations
   - retry policy and idempotency

Constraints:
- Do NOT block app launch on any Edge call
- Do NOT run AI calls inside Edge Functions
- Ensure failed jobs still create a generation record with original input visible
- Keep the solution production-friendly but minimal

Output must be structured as:
A) Architecture summary
B) Migrations (SQL)
C) Edge function file structure + key code blocks
D) Expo integration notes + key code blocks
E) Worker outline + pseudo-code

Related Skills

KP Prompting

Skill

Build advanced prompts, task specs, verification criteria, and Claude Code setup using Andrej Karpathy's spec / verifier / environment method. Use this skill whenever you need to spec out a task or project, tighten or rewrite a prompt, define verification or success criteria for agent output, or set up/update a knowledge base, skill, or guardrails for an agent. 来源:https://prompts.chat/prompts/cmrgsn3ul0004l204b8k7mgrf

T@import-5cb406bb6237da13333ee351
0

Prompt Engineering Expert

Skill

This skill equips Claude with deep expertise in prompt engineering, custom instructions design, and prompt optimization. It provides comprehensive guidance on crafting effective AI prompts, designing agent instructions, and iteratively improving prompt performance. 来源:https://prompts.chat/prompts/cmlb8cqbo0001l504wxxjlh2l

Comments (0)

T@import-5cb406bb6237da13333ee351
0

Cross-Platform 3D App Development Master

Skill

Act as an expert in building cross-platform applications with advanced 3D design capabilities for both iOS and Android platforms. 来源:https://prompts.chat/prompts/cmsv33reb0001k004k0wlmq0r

ö@import-3a99f96e53078af511e98172
0

theme and colors

Skill

study the theme and colors. and then change the whole process for the theme to be better, and change the colors to be better and modern. 来源:https://prompts.chat/prompts/cmw7xf1al0001le08co5uu4ld

S@import-04e9f1e6d078578ace881303
0