---
title: "如何给推理模型写提示词，以及 Anthropic “frontend-design” skill 带来的启示"
url: "https://zuey.me/articles/cach-prompt-reasoning-model-va-bai-hoc-tu-anthropic-ve-frontend-design-skill?lang=zh"
locale: zh
access: members
full_text: false
published_at: "2025-11-24T09:00:27.000Z"
tags: ["Prompt Engineering", "Claude Code", "Design", "AI"]
translations:
  en: "https://zuey.me/articles/cach-prompt-reasoning-model-va-bai-hoc-tu-anthropic-ve-frontend-design-skill.md?lang=en"
  vi: "https://zuey.me/articles/cach-prompt-reasoning-model-va-bai-hoc-tu-anthropic-ve-frontend-design-skill.md?lang=vi"
  ko: "https://zuey.me/articles/cach-prompt-reasoning-model-va-bai-hoc-tu-anthropic-ve-frontend-design-skill.md?lang=ko"
  ja: "https://zuey.me/articles/cach-prompt-reasoning-model-va-bai-hoc-tu-anthropic-ve-frontend-design-skill.md?lang=ja"
---
# 如何给推理模型写提示词，以及 Anthropic “frontend-design” skill 带来的启示

> 给推理模型写提示词和传统模型完全不同：塞的细节越多，输出越差。这是我从 Anthropic 的 “frontend-design” skill 学到的东西——区区 42 行、约 400 tokens，却彻底改变了局面。

> **TIP:** **TL;DR：** 别再对推理模型的提示词想太多。找出需要覆盖的默认行为 → 找到根本原因并给出具体替代方案 → 以恰到好处的粒度把指导系统化。放对位置的约 400 tokens 就足以彻底改变输出。

有一件极其重要却很少有人注意到的事：**给推理模型写提示词的方式，和给传统模型写提示词完全不同**。这篇文章是我在 Anthropic 那个轰动一时的 “frontend-design” skill 之后学到的东西。

最精彩的部分大概是 Anthropic 在博客文章 “Improving frontend design through Skills” 里分享的方法论——如果你在做 AI 辅助开发，这篇必读。

### 推理模型的问题：提示词越详细，效果越差！

这就是我想说的洞察：**对于 Gemini 3 这样的推理模型，往提示词里塞太多上下文和逻辑，往往会让输出变得更差，而不是更好**。

我相信 Việt 会同意这个观点，因为不久前他本人就在给 “Build in Public VN” 社区的直播里分享过。

为什么？因为推理模型被设计成会自己生成 “reasoning tokens”——它会自己思考、自己分析。当你给它太多 step-by-step 的指令时，你其实是在无意中 *“限制”* 它的推理能力。模型会过度分析你给的那些变量，而不是自由地寻找最优解。

其实，Gemini 3 发布时 [Google 的官方文章](https://blog.google/products/gemini/gemini-3/) 也证实了这一点：

> Gemini 3 is exceptional at zero-shot generation and handles complex prompts and instructions to render richer, more interactive web UI. Gemini 3 is the best vibe coding and agentic coding model we've ever built.
>
> — Google——Gemini 3 发布介绍

但与此同时，模型在面对简单、具体的指令时又**非常容易被引导**。例如：

| 提示词 | 结果 |
| --- | --- |
| `help me build a hello world page` | 相当简陋 |
| `help me build a hello world page with a Linear style` | 完全不同，专业得多——只是多加了一个关键词 |

---

### “Distributional convergence”——AI 输出总是千篇一律的原因

Anthropic 给这个问题起了个名字：**“distributional convergence”**（分布收敛，越南语我都不知道怎么翻）。

> During sampling, models predict tokens based on statistical patterns in training data. Safe design choices – those that work universally and offend no one – dominate web training data. Without direction, Claude samples from this high-probability center.
>
> — Anthropic——Improving frontend design through Skills

通俗地说（按我的理解）：我们都知道 AI（LLM）的工作原理是“统计概率”。模型在数百万个网站上训练，而那些“安全”、千篇一律的设计——比如 Inter 字体、白底上紫得发青的渐变、微动画——在训练数据中出现得太多了。没有具体指引的话，模型就会默认选择概率最高的选项——通常也是最无聊的设计。

---

*Phần còn lại dành cho thành viên có quyền đọc toàn bài (Knowledges, Kết hợp, Cộng đồng) — see plans at https://zuey.me/pricing*
