🎯

game-theory-tit-for-tat

🎯Skill

from flpbalada/my-opencode-config

VibeIndex|
What it does

Applies the Tit for Tat game theory strategy to foster cooperative interactions by mirroring others' behaviors and promoting mutual trust.

πŸ“¦

Part of

flpbalada/my-opencode-config(40 items)

game-theory-tit-for-tat

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add flpbalada/my-opencode-config --skill game-theory-tit-for-tat
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Overview

# Tit for Tat - Game Theory Strategy

Tit for Tat (TFT) is a strategy from game theory for repeated interactions. It

famously won Robert Axelrod's computer tournaments by being simple yet

remarkably effective. The strategy succeeds not by "beating" others, but by

achieving the best possible mutual outcome.

When to Use This Skill

  • Navigating workplace relationships and conflicts
  • Building long-term business partnerships
  • Handling negotiations with repeat interactions
  • Designing reputation and trust systems
  • Managing team dynamics
  • Resolving ongoing disputes

The Strategy

```

Tit for Tat Rules:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ β”‚

β”‚ RULE 1: COOPERATE first β”‚

β”‚ Start every new relationship with trust β”‚

β”‚ β”‚

β”‚ RULE 2: MIRROR their last move β”‚

β”‚ If they cooperated β†’ Cooperate β”‚

β”‚ If they defected β†’ Defect β”‚

β”‚ β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

```

The Four Qualities

```

Why TFT Wins:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ NICE β”‚ Never defects first β”‚

β”‚ β”‚ Starts with cooperation and good faith β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ RETALIATORYβ”‚ Immediately punishes defection β”‚

β”‚ β”‚ Prevents exploitation β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ FORGIVING β”‚ Returns to cooperation after one punishment β”‚

β”‚ β”‚ Enables recovery of relationships β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ CLEAR β”‚ Pattern is easy to recognize β”‚

β”‚ β”‚ Opponents learn cooperation is rewarded β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

```

Understanding the Payoff Matrix

```

Prisoner's Dilemma Payoffs:

Partner's Choice

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ COOPERATE β”‚ DEFECT β”‚

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

Your β”‚COOPERATE β”‚ Win-Win β”‚ You Lose β”‚

Choiceβ”‚ β”‚ (3, 3) β”‚ (0, 5) β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ DEFECT β”‚ You Win β”‚ Lose-Lose β”‚

β”‚ β”‚ (5, 0) β”‚ (1, 1) β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

In single games: Defection seems better (5 > 3)

In repeated games: Mutual cooperation wins (3+3+3... > 5+1+1...)

```

Application Framework

Step 1: Assess the Interaction Type

```

Is TFT appropriate?

Repeated interaction?

β”œβ”€β”€ YES β†’ TFT applies

└── NO β†’ One-shot game (different strategy needed)

Shadow of the future?

β”œβ”€β”€ Will interact again β†’ TFT works well

└── No future interaction β†’ Less effective

Can they observe your response?

β”œβ”€β”€ YES β†’ TFT signals clearly

└── NO β†’ Communication needed

```

Step 2: Determine Your Starting Position

```

First Move Decision:

New relationship?

└── COOPERATE (be nice)

Existing relationship?

β”œβ”€β”€ Their last action was cooperative β†’ COOPERATE

└── Their last action was defection β†’ DEFECT (once)

After punishment?

└── If they cooperate again β†’ COOPERATE (forgive)

```

Step 3: Execute and Communicate

| Situation | Action | Communication |

| ---------------- | --------- | --------------------------------------- |

| New relationship | Cooperate | "I'm starting with trust" |

| They cooperated | Cooperate | Reinforce positive cycle |

| They defected | Defect | "This response is to [specific action]" |

| After punishment | Cooperate | "Let's move forward" |

Output Template

After analyzing a situation, document as:

