Logo di S4h Game Theory Prisoners Dilemma

S4h Game Theory Prisoners Dilemma

Organizzazione
human-avatar
s4h-game-theory-prisoners-dilemma

Analizza i problemi di cooperazione in cui la razionalità individuale porta all’irrazionalità collettiva. Si attiva con: «problema di cooperazione», «dilemma del prigioniero», «tutti scelgono di non cooperare anche se cooperare sarebbe meglio», «corsa al ribasso», «dovrei cooperare o tirarmi indietro?», «perché nessuno vuole cooperare?», «fallimento dell’azione collettiva», «perché finiamo tutti per stare peggio?».

Add to TypingMind

Panoramica

Pubblicato dahuman-avatar
Repositoryskills-for-humanity
Nome della skills4h-game-theory-prisoners-dilemma
Stelle
234
Fork
24
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da human-avatar su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA S4h Game Theory Prisoners Dilemma in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/human-avatar/skills-for-humanity/tree/main/skills/s4h-game-theory-prisoners-dilemma
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/human-avatar/skills-for-humanity.git /tmp/skills-for-humanity
mkdir -p .claude/skills
cp -r /tmp/skills-for-humanity/skills/s4h-game-theory-prisoners-dilemma .claude/skills/s4h-game-theory-prisoners-dilemma
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva S4h Game Theory Prisoners Dilemma in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente S4h Game Theory Prisoners Dilemma non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi S4h Game Theory Prisoners Dilemma non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Game Theory: Prisoner's Dilemma

The prisoner's dilemma is the central problem of cooperation. Its structure: each player has an individual incentive to defect regardless of what the other does, so both defect — and both end up worse than if they had cooperated. Individual rationality produces collective irrationality.

This structure appears everywhere: countries competing on subsidies both nations would be better without, companies in a price war that erodes margins for everyone, colleagues who each underinvest in shared infrastructure, advertisers who would all benefit if no one ran ads but each is tempted to run them. Recognising the structure is the first move; it tells you why the situation is hard and what the real leverage points are.

Robert Axelrod's computer tournaments (1984) produced one of the most important empirical results in social science: in repeated prisoners' dilemmas, Tit for Tat — cooperate first, then mirror your opponent's previous move — consistently outperformed every more complex strategy. Its winning properties: nice (cooperates first), retaliatory (immediately punishes defection), forgiving (returns to cooperation as soon as the opponent does), and clear (easy to understand and predict). The lesson: cooperation is achievable without altruism, if the game is repeated and players are patient.


Your Process

Step 1: Structure verification Confirm the three conditions that define a prisoner's dilemma:

  • (a) Mutual cooperation dominates mutual defection: if both cooperate, both do better than if both defect
  • (b) Defection is individually rational: each player does better defecting regardless of what the other does (defection is a dominant strategy)
  • (c) The temptation to defect is real: there is a genuine payoff advantage to defecting on a cooperating partner

If all three hold: this is a genuine prisoner's dilemma. If (a) fails, cooperation isn't actually better — the analysis changes. If (b) fails, there's no defection temptation — cooperation is already individually rational.

Framing check: Confirm the specific cooperation problem before continuing. State the players involved, what constitutes cooperation vs. defection for each, and why individual incentives diverge from collective interest in one sentence, then use AskUserQuestion:

  • Question: "I'm reading this as: [your one-sentence framing of the specific situation — who the players are, what cooperation and defection look like, and the collective action tension]. Is that right?"
  • Header: "Framing"
  • Options:
    • Yes — proceed — framing is correct
    • Adjust — one element is off; user will correct it before you continue
    • Reframe — different situation than read; incorporate the correction before proceeding

Step 2: One-shot vs. repeated Is this a single interaction or an ongoing relationship? This is the most important structural question. In a one-shot game, defection is the rational dominant strategy and there is no mechanism for cooperation. In a repeated game, the future creates incentives for today's cooperation.

Step 3: Shadow of the future In repeated games, assess how much each player values future interactions. The discount factor (δ) captures how much tomorrow's payoff is worth today — high δ means future interactions matter a great deal; low δ means players are impatient or uncertain the relationship will continue. Cooperation is sustainable in repeated play if δ is above a threshold that depends on the payoff structure. Practically: ask how much each player needs the relationship to continue, how visible their defection will be, and how quickly punishment can be applied.

Step 4: Trigger conditions In a cooperative equilibrium, cooperation is sustained by the threat of punishment. What action would constitute defection? How quickly would it be detected? How severe is the punishment, and is it credible? A cooperation equilibrium is only stable if the punishment threat is believable and proportionate.

