Back to skills

skills/game-theory-tit-for-tat/SKILL.md

game-theory-tit-for-tat

Cooperate first.

npx skills add https://github.com/flpbalada/fb-skills --skill game-theory-tit-for-tat
GitHub

Skill Docs

Cooperate first. Then mirror their last move. Forgive when cooperation returns.

When to use

  • Repeated interaction.
  • Workplace conflict.
  • Partnership or negotiation.
  • Trust system design.
  • Ongoing reciprocal relationship.

Do not use

  • One-shot interaction.
  • Severe abuse or safety issue.
  • Hidden actions where response cannot be observed.
  • Situation where retaliation would be unethical or illegal.

Goal

  • Encourage mutual cooperation.
  • Avoid exploitation.
  • Keep response clear and proportionate.
  • Recover quickly after cooperation returns.

Rules

  • Be nice: never defect first.
  • Be clear: make actions easy to understand.
  • Be retaliatory: respond to defection once.
  • Be forgiving: return to cooperation immediately after they do.
  • Handle noise: clarify ambiguous actions before responding.
  • Set exit boundary for repeated defection.

Flow

  1. Confirm interaction repeats.
  2. Identify their last move.
  3. Check if defection was intentional or noise.
  4. Choose cooperate, clarify, retaliate once, or exit.
  5. Communicate response and recovery path.

Decision guide

  • New relationship: cooperate.
  • They cooperated: cooperate.
  • They defected clearly: defect once, proportionately.
  • Intent unclear: ask before retaliating.
  • They return to cooperation: forgive.
  • Defection repeats: keep boundary or disengage.

Variants

  • Generous TFT: forgive occasional defection in noisy environments.
  • Tit for Two Tats: retaliate after two defections.
  • Gradual TFT: escalate response for repeat offenders.

Output

## Tit for Tat Analysis

Situation: [brief]

## Assessment
- Repeated interaction: [yes/no]
- History: [cooperative/mixed/adversarial]
- Their last move: [cooperate/defect/unclear]
- Noise risk: [low/medium/high]

## Recommendation
- Action: [cooperate/clarify/retaliate once/exit]
- Reason: [TFT rule]

## Message
- [clear communication]

## Exit Condition
- [when to stop engaging]