ysskrishna logoysskrishna

Chapter 5 of 8 · 2 min

Structured thinking prompts for decisions

When the task is a decision rather than code, give the model a method: pre-mortem, tradeoff table, five whys or six hats.

Asked "should we move to a queue?", a model usually gives a balanced-sounding paragraph that commits to nothing. Not because it cannot reason, but because the prompt gave it no method. Structured thinking prompts supply the method.

Four methods that cover most engineering decisions

MethodUse whenPrompt core
Pre-mortemBefore a launch, migration or big refactor"Assume this failed in 6 months. List the 5 most likely causes, each with a mitigation and an owner."
Tradeoff tableChoosing between 2-4 options"Options as columns, criteria as rows, score 1-5 with a one-line reason; then recommend one and say what would change your mind."
Five whysA recurring bug or incident"Start from the symptom. Ask why five times, citing evidence at each step. Stop at a cause we can act on."
Six thinking hatsA decision mixing facts, feelings and risks"One section per hat: facts, gut feel, risks, benefits, new ideas, then a synthesis."

Example: a pre-mortem prompt

We plan to move nightly cron jobs to a job queue (Celery + Redis) next sprint.

Run a pre-mortem:
1. Assume it is 6 months later and the migration failed.
2. List the 5 most likely causes, most likely first.
3. For each: early warning sign, mitigation, owner role.
4. Finish with the one change to the plan you would make today.

Use only facts in this message and the repo; mark guesses as [guess].

The last line keeps the model from inventing incidents. Marking guesses is useful in every method.

Ready-made methods as skills

Typing a method every time is error-prone. ai-agent-skills packages 17 of them as installable skills, grouped by job: Understand (five whys, analytical, systems, first principles, design), Assess (SWOT, tradeoff, prioritization, strategic, Fermi), Check (critical, pre-mortem, ethical), Ideas (creative, lateral), Angles (six thinking hats), plus a thinking-method-selector that picks one for you.

npx skills add ysskrishna/ai-agent-skills --skill pre-mortem

Once installed, "run a pre-mortem on this plan" triggers the same structure every time, including the habit of gathering facts before analysing.

Keep facts and opinions apart

The most valuable thing a method does is separate kinds of statements. In a six-hats pass, facts go under White, gut reactions under Red, risks under Black. When they are mixed, a confident opinion reads like a fact. Ask the model to tag claims:

Tag each bullet [fact], [estimate] or [opinion].

Step by step

  1. Pick a real decision your team faces this month.
  2. Choose the method from the table.
  3. Write the prompt with: the decision in one sentence, the facts you have, the method steps, an output limit, and "mark guesses".
  4. Compare the result with an unstructured "what do you think?" prompt on the same decision.

Quick check

  1. Which method fits "our deploys keep failing on Fridays"?Five whys: start from the symptom and dig to an actionable cause.

  2. Which line stops the model inventing facts?"Use only facts given; mark guesses as [guess]" (or tag each claim).

  3. What does the thinking-method-selector skill do?Picks a suitable method from the collection for your question.

Continue exploring

CourseCover image for Agent Building Blocks: Skills, Subagents, MCP and Hooks

Agent Building Blocks: Skills, Subagents, MCP and Hooks

A free, hands-on course on the four pieces behind Cursor and Claude Code agents: skills, subagents, MCP servers and hooks. Build each one, then combine them.

Agent Skills
Chat & AI
+1

9 chapters · 30 min

BlogCover image for 17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

AI Apps & Assistants
Agent Skills
4 min read
ToolCover image for AI Token Counter

AI Token Counter

AI token counter with model pricing and context-window comparison in your browser.

Chat & AI
AI Apps & Assistants
+1
Productskills.sh+1Claude Code Subagents for Cursor

Claude Code Subagents for Cursor

Your Cursor subagents can finally run on the model you picked in each agent file.
Chat & AI
Agent Skills
AI Apps & Assistants
Bash
BlogCover image for How to Install Caveman in Cursor and Claude Code

How to Install Caveman in Cursor and Claude Code

AI Apps & Assistants
Agent Skills
+1
3 min read
BlogCover image for Publish AI Agent Skills to ClawHub: Stop Re-Pasting Your AI Workflow

Publish AI Agent Skills to ClawHub: Stop Re-Pasting Your AI Workflow

AI Apps & Assistants
Agent Skills
3 min read