game-theory-tit-for-tat
13
总安装量
2
周安装量
#24580
全站排名
安装命令
npx skills add https://github.com/flpbalada/my-opencode-config --skill game-theory-tit-for-tat
Agent 安装分布
opencode
2
claude-code
2
amp
1
kimi-cli
1
codex
1
Skill 文档
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:
## 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:
-
What’s your primary goal?
- Repair relationship (break death spiral)
- Build new partnership
- Navigate competitive environment
-
How noisy is your environment?
- High noise â Use Generous TFT
- Low noise â Standard TFT works
-
Individual or group?
- 1:1 â TFT works well
- Group â More complex dynamics