DevStudioIT

How to write a system prompt

Safety, tools, format and persona in one place.

直接答案

A system prompt sets durable rules: persona, safety, tool use, and default output format for every turn.

实操步骤

  1. 1

    Keep it short enough to not burn the context window.

  2. 2

    Be explicit about what the model must not do.

  3. 3

    Test with the checklist and improver before shipping.

相关指南

常见问题

How to write a system prompt

A system prompt sets durable rules: persona, safety, tool use, and default output format for every turn.

Are these official provider prices?

No. Guides and calculators are planning estimates. Always confirm billing with the provider.

这些 AI 工具免费吗?

是的。所有工具和提示词库均可免费使用,无需注册。网站由广告资助。

需要 OpenAI 或 Anthropic API 密钥吗?

不需要。工具在浏览器本地运行。它们用规则估算成本并改进提示词,不会调用模型 API。