```markdown

Tit for Tat Analysis

Situation: [Description]

Date: [Date]

Relationship Assessment

| Factor | Status |

| --------------------- | -------------------------------------------- |

| Repeated interaction? | Yes/No |

| History | [Cooperative/Mixed/Adversarial] |

| Their last move | [Cooperate/Defect] |

| Current state | [In good standing/Punishment phase/Recovery] |

Recommended Action

Action: [Cooperate/Defect]

Rationale: [Based on which TFT principle]

Communication Plan

If Cooperating:

  • [What to say/do]
  • [How to reinforce positive dynamic]

If Defecting (Retaliating):

  • [Specific response to their defection]
  • [Clear signal that cooperation will resume if they cooperate]
  • [Avoid over-punishment]

Exit Conditions

| If They... | Then I... |

| --------------------- | ---------------------------- |

| Return to cooperation | Immediately forgive |

| Continue defecting | Continue matching |

| Escalate | [Boundary for disengagement] |

```

Real-World Applications

Workplace Relationships

```

Scenario: Coworker missed deadline affecting your work

TFT Response:

Be Nice (initially):

β”œβ”€β”€ Assume competence and good faith

β”œβ”€β”€ Give benefit of doubt first time

└── Don't preemptively retaliate

Be Retaliatory (this incident):

β”œβ”€β”€ Address directly: "The report wasn't sent as agreed"

β”œβ”€β”€ Ask what happened

β”œβ”€β”€ Set clear expectation for next time

└── Don't let it slide (prevents exploitation)

Be Forgiving (after):

β”œβ”€β”€ Once addressed and they commit to improve

β”œβ”€β”€ Drop the issue completely

β”œβ”€β”€ Don't bring it up in future interactions

└── Don't hold a grudge

Be Clear:

β”œβ”€β”€ Your response should be predictable

β”œβ”€β”€ They should know: cooperate = good, defect = consequences

└── Make pattern obvious so they can adjust

```

Business Negotiations

```

Scenario: Partnership negotiation

TFT Approach:

Opening (Nice):

β”œβ”€β”€ Make first good-faith offer or concession

β”œβ”€β”€ Signal you want win-win outcome

└── Don't start with extreme position

Response to Their Move:

If they make reasonable offer:

└── Match with reasonable counter

If they lowball aggressively:

β”œβ”€β”€ Match their firmness

β”œβ”€β”€ Don't concede further

└── Show you won't be exploited

Recovery Path:

β”œβ”€β”€ Moment they move to reasonable position

β”œβ”€β”€ You move to reasonable position too

└── Signal: cooperation = path to deal

```

Personal Relationships

```

Scenario: Friend cancelled plans last minute

TFT Application:

Nice (default):

β”œβ”€β”€ Assume good reason

β”œβ”€β”€ Don't catastrophize

└── Be understanding this time

Retaliatory (if pattern emerges):

β”œβ”€β”€ Set boundary: "When plans change last minute, it affects me"

β”œβ”€β”€ Communicate clearly

β”œβ”€β”€ Reduce investment in future plans with them

Forgiving (if they adjust):

β”œβ”€β”€ When they make effort to be reliable

β”œβ”€β”€ Immediately return to full engagement

β”œβ”€β”€ Don't "echo" past cancellations

Handle Noise:

β”œβ”€β”€ Clarify intent before retaliating

β”œβ”€β”€ "When you cancelled, was something wrong?"

β”œβ”€β”€ Miscommunication shouldn't start death spiral

```

Known Weaknesses

1. Noise Problem

```

The Death Spiral:

Misunderstanding occurs:

β”œβ”€β”€ You cooperated, they perceived defection

β”œβ”€β”€ They defect in response

β”œβ”€β”€ You defect in response

β”œβ”€β”€ Alternating defections continue

└── Both lose, neither recovers

Solution: Generous Tit for Tat

β”œβ”€β”€ Occasionally forgive defection (10% random)

β”œβ”€β”€ Breaks accidental cycles

β”œβ”€β”€ Better in "noisy" environments

└── Communicate to clarify perceived defections

```

2. Credibility Problem