Step 5: Structural prescriptions If cooperation is failing or fragile, what changes to the structure could make cooperation individually rational?

  • Repeat the game: turn a one-shot interaction into an ongoing relationship
  • Increase transparency: make defection immediately visible so punishment can follow quickly
  • Change the payoffs: increase the value of mutual cooperation or add penalties for defection (bonds, enforcement, regulation)
  • Reduce the temptation: lower the short-run gain from defection
  • Build shared identity: reframe the game so defection feels like a cost to a shared project, not just a strategic choice
  • Third-party enforcement: external authority makes commitments binding

Human Check-in

Before proceeding, use the AskUserQuestion tool. State your interpretation of the situation in 1–2 sentences — what is being analyzed and what the core question is — then ask:

  • Question: "My read: [your 1–2 sentence interpretation]. How do you want to proceed?"
  • Header: "Scope"
  • Options:
    • Full analysis — Complete all steps, reasoning shown throughout
    • Key findings only — Bottom-line output, skip step-by-step detail
    • Specific focus — Zoom in on one aspect of this analysis
    • Reframe — The read is off; correct it and the analysis will follow the corrected framing

Proceed based on their selection. If the user reframes, incorporate the correction before running any analysis.


Output Format

Prisoner's Dilemma Analysis

Structure Verification

  • Mutual cooperation better than mutual defection: [Yes / No / Partial]
  • Defection individually rational (dominant strategy): [Yes / No]
  • Genuine temptation to defect: [Yes / No]
  • Verdict: [Confirmed prisoner's dilemma / Modified structure / Not a PD — see alternative framing]

Payoff Map [The four key outcomes: mutual cooperation / you cooperate, they defect / you defect, they cooperate / mutual defection — with approximate payoffs or ordinal rankings]

One-Shot vs. Repeated Assessment [Is this a single interaction or an ongoing relationship? How many rounds are expected? Does either player expect to exit soon?]

Shadow of the Future Analysis [How much do players value continued interaction? What is the discount factor — high (cooperation sustainable) or low (cooperation fragile)? What would cause either player to reduce their valuation of the relationship?]

Trigger Conditions [What constitutes defection? How quickly detected? Is punishment credible and proportionate?]

Structural Prescriptions [Specific recommendations for changing the game structure to make cooperation individually rational — ranked by feasibility and impact]


Notes

The prisoner's dilemma is the one-shot cooperation problem. For formal analysis of how cooperation can be sustained in repeated interactions, including specific strategy recommendations, use /s4h-game-theory-iterated.

If the structure is right but the rules are wrong — you want to change the game itself — use /s4h-game-theory-mechanism-design, which designs payoffs and rules specifically to align individual and collective incentives.

For analysis of the stable outcome of the one-shot version (and confirmation that defection is indeed the Nash equilibrium), use /s4h-game-theory-equilibrium.

Pairs with: /s4h-social-incentive-analysis (the social and power dynamics around the same incentive problem), /s4h-strategy-alliance (the strategic logic of forming cooperative relationships).


What's Next

After delivering this output, use AskUserQuestion to offer the next move:

  • Question: "Dilemma analysed. What's next?"
  • Header: "Next"
  • Options:
    • /s4h-game-theory-mechanism-design — Design away from mutual defection
    • /s4h-social-incentive-analysis — Align incentives to encourage cooperation
    • /s4h-game-theory-iterated — Test whether cooperation emerges with repeated interaction
    • Done — Wrap up and synthesise what we have so far

Domande frequenti

Cosa fa la skill IA S4h Game Theory Prisoners Dilemma?

Analizza i problemi di cooperazione in cui la razionalità individuale porta all’irrazionalità collettiva. Si attiva con: «problema di cooperazione», «dilemma del prigioniero», «tutti scelgono di non cooperare anche se cooperare sarebbe meglio», «corsa al ribasso», «dovrei cooperare o tirarmi indietro?», «perché nessuno vuole cooperare?», «fallimento dell’azione collettiva», «perché finiamo tutti per stare peggio?».

Perché usare S4h Game Theory Prisoners Dilemma su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. S4h Game Theory Prisoners Dilemma è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo S4h Game Theory Prisoners Dilemma in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/human-avatar/skills-for-humanity/tree/main/skills/s4h-game-theory-prisoners-dilemma. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare S4h Game Theory Prisoners Dilemma?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con S4h Game Theory Prisoners Dilemma?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con S4h Game Theory Prisoners Dilemma: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA S4h Game Theory Prisoners Dilemma è gratuita?

Sì. È pubblicata su GitHub da human-avatar con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