WHY-Driven Decision Making
Foundational Layer - Applies First
Applies to EVERY prompt, before any other skill: WHY ANALYSIS -> THEN PROCEED.
Never act without understanding WHY.
Golden Circle
Work inside-out: WHY -> HOW -> WHAT
- WHY: purpose, belief, motivation
- HOW: process, values, approach
- WHAT: features, outputs, deliverables
Prompt Analysis Protocol
- EXTRACT EXPLICIT WHY - What did user state as goal?
- INFER IMPLICIT WHY - What need not articulated?
- VALIDATE OR ASK - Is WHY clear enough?
- ANCHOR TO WHY - Every output traces to WHY
Example
PROMPT: "Add loading spinner to dashboard"
STEP 1: Explicit WHY: Not stated
STEP 2: Implicit WHY: Users confused? App frozen? Duplicate clicks?
STEP 3: ASK: "What problem? Users think broken, or clicking multiple times?"
STEP 4: Anchor all decisions to answer
Golden Rules
- Ask WHY before acting
- Dig deeper with 5 Whys
- State WHY explicitly in outputs
- Validate understanding
- Connect every decision to purpose
Iron Rules (Never Break)
- Never implement without purpose
- Never copy without understanding
- Never skip WHY in reviews
- Never let urgency bypass purpose
- Never assume shared understanding
3-Second WHY Check
| Question | Answer |
|---|---|
| WHY am I doing this? | Purpose |
| WHAT value created? | Benefit |
| WHO benefits? | Stakeholder |
Can't answer in 3 seconds -> STOP and clarify.
5 Whys Technique
"We need a dashboard"
Why? -> "To see metrics"
Why? -> "To track performance"
Why? -> "To make better decisions"
Why? -> "Because overwhelmed by data"
ROOT: Reduce overwhelm, create clarity
Why-Chain Rule
Every stated WHY becomes three things (PRD §7A.5 Why-Chain, template in aid-prd/references/prd-template-extended.md):
| WHY | Requirement | Eval | Metric |
|---|---|---|---|
| The stated reason | What we build because of it | The test or eval case that proves it | The production metric that tracks it |
A WHY that yields none of the three is an opinion, not a requirement. Turn it into a requirement + eval + metric, or move it to open questions.
Agentic Lens (Phase 1 entry, ALWAYS)
After the WHY / 5 Whys, the conversation ALWAYS asks the 6 shape questions (PRD §1.5, verbatim):
- Can every path be enumerated in advance?
- How much does the problem vary from case to case?
- What does an error cost, and is it reversible?
- Does it need judgement over unstructured input?
- What latency and cost budget is there?
- Who must approve actions?
Then three more (who approves actions is Q6): on whose behalf does the solution act? Who bears the cost of an error? What must never happen?
Output: the "WHY + shape brief", saved as docs/prd/WHY-SHAPE-BRIEF-<feature>.md (template in SKILL.extended.md): WHY statement, Why-Chain seeds, the answers to the 6 questions, a level HYPOTHESIS (0-5) with a one-line reason (starting from the Phase 0 solution-shape hypothesis in the research report; any change from it is recorded with a reason), the error owner, never-do list and approvals. It is the shared input of every Phase 1 agent (/prd).
The level is a hypothesis, not a decision: the PM and the tech lead decide it later in the shaping session, and the tech lead signs it as an ADR (A1).
Phase-Specific WHY Questions
| Phase | Core Question |
|---|---|
| Discovery | "Why is this problem worth solving?" |
| PRD | "Why does user need this feature?" |
| Tech Spec | "Why this architecture?" |
| Development | "Why this code? Why these connections?" |
| QA & Ship | "Why this test? Why ready?" |
Red Flags
| Signal | Ask |
|---|---|
| "Just do it" | "What problem does this solve?" |
| "Everyone wants it" | "Why specifically?" |
| "Competitor has it" | "Does our WHY require it?" |
| "It's urgent" | "What's cost of not doing it?" |
| "Trust me" | "Help me understand reasoning" |
Code Documentation WHY Pattern
# WHY: Users with slow connections timing out on large datasets.
# WHAT: Paginated query with streaming response.
# CONNECTION: Called by ReportGenerator, feeds into ExportService.
def paginated_query(query: str, page_size: int = 100) -> Iterator[Row]:
"""
WHY page_size=100: Balance memory (<10MB) vs latency (<50ms).
WHY Iterator: Allows early stop without loading all data.
"""
Test WHY Pattern
def test_retry_on_network_timeout(self):
"""
WHY: 3% of payments fail due to network issues.
EXPECTED: Retry 3x recovers 90%.
COST OF FAILURE: $15 avg transaction lost.
"""
Checklist
- [ ] Did I understand WHY before starting?
- [ ] Did I document WHY in output?
- [ ] Does every function explain purpose?
- [ ] Does every test explain what failure it prevents?
- [ ] Can someone trace back to WHY?
- [ ] Does every WHY yield a requirement, an eval and a metric (Why-Chain)?
- [ ] Phase 1: were the 6 shape questions and the 4 agentic questions asked, and is the WHY + shape brief saved?