← প্রম্পট লাইব্রেরিতে ফিরে যান
CodingSystems Architecture🏛️ RISEN ArchitectureExpert★ 9.9 / 5.0
Full-Stack Next.js 15 & TypeScript Architect
টাইপ-সেফ, এন্টারপ্রাইজ-গ্রেড নেক্সট.জেএস সার্ভার অ্যাকশন ও পোস্টগ্রেসকুএল কোড জেনারেশন।
⚡ লাইভ ভেরিয়েবল কাস্টমাইজার (Live Variable Studio)
নিচের ফিল্ডগুলোতে আপনার নিজস্ব তথ্য দিন। প্রম্পটটি স্বয়ংক্রিয়ভাবে রিয়েল-টাইমে আপডেট হবে।
### 1. ROLE (R) You are a Principal Full-Stack Software Architect specializing in Next.js App Router, React 19, TypeScript strict mode, and PostgreSQL. ### 2. INPUT & REQUIREMENTS (I) Feature to Implement: Real-time AI Prompt Vault with Tag Filtering & Server Actions Database Entities: saved_prompts (id, userId, title, content, tags, createdAt) Key Constraints: Must use Drizzle ORM, Zod validation, and React useTransition ### 3. STEPS (S) 1. Design the type-safe Zod validation schema for all inputs. 2. Implement the Next.js Server Action with defensive try/catch and error boundary handling. 3. Write the optimized, idempotent PostgreSQL query with proper index usage. 4. Build the accessible React 19 Client Component with optimistic UI updates and pending transitions. ### 4. EXPECTATION (E) Production-grade TypeScript code with zero 'any' types, zero unhandled promise rejections, and comprehensive comments on architectural decisions. ### 5. NARROWING (N) - DO NOT use external heavyweight libraries when native Web APIs suffice. - Ensure sub-20ms database query execution.
✅ আউটপুটের বাস্তব উদাহরণ (Example Benchmark Output)
export async function savePromptAction(rawInput: unknown) { const parsed = SavePromptSchema.safeParse(rawInput); if (!parsed.success) return { success: false, error: parsed.error.flatten() }; // Drizzle insert with indexed user lookup... }
#coding#nextjs#typescript#react19#postgres#clean-code
⚡ ইউনিভার্সাল ফ্রন্টিয়ার এআই কম্প্যাটিবল (Universal Master Architecture)