Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Prisoners Dilemma

ASecurity

Recognize situations where individual rational choices lead to collectively worse outcomes - core model for cooperation vs. defection dynamics

22 stars
0 votes
0 copies
0 views
Added 9/20/2026
businessrustgo

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add lev-os/agents --skill prisoners-dilemma --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prisoners Dilemma?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Prisoners Dilemma
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lev-os-prisoners-dilemma/badge)](https://www.skillsdirectory.com/skills/lev-os-prisoners-dilemma)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: prisoners-dilemma
description: Recognize situations where individual rational choices lead to collectively worse outcomes - core model for cooperation vs. defection dynamics
---

# Prisoner's Dilemma

## Overview

The Prisoner's Dilemma is the foundational game theory model explaining why rational self-interest can produce collectively irrational outcomes. Two prisoners, interrogated separately, each face a choice: cooperate (stay silent) or defect (confess). If both cooperate, light sentences for both. If one defects while the other cooperates, the defector walks free while the cooperator gets maximum sentence. If both defect, moderate sentences for both. The tragic equilibrium: both defect, despite mutual cooperation being better for everyone.

This structure appears everywhere in business: price wars where both competitors lose, arms races in features, tragedy of commons in shared resources, and trust breakdowns in partnerships. Understanding the dilemma reveals when competition is self-defeating and what mechanisms enable cooperation.

## When to Use

- Pricing strategy: deciding whether to cut prices when competitors might retaliate
- Market competition: recognizing when price/feature wars destroy industry profitability
- Partnerships and joint ventures: structuring agreements that prevent defection
- Resource sharing: commons problems where individual exploitation depletes shared assets
- Team dynamics: situations where individual credit-seeking undermines collective outcomes
- Contract negotiations: anticipating where parties might renege on commitments

## The Process

### Step 1: Identify the Dilemma Structure

Confirm the situation has Prisoner's Dilemma characteristics: two or more actors, cooperation and defection options, and the specific payoff ranking.

**Core payoff structure (ranked best to worst):**
1. Defect while others cooperate (temptation payoff - best individual outcome)
2. Mutual cooperation (reward payoff - best collective outcome)
3. Mutual defection (punishment payoff - stable but suboptimal)
4. Cooperate while others defect (sucker payoff - worst individual outcome)

**Confirming the dilemma:**
- Temptation > Reward > Punishment > Sucker's payoff
- Defection is dominant strategy for each player in isolation
- Mutual defection is Nash Equilibrium but Pareto inferior to mutual cooperation

### Step 2: Assess Whether Game is One-Shot or Repeated

The fundamental dynamics change between single interaction and ongoing relationship.

**One-shot games:**
- Defection is rational (no future punishment possible)
- Cooperation requires external enforcement (contracts, reputation)
- Common in: one-time transactions, anonymous interactions

**Repeated games (Iterated Prisoner's Dilemma):**
- Future retaliation changes calculus
- Cooperation can emerge without external enforcement
- Shadow of the future enables trust

### Step 3: Evaluate Cooperation-Enabling Mechanisms

For repeated games, determine what strategies and structures enable cooperative outcomes.

**Successful strategies (from Axelrod's tournaments):**
- **Tit-for-Tat:** Start cooperating, then mirror opponent's last move. Simple, forgiving, retaliatory.
- **Grim Trigger:** Cooperate until first defection, then defect forever. Harsh but stable.
- **Generous Tit-for-Tat:** Occasional forgiveness prevents death spirals from mistakes.

**Structural enablers:**
- Transparency (observe defection quickly)
- Frequent interaction (more chances to punish/reward)
- Long time horizons (future matters enough to discipline present)
- Communication (coordinate on mutual cooperation)

### Step 4: Design for Cooperation or Protect Against Defection

Either change the game structure to enable cooperation or protect yourself from exploitation.

**Changing the game:**
- Create binding commitments (contracts with penalties)
- Build reputation stakes (defection damages brand)
- Establish communication channels (explicit coordination)
- Increase transparency (actions visible to all parties)

**Protection strategies:**
- Limit downside from partner defection (diversification)
- Build in verification mechanisms (audits, escrow)
- Structure phased commitments (small steps, trust-building)

## Example Application

**Situation:** Two dominant airlines on a route, both considering fare cuts.

**Application:**
- **Cooperate:** Maintain $400 fares, both profit $100M/year
- **Defect:** Cut to $300 fares
- **If both defect:** Both profit only $40M/year (price war)
- **If one defects:** Defector gains $130M, cooperator drops to $30M

**Dilemma confirmed:** Defection dominates for each airline individually, but mutual defection destroys $120M of industry profit.

**Solution applied:** Airlines recognize iterated game. Establish price leadership patterns where one signals changes, other follows. Implicit coordination without illegal collusion.

## Example Application 2

**Situation:** Two co-founders splitting equity and responsibilities, tempted to free-ride.

**Application:**
- **Cooperate:** Both work 80-hour weeks building the company
- **Defect:** Reduce effort while partner overworks
- **Mutual defection:** Company fails, both lose

**Dilemma structure:** Individual temptation to coast while partner carries load. But repeated game with high stakes.

**Solution applied:**
- Weekly check-ins create transparency (defection visible quickly)
- Vesting schedules align long-term incentives
- Clear role definition enables accountability
- Equity tied to milestones prevents free-riding

## Anti-Patterns

- Treating one-shot situations as repeated games (hoping for cooperation that won't come)
- Over-punishing (Grim Trigger when Tit-for-Tat would preserve relationship)
- Under-punishing (persistent cooperation despite repeated exploitation)
- Misidentifying the game (not all conflicts are Prisoner's Dilemmas)
- Ignoring asymmetric stakes (payoff structures differ between players)
- Expecting cooperation without transparency (hidden defection unpunished)

## Related

- nash-equilibrium (prisoner's dilemma equilibrium is mutual defection)
- tit-for-tat (optimal strategy for iterated dilemmas)
- game-theory (broader strategic interaction framework)
- incentives (understanding what drives defection vs. cooperation)
- tragedy-of-commons (multi-player version of the dilemma)

Attribution

lev-oslev-os
View sourceMore from lev-os →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Solution Architect

Designs system architecture, component specifications, and technical integration strategy. Use when: designing solutions, system architecture, technology stack, or integration approaches.

192 votes

Akorchak:Venture Assessment

Generate a comprehensive VC investment assessment report for a company

72 votes

Stock Analysis

Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.

6511 votes

Just Fucking Cancel

Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Out...

6511 votes

Telegram Compose

Compose rich, readable Telegram messages using HTML formatting via direct Telegram API. Use when: (1) Sending any Telegram message beyond a simple one-line reply, (2) Creating structured messages with sections, lists, or status updates, (3) Need formatting unavailable via Clawdbot's Markdown conversion (underline, spoilers, expandable blockquotes, user mentions by ID), (4) Sending alerts, reports, summaries, or notifications to Telegram, (5) Want professional, scannable message formatting wit...

6511 votes
View all in business →