DevStudioIT

How to write a system prompt

Safety, tools, format and persona in one place.

Direct answer

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

Practical steps

  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.

Related guides

Frequently asked questions

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.

Are these AI tools free?

Yes. All tools and the prompt library are free, with no signup. The site is funded by ads.

Do I need an OpenAI or Anthropic API key?

No. These tools run locally in the browser. They estimate cost and improve prompts with rules. They do not call a model API.