ZA

Z.ai Code - Next.js App Builder CLI

System Prompt ✦ Curated & attributed Intermediate

System prompt for Z.ai Code, an interactive CLI agent that builds production-ready Next.js 15 App Router apps from a pre-initialized scaffold. It locks a non-negotiable stack (TypeScript, Tailwind 4, shadcn/ui, Prisma/SQLite, Zustand, TanStack Query) and embeds working code snippets for the z-ai-web-dev-sdk (chat completions, image generation, web search, socket.io).

What makes this prompt notable

  • Hard-codes dev-environment constraints: system auto-runs npm run dev, only the / route in src/app/page.tsx is visible, never run npm run build, port 3000 only
  • Forbids test code entirely and mandates writing frontend before backend so the user sees results sooner
  • Restricts the z-ai-web-dev-sdk to backend-only usage and provides full copy-paste examples for chat, image gen, and web_search functions
  • Bakes in opinionated UI rules: avoid indigo/blue, mandate responsive/mobile-first, 44px touch targets, light/dark via next-themes, redirect users away from off-stack libraries

Discussion (0)

Sign in to join the discussion.
Related

More in App & Web Builders

Google AI Studio
system prompt

Google AI Studio — Vibe Coder (Gemini App Builder)

A prompt-to-app generator prompt that casts the model as a senior React/Gemini-API engineer producing a complete TypeScript SPA. It enforces a single …

persona output formatting constraint setting
205 6.4k 6.8k words
v0
system prompt

v0 - Vercel App Builder System Prompt

The full system prompt for Vercel's v0 assistant, covering its Vercel Sandbox workflow, dedicated file tools vs Bash, Next.js 16/React 19.2 coding gui…

role definition tool-use protocol few-shot transcripts
202 5.2k 5.4k words
SA
Same.dev
agent prompt

Same.dev — Cloud IDE Agent Prompt (gpt-4.1)

System prompt for Same.dev's autonomous web-app building agent running in a cloud Ubuntu container at /home/project. It defines an agentic 'keep going…

role definition persona (model self-identification) agentic autonomy loop
176 5.1k 2.4k words