A practical, copy-ready guide to turn fuzzy asks into clear, testable prompts that deliver consistent quality across tasks and models.
Summary
This guide distills techniques from vendor docs and peer-reviewed research into a simple workflow. You’ll learn patterns, guardrails, and checklists to move from intent to reliable outputs. All examples are model-agnostic.
Who is this for
- Product managers, marketers, analysts, editors, engineers
- Skill level: beginner → intermediate
- Prerequisites: basic familiarity with LLMs and copy/paste testing
Key concepts (fast)
- Role prompting: Assign the model an expert persona with scope and authority.
- Constraints: Explicit format, length, tone, sources, and forbidden behaviors.
- Exemplars: 1–3 short “gold” examples that show target style/shape.
- Iterative refine: Tighten prompts via test→review→edit cycles.
- Evaluation rubric: Objective pass/fail checks aligned to your goal.
Step-by-step
- Clarify the goal. Define audience, outcome, and success criteria in one sentence.
- Draft the prompt. Include role, task, constraints, inputs, and required output format.
- Add exemplars. Provide 1–3 concise examples showing the desired pattern.
- Specify guardrails. Tone, claims policy, sources, refusal rules, and limits (e.g., no speculation).
- Test on 3 cases. Include an easy, a typical, and a tricky input.
- Evaluate against a rubric. Score structure, accuracy, tone, and completeness.
- Refine. Edit constraints or examples; simplify wording; remove ambiguities.
- Automate checks. Add a “verifier” pass or a checklist the model must self-assess.
- Document the pattern. Save as a reusable template with placeholders.
- Monitor drift. Re-test weekly or on model updates; keep a changelog.
Mini checklist: Clear role • Fixed format • Concrete length limits • Source policy • 3 test cases • Rubric • Verifier step • Saved template
Prompt patterns (copy-ready)
Role + Constraints
Act as a {ROLE} with {YEARS} years of experience.
Task: {WHAT TO PRODUCE} for {AUDIENCE}.
Constraints:
- Length: {WORDS/SECTIONS}. Format: {STRUCTURE/HEADINGS}.
- Tone: {TONE}. Reading level: {GRADE}.
- Must include: {ELEMENTS}. Must avoid: {OFF-LIMITS}.
Output: Only return {FORMAT} with no preamble.
COT with verifier
You will do two passes.
PASS 1 (hidden reasoning, concise answer):
- Think step by step privately.
- Then output ONLY the final answer in {FORMAT}.
PASS 2 (verifier):
- Re-check the answer against this checklist: {RUBRIC}.
- If any check fails, fix and re-output the final answer only.
Do not reveal internal steps. If uncertain, say "Insufficient evidence".
Critic–Improve loop
ROLE: Lead editor.
Input DRAFT: <<< {TEXT} >>>
Critique:
- Accuracy, clarity, structure, tone, source support.
- List concrete fixes.
Improve:
- Apply fixes. Return final version only.
Stop if no critical issues found (score ≥ {THRESHOLD}/10).
Chain-of-Density summary
Summarize <<< {LONG TEXT} >>> in {WORDS} words using Chain-of-Density:
1) Write a minimal summary.
2) Iteratively add the most informative missing entities/claims,
increasing density without adding fluff.
3) Keep length constant by replacing generic phrases with specifics.
Return one paragraph, no bullets, no headings.
Few-shot style transfer
STYLE EXEMPLARS
A>> "{SOURCE_SNIPPET_1}"
B>> "{SOURCE_SNIPPET_2}"
TASK: Rewrite <<< {INPUT_TEXT} >>> in the style of A+B:
- Preserve facts and structure.
- Mirror sentence rhythm and specificity.
- Keep length within ±10% of input.
Return only the rewritten text.
Guardrails for tone & claims
Policy:
- Tone: {NEUTRAL/PROFESSIONAL}.
- Claims: Cite sources inline as [Author, Year] or mark as "Unverified".
- No medical/legal/financial advice; include disclaimer if prompted.
- Refuse requests violating policy: {LIST}.
Task: {TASK}. If required info is missing, ask 1 clarifying question, then proceed.
Output format: {REQUIRED STRUCTURE}.
Pro tips & tricks
- Prefer short, concrete constraints.
- Show, don’t tell: add a tiny exemplar.
- Lock output with schemas or headings.
- Use “only return {FORMAT}” to remove chatter.
- Add a verifier or checklist for reliability.
- Test with edge cases and malformed inputs.
- Cap length to curb rambling.
- Version your prompts.
Examples
Example 1 — Marketing (before/after)
Before
Write a blog post about our product.
After
Act as a B2B SaaS copywriter.
Task: Write a 600–700 word blog post for HR directors on reducing onboarding time.
Constraints: H1 + 3 H2s, 2 customer stats (mark "Unverified" if unknown), CTA to demo.
Tone: Practical, non-hype. Reading level: Grade 9.
Output: Markdown only.
Inputs: Product = OnboardNow; Key benefit = cut onboarding by 30%; ICP = 500–2,000-employee firms.
Example 2 — Analysis (before/after)
Before
Analyze these survey results and tell me insights.
After
Act as a market research analyst.
Task: Produce a 5-bullet insight summary + 3 recommendations.
Data: <<< paste table >>>.
Constraints: Each insight links to ≥1 data point; avoid causal language; note limitations.
Verifier: Re-check each bullet for a direct numeric reference.
Output: Markdown bullets only.
Common pitfalls (and fixes)
- Vague task → Add audience, format, and length.
- Hallucinated facts → Require sources or “Unverified” tag.
- Messy output → Force headings or JSON schema.
- Overlong answers → Set hard word/section caps.
- Inconsistent tone → Provide a 2–3 line exemplar.
Quality checklist
- Role and scope defined
- Audience and goal explicit
- Format/length fixed
- Tone and reading level set
- Sources/claims policy present
- At least one exemplar
- Verifier/checklist included
- Tested on 3 cases
- Rubric applied and passed
- Version saved with notes
Tools & setup
- Any modern LLM interface (web or API), a notes app, and a place to store templates.
- Track versions in a doc or Git repo.
- Context limits: Models have token windows; long inputs or many exemplars can truncate context. Summarize or chunk large inputs, and keep prompts lean.
Internal links
- AI Guide Library — Master List — https://aiupdates.news/category/guides/
External sources
https://platform.openai.com/docs/guides/prompt-engineering
https://docs.anthropic.com/claude/docs/prompt-engineering
https://ai.google.dev/gemini-api/docs/prompting
https://arxiv.org/abs/2201.11903
TL;DR
- Define role, constraints, exemplars, and guardrails.
- Test on 3 inputs; add a verifier checklist.
- Save as a reusable, versioned pattern.
FAQ
Q: What’s the fastest way to improve a weak prompt?
A: Add audience, format, and a short exemplar; cap length.
Q: How do I reduce hallucinations?
A: Require sources or label as “Unverified,” and add a verifier pass.
Q: Do I need few-shot examples?
A: One or two “gold” mini examples often stabilize tone and structure.
Q: How do I keep outputs consistent across writers?
A: Standardize prompts with the same headings, checklist, and rubric.
Q: What if inputs exceed context limits?
A: Summarize, chunk, or link to key excerpts; keep the prompt lean.












