foundationPrompt Craftbeginner

chain of thought

/chayn-of-THAWT/

A prompting technique where you ask an AI to show its reasoning step by step before giving a final answer, dramatically improving accuracy on complex tasks.

Impact
Universality
Depth

Chain-of-thought (CoT) prompting is one of the most powerful techniques in AI interaction. Instead of asking for a direct answer, you ask the AI to think through the problem step by step. Research shows this improves accuracy by 10-30% on math, logic, and multi-step reasoning tasks.

The magic is simple: adding 'Let's think step by step' or 'Walk me through your reasoning' to a prompt forces the model to generate intermediate reasoning tokens before committing to an answer. This reduces hallucination because each step constrains the next. It's like asking someone to show their work on a math test — the process itself catches errors.

For AI operators, chain-of-thought is your default mode for anything non-trivial. Code architecture decisions, debugging sessions, business analysis — anytime the answer requires more than one logical step, invoke CoT.

When to Use It

Any complex task: debugging, architecture decisions, math problems, multi-step analysis, or when the AI's first answer seems wrong.

Try This Prompt

$ Think through this step by step before giving me your recommendation. Show your reasoning chain.

Why It Matters

Chain-of-thought is the single highest-ROI prompting technique. It costs nothing extra and catches errors before they compound.

Memory Trick

Think of a chain — each link connects to the next. Break one link and the whole chain fails. That's why showing each step matters.

Example Prompts

Let's think through this architecture decision step by step. What are the tradeoffs?
Walk me through your reasoning before you write the code
Use chain-of-thought: analyze this error message, form a hypothesis, then suggest a fix
Before answering, reason through each constraint one at a time

Common Misuses

  • ×Applying CoT to simple factual lookups where it adds latency without benefit
  • ×Confusing chain-of-thought with chain-of-command — CoT is about reasoning, not delegation
  • ×Assuming CoT always helps — for creative tasks, too much structure can constrain the output

Related Power Words

A Mac app that coaches your AI vocabulary daily

Become a Better AI Communicator