Install
openclaw skills install @deciqai/prisoners-dilemmaActivate when: user asks 'why does everyone keep doing X when it's obviously bad for all of us', 'how do we get out of this race to the bottom', 'should we trust them not to defect', 'we'd both be better off cooperating but it never happens', 'is this a prisoner's dilemma / Nash equilibrium / tragedy of the commons / race to the bottom'. Do NOT activate when: the situation is zero-sum (one side's gain is the other's loss) — use a different game model; or when the parties already have a long-established repeated relationship with observable moves — use repeated-games-reputation instead.
openclaw skills install @deciqai/prisoners-dilemmaWhatever the other party does, each player is individually better off defecting — so both defect, and both end up worse than mutual cooperation. This is the structural skeleton beneath price wars, arms races, overfishing, and ad spend spirals. The problem is never character; it is structure. Exhortations to cooperate fail. Change the matrix.
Composes with: second-order-thinking for matrix redesign · expected-value-and-kelly for probabilistic payoffs · repeated-games-reputation for the iterated-game case.
When NOT to use: zero-sum games · pure coordination problems (Schelling) · long transparent repeated game with established reputations (use repeated-games-reputation) · low-stakes reversible decisions
In Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.
Run the Game Diagnosis. Diagnose first, then redesign.
# Game Diagnosis: <situation>
Players: <P1>: C or D | <P2>: C or D
Matrix: (C,C)=R,R (C,D)=S,T (D,C)=T,S (D,D)=P,P [true PD: T>R>P>S]
Game type: <PD | Chicken | Coordination | Zero-sum | Other>
Dominant strategies / Nash equilibrium / Pareto-optimum / Gap (the trap)
Why "just cooperate" fails: <structural reason>
Escape options — Repetition: <feasible?> | Reputation: <observable to whom?>
Enforcement: <contract + penalty?> | Matrix transformation: <structural change?>
Recommended escape: <mechanism + why it changes the matrix>
Test: re-draw post-escape matrix — confirm defection is no longer dominant
→ Method in Action: Flood, Dresher, and Tucker — RAND, 1950
pricing-strategy.repeated-games-reputation.→ Primary sources: references/sources.md
[D] = designed upfront | [O] = observed in real use. [O] entries are more valuable.
| Fake move | Reality |
|---|---|
| [D] "They wouldn't be so stupid as to defect — it would hurt them too" | In a true PD, defection is not stupid; it is individually rational. If you are surprised when they defect, you misdiagnosed the game or refused to write the matrix. |
| [D] "We just need to build trust" | Trust without a matrix change is theater. In a one-shot PD, trust is exactly what the matrix punishes. Identify the mechanism, then confirm the matrix changed. |
| [D] Calling every conflict a "prisoner's dilemma" | Many conflicts aren't. Zero-sum, coordination, and Chicken games all have different structures and different fixes. Write the matrix first; check T > R > P > S. |
| [D] Treating "they cheated us" as evidence of bad character rather than bad structure | If the structure punishes cooperation, defection is what the structure produces. Character matters at the margin; structure dominates. |
| [D] "We have a contract, so we've solved it" | A contract without enforceability is a piece of paper. Test: does defecting now trigger penalties that turn T negative? If not, the contract is rhetoric. |
| [D] "Cooperation always pays in the long run" | Only if the game is genuinely repeated indefinitely with the same parties and observable moves. In a one-shot PD, cooperation does not pay — the matrix ensures it. |
| [D] Confusing PD with Chicken (T > R > S > P) | In Chicken, mutual defection is the worst outcome. In PD it is second-worst. The escape mechanisms differ fundamentally. |
| [D] "We tried cooperating and they defected, so cooperation doesn't work" | One round of data is not a verdict. The escape is structural, not based on whether one prior counterpart cooperated. |
| [D] Skipping the matrix and arguing about feelings | The PD lens only works if you write the matrix. Even ordinal rankings are enough to diagnose. |
| → Add [O] entries here after each real use — paste the actual failure pattern | What went wrong and why |
repeated-games-reputation invokedPart of deciqAI Knowledge Skills — open-source thinking skills that make rigor executable for AI agents. Built by deciqAI · https://deciqai.com · Contributions welcome — see the template at the repo root.