跳到正文
提示词001

提示词变量:为什么它比正文更决定输出质量

括号里的部分往往比指令更起作用。本文用前后对照示例,讲怎么把变量设计成带约束的填空,而不是空槽。

本文正文以英文发布。

prompt001 编辑部 8 分钟阅读

Most prompt advice focuses on the instructions: add a role, add a constraint, tell it to think step by step, tell it not to apologise. All of that matters. But in practice, when a template fails, the failure is usually in the variables — the parts the buyer fills in — and specifically in how much freedom those slots leave.

The empty-slot problem

Consider a template with a variable like this:

topic: [your topic]

Whatever the instructions say, this slot hands the model an unbounded problem. “Marketing” is a topic. “Why our ceramic dripper beats a French press for one-cup brewing” is a topic. The same prompt will produce a strategy memo for the first and a product paragraph for the second, and the buyer will conclude the prompt is bad.

The prompt is not bad. The variable was under-specified. A template is only as good as the constraints it imposes on its inputs.

Three ways to constrain a variable

1. Ask for a form, not a subject

Instead of topic, ask for claim — one sentence stating what the piece argues. Instead of product, ask for product plus differentiator. Instead of style, ask for reference — an artist, a film, a photographer.

The shift is from “what is this about” to “what must be true”. Models are much better at executing a claim than at inventing a frame.

2. Add a negative constraint beside the positive one

Every variable that describes what you want should have a neighbour describing what would make the output wrong. In text prompts this is often an avoid field; in image prompts it is the difference between “cinematic lighting” and “cinematic lighting, not neon, not teal-and-orange”.

Negative constraints do more work than positive ones in image models, because the model’s default aesthetic is strong and generic. Naming the look you do not want is how you escape it.

3. Bind variables to each other

The most useful variable design is a pair that must be consistent:

  • audience + objection — the objection must be the one that audience actually has.
  • scene + camera — the camera choice must make sense for the scene’s scale.
  • data + claim — the claim must be supported by the numbers given.

When two variables are bound, the buyer cannot fill them in lazily. The prompt forces a decision, and the decision is where quality comes from.

A worked example

Here is a variable table from a weak listing and a strong one, both for the same task — a product page for a physical good.

Weak:

Variable Example
product ceramic dripper
audience coffee lovers
tone friendly

Strong:

Variable Purpose Tested example
product Name plus the one physical detail that differentiates it “Ceramic pour-over dripper, single-hole, 2-cup”
audience Who buys, plus the equipment they already own “Home brewers with a burr grinder and no scale”
objection The single hesitation the page must dismantle “Another gadget I will use twice”
proof One measurable, checkable claim “Holds temperature within 2°C over a 4-minute brew”
avoid Phrasings that make the copy generic “elevate”, “game-changer”, “artisanal”, exclamation marks

The strong table is longer, but every row removes a decision from the model. The proof row in particular transforms the output: instead of vague quality language, the model has a number to build a paragraph around.

Why sellers should document variables, not just list them

If you sell a prompt, the variable table is your product documentation. Buyers judge the template by it before they pay, and they blame the template when a slot they filled badly produces a bad result. Naming the purpose of each variable and giving one tested example is the cheapest way to prevent that.

A useful test: give your prompt to someone who has never seen it, with only the variable table. If they can produce a decent output on the first try, the documentation is complete. If they ask “what do you mean by tone?”, it is not.

Why buyers should read the table before the price

The variable table tells you whether the prompt applies to your work faster than the description does. A table with five constrained variables for a task adjacent to yours is usually a better purchase than a table with two loose slots for a task identical to yours — because the constrained one encodes decisions you would otherwise have to make yourself.

That is the trade a prompt marketplace is really selling: not the words, but the decisions already made inside the slots.

别再每周重写同一条提示词

买一条已经通过审核的提示词,或把你反复在用的那些上架,拿走每笔成交的 80%。

一次购买 · 永久可用 · 输出可商用