AgentHubAgentHub

Guides·Prompts

Tips for writing effective prompts

Role, context, constraints, and examples for reliable prompts.

Suggested structure

  1. Role: who you are
  2. Context: project background, inputs
  3. Task: what to do
  4. Constraints: format, length, don'ts
  5. Example (optional): sample output

Common mistakes

• Too vague: "optimize code" → specify language, module, goal • Too many asks at once: split turns or make a skill • Missing output format: specify table/JSON/Markdown • Reusable prompts → team skills

Tips for writing effective prompts - AgentHub