```

The Punishment Paradox:

After they defect:

β”œβ”€β”€ TFT says: retaliate

β”œβ”€β”€ But: retaliation is costly to you too

β”œβ”€β”€ Rational choice: forgive and return to cooperation

└── If they know this, threat isn't credible

Solution: Commit to retaliation

β”œβ”€β”€ Make punishment automatic

β”œβ”€β”€ Reputation for following through

β”œβ”€β”€ Short-term cost for long-term credibility

```

Variants

| Variant | Modification | Best For |

| -------------------- | --------------------------------- | -------------------- |

| Generous TFT | Randomly forgive some defections | Noisy environments |

| Tit for Two Tats | Only retaliate after 2 defections | Cautious approach |

| Suspicious TFT | Start with defection | Hostile environments |

| Gradual TFT | Escalating punishment | Repeat offenders |

Integration with Other Methods

| Method | Combined Use |

| ----------------------- | --------------------------- |

| Five Whys | Why did they defect? |

| Loss Aversion | Defection = loss framing |

| Trust Psychology | TFT builds/maintains trust |

| Negotiation | TFT as negotiation backbone |

| Conflict Resolution | Framework for de-escalation |

Quick Reference

```

TIT FOR TAT DECISION TREE

New interaction?

└── COOPERATE (be nice)

They just cooperated?

└── COOPERATE (reward)

They just defected?

β”œβ”€β”€ DEFECT once (retaliate)

└── Then if they cooperate β†’ COOPERATE (forgive)

Unclear if defection was intentional?

β”œβ”€β”€ COMMUNICATE first

└── "Was that intentional?" before retaliating

Stuck in defection cycle?

β”œβ”€β”€ Unilaterally cooperate once

β”œβ”€β”€ See if they break cycle

└── If not, reassess relationship

```

Questions for Situational Analysis

When applying TFT, consider:

  1. What's your primary goal?

- Repair relationship (break death spiral)

- Build new partnership

- Navigate competitive environment

  1. How noisy is your environment?

- High noise β†’ Use Generous TFT

- Low noise β†’ Standard TFT works

  1. Individual or group?

- 1:1 β†’ TFT works well

- Group β†’ More complex dynamics

Resources

  • [The Evolution of Cooperation - Robert Axelrod](https://www.goodreads.com/book/show/366821.The_Evolution_of_Cooperation)
  • [Veritasium: The Prisoner's Dilemma](https://www.youtube.com/watch?v=mScpHTIi-kM)
  • [Game Theory 101](https://www.gametheory101.com/)
  • [Behavioral Game Theory - Colin Camerer](https://www.goodreads.com/book/show/469689.Behavioral_Game_Theory)

More from this repository10

🎯
five-whys🎯Skill

Systematically uncovers root causes of problems through iterative questioning, revealing underlying issues beyond surface-level symptoms.

🎯
social-proof-psychology🎯Skill

Optimizes user trust and conversion by strategically displaying social validation through testimonials, user stats, and expert endorsements.

🎯
cognitive-fluency-psychology🎯Skill

Enhances user comprehension and engagement by applying cognitive fluency principles to simplify information processing across content and interfaces.

🎯
hooked-model🎯Skill

Designs habit-forming products by mapping user triggers, actions, rewards, and investments to create engaging, addictive product experiences.

🎯
cognitive-biases🎯Skill

Applies cognitive bias insights to optimize product design, user experiences, and decision-making strategies by leveraging psychological principles.

🎯
typescript-satisfies-operator🎯Skill

Validates TypeScript object types while preserving precise literal types, preventing type widening and catching type-related errors early.

🎯
typescript-best-practices🎯Skill

Enforces TypeScript best practices and coding standards through comprehensive linting and configuration rules for consistent, high-quality code.

🎯
status-quo-bias🎯Skill

Helps design product changes and migrations by understanding users' psychological resistance to change and creating strategies to overcome status quo bias.

🎯
kanban🎯Skill

Visualize and optimize team workflow by creating Kanban boards that track tasks, limit work-in-progress, and improve delivery efficiency.

🎯
theme-epic-story🎯Skill

I apologize, but I cannot generate a description without seeing the actual content or context of the "theme-epic-story" skill from the repository. Could you provide more details about what this spe...