Guides

Prompting guides

The five parts of a good prompt, the mistakes that spoil one, and workflows for code, writing and AI-generated images.

Back to home

The 5-part prompt structure

  1. Role: who the model should act as.
  2. Goal: what success looks like.
  3. Context: inputs, audience, constraints, examples.
  4. Format: exactly how the answer should be shaped.
  5. Checks: rubric / edge cases / “ask clarifying questions”.

If you only do one thing: be explicit about format and constraints.

Common mistakes (and fixes)

  • Vague goal: define what “good” means (success criteria).
  • No format: specify bullets/table/JSON and required fields.
  • Too many constraints: keep to 3–6 key constraints.
  • No examples: provide 1–2 examples when style matters.
  • No verification: add a rubric or a quick self-check.

Use the Checklist → when you want a fast score + fix list.

Reducing hallucinations

  • Ask for explicit assumptions.
  • Require citations/links when summarizing sources.
  • Use “I don’t know” allowance + clarifying questions.
  • Use checklists/rubrics instead of “make it good”.

Tip: for important work, run “Draft → Critic → Revise”. It’s cheap quality.

Children learn this one too. Dragon Academy, a quiz game for kids from Prompt Smith AI, asks ‘Can an AI chatbot give a wrong answer?’ and teaches: ‘Yes, and it can sound just as confident as when it's right.’ Play a round →

Prompt debugging (2-minute loop)

  1. Restate: ask the model to restate the task + constraints in 3 bullets.
  2. Pin format: force headings/JSON and required fields.
  3. Test one edge case: “If input is missing X, what do you do?”
  4. Revise once: apply fixes, then re-run with the same format.
Before answering, restate:
- Your understanding of the goal
- The key constraints
- The exact output format

If anything is ambiguous, ask up to 3 clarifying questions first.

Copy/paste: prompt starter

Role: You are <role>.
Goal: <goal>.
Context: <inputs, audience, constraints>.
Output format: <exact format>.
Quality check: Before finalizing, list 3 potential mistakes and fix them.

Workflow: draft a social post

  1. Pick one idea: one technique, one insight, or one news item.
  2. Write the hook (1 line). Then 3–5 bullets. Then 1 CTA.
  3. Adapt to platform (X short, LinkedIn more context, IG caption story style).
Write 6 post variants about: <topic>
Platform: <X | LinkedIn | IG>
Audience: <who>
Tone: <direct, helpful>
Structure: Hook → 3–5 bullets → CTA
Constraints: no hype, concrete examples, under <length>

Carousels win when each slide contains one idea.

Create a 7-slide carousel outline.
Topic: <topic>
Slide rules: 1 idea per slide, short text.
Slides: 1 Hook, 2–6 Value, 7 CTA.
For each slide: title + 2 bullets + suggested visual.

Image prompting

Good image prompts specify subject, scene, style, composition, and constraints. If you want consistent branding, define a reusable style block.

Generate an image for a social post.
Subject: <subject>
Scene: <setting>
Style: minimal editorial, clean gradients, high contrast
Composition: centered subject, lots of negative space, 4:5
Text: none
Brand colors: violet + cyan accents
Deliver: 3 variations

For multi-turn image work, use an “edit” loop: generate → pick best → request variations/edit.

Prompts for everyday engineering work

1) PRD to tickets
Input: PRD text
Output: 10–20 tickets with title, acceptance criteria, risks, estimate

2) Code review
Give: issues (severity), minimal diff patch, tests to add

3) Incident postmortem
Output: timeline, root cause, contributing factors, action items, owners

Tip: ask for “minimal patches” and “acceptance criteria” to keep output actionable.

Repurpose one idea into five formats

Repurpose this idea into:
- X thread (5 tweets)
- LinkedIn post (hook + 3 bullets)
- IG carousel (7 slides)
- Short script (45 seconds)
- Newsletter snippet (150 words)

Constraints: concrete, no hype, include 1 example.

Book: AI-Savvy in 15 Minutes

A 39-page beginner’s PDF on using Claude and GitHub Copilot well.

$9.99 reduced from $19.99