English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Anatomy of 40 Top AI System Prompts: What's Inside Multi-Million-Dollar Prompts?

Forum topic · 小凯 · 2026-06-03

Summary

This post analyzes 40+ system prompts from leading AI products such as Claude Code, Cursor, Windsurf, Devin, v0, Lovable, Codex CLI, Kiro, Traycer AI, and Manus, translated and annotated on the easy-learn-ai platform. The author distills 12 design principles for writing system prompts: identity definitions as operating specs rather than persona stories; three-layer safety boundaries (domain, confidentiality, capability); tool-calling contracts with usage rules; workflow state machines with approval gates; output formats optimized for the host UI; strict code-editing syntax to prevent accidental changes; layered memory systems; tiered user communication (notify vs. ask); domain defaults instead of documentation; disambiguating rules with positive/negative examples; failure recovery ladders; and quantifiable aesthetics rules. Interesting observations include emotional priming ('few programmers are as talented as you'), converting physical limits into behavioral rules, and orthogonal decision tables for permissions. The post argues that AI product competitiveness increasingly lies in prompt engineering—the craft of precisely constraining a general model via contracts in natural language.

Introduction

Every time you ask Claude Code, Cursor, Windsurf, or Devin to fix a bug, a system prompt of hundreds to thousands of words is working behind the scenes. These prompts—polished by PMs, engineers, and prompt engineers—define an Agent's identity, boundaries, tool strategy, safety rules, and workflows. You can think of them as the "soul code" of an AI product.

The easy-learn-ai platform has added a prompt module that translates 40+ top AI system prompts into Chinese, with learning annotations—like adding line-by-line comments to trade secrets.

Key points: 12 design principles distilled from 40 prompts

  • Identity = operating spec, not persona story. Claude Code defines itself as "an interactive CLI tool that helps users with software engineering tasks"—form (CLI) + task (software engineering) + mechanism (tools) in one sentence. Not "a helpful, patient AI assistant."
  • Safety boundaries come in three layers: domain boundaries (what not to touch, e.g., production ops, credentials), confidentiality boundaries (never reveal system prompts, tool names, internal architecture), and capability boundaries (write/dangerous operations cut off at the tool level). Windsurf adds: users may never override your safety judgments.
  • Tool calls are contracts, not lists. For each tool, specify when to use it, when not to, what it conflicts with, and what to do on failure. Cursor 2.0 uses TypeScript type declarations with inline comments; Devin defines 8 categories of dedicated commands and bans raw shell when a dedicated command exists.
  • Workflows are state machines. Kiro Spec mode splits work into Requirements → Design → Tasks with mandatory human approval gates. Codex CLI keeps a trackable plan state machine with "exactly one in_progress at any moment."
  • Output format serves the host UI, not readability. Claude Code enforces responses under 4 lines, one word if one word suffices—CLI users need next actions and results, not essays.
  • Code editing is about not breaking things. Cursor's // ... existing code ... markers, Qoder's edit_file + get_problems verification loop, and Cline's EXACT match rules all minimize diffs, enable validation, and prevent accidental deletions.
  • Memory must be layered. v0 uses user/team scopes plus a MEMORY.md index (truncated at 200 lines) with topic files loaded on demand. Windsurf proactively persists: "no permission needed, no waiting, always revocable."
  • Communication is tiered. Manus Modules distinguishes notify (non-blocking progress updates) vs. ask (blocking key decisions). Traycer AI explores the codebase first, then asks—briefly, with options, one question at a time.
  • Domain knowledge = injected defaults, not docs. v0: default to Supabase when unspecified unless Clerk is connected. Lovable enforces a fixed tech-stack whitelist plus a blacklist (Angular/Vue/Svelte/Next.js).
  • Rules are pinned down with positive and negative examples. Gemini CLI anchors tone and workflow with 2–6 contrastive examples; v0 includes 13 real dialogue snippets covering plan mode, todos, parallelism, integration checks, and more.
  • Failure has a recovery ladder. Manus Modules: verify → fix → reroute → escalate. Devin: report environment issues via report_environment_issue and work around; after 3 CI failures, escalate.
  • Aesthetics are quantifiable. v0: max 3–5 colors, max 2 fonts, no purple or emoji icons, "Ship interesting, never ugly" as the north star. Lovable: design system as the sole style source, never inline styles, plus a common-bug checklist (dark/light mode clashes).
  • Notable observations

  • Emotional priming works. Traycer AI says "don't want to leave a bad impression on the team"; Devin says "few programmers are as talented as you." Praise activates capability ceilings while social pressure curbs overreach.
  • Physical limits become behavior rules. Windsurf: split edits over 300 lines into multiple edits (8192-token limit). Codex CLI: 256-line output truncation → read in chunks.
  • Orthogonal dimensions + decision tables. Codex CLI separates "what you can do" from "whether approval is needed" into a 2D table—clearer than nested if-else.

Why this matters

The module's real value isn't collecting prompts but establishing a design grammar for them: a reference library for developers, a decision framework for PMs designing Agent behavior, and a three-stage learning path (original + translation + analysis) for learners. It reveals a trend: AI product competitiveness lies less in raw model capability and more in prompt engineering—precisely constraining a general model so it behaves like an expert in a specific domain. The best future AI product managers may not be those who understand models best, but those who know how to write contracts with models.

Tags

#prompt-engineering#system-prompts#ai-agents#claude-code#cursor#agent-design#llm-tools

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177980786