Wc archetype mutation

From lyndonkl/claude · View interactive version

Wc archetype mutation is an AI agent skill from the GitHub repository lyndonkl/claude. The mutation operator for the FIFA World Cup Fantasy evolution engine. Applies small, bounded, feasibility-preserving perturbations to a recombined offspring squad/plan — swap one differential for an adjacent-price alternative, reorder the bench by kickoff, shift one captain-ladder step, try one fix

How to use this skill

Skill file

wc-archetype-mutation — bounded exploration

The mutation operator from the genetic loop (evolution-protocol.md). After recombination has fused the best blocks, mutation explores the neighbourhood of each offspring — small perturbations that might find a slightly better local arrangement or, when the diversity governor raises the rate, push an offspring away from a collapsed template. It is the explore side of the explore/exploit dial.

Inputs

Mutation moves (pick per the rate; each must keep feasibility)

| Move | What it does | When apt |

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

| Differential swap | replace one BB4 pick with an adjacent-price, similar-EV alternative of lower ownership | exploring the rank axis; diversity-injection toward differential |

| Enabler nudge | swap a BB5 enabler for an equal-price guaranteed starter with a marginally better fixture | freeing optionality without touching value blocks |

| Captain-ladder shift | reorder one step of MB2 (promote a different day-2 captain candidate) | matchday plans; exploring captaincy variance |

| Bench reorder | re-rank MB3 bench by a refined kickoff/likely-points read | improving manual-sub optionality |

| Fixture-swing transfer | for a transfer plan, try one alternative in→out pair targeting a steeper fixture delta | exploring A4-style edges |

| Formation flex | shift the XI between two valid formations (e.g. 3-4-3 ↔ 3-5-2) the same 15 supports | exploring attack/defence balance |

Workflow

- [ ] 1. Read offspring + mutation_rate + constraints
- [ ] 2. Pick `rate` moves, biased by any diversity-injection target passed in (e.g. "push toward differential")
- [ ] 3. Apply each move; re-check feasibility (budget, nation cap, formation, 15-man shape)
- [ ] 4. Reject any move that breaks feasibility or destroys a building block; retry an alternative move
- [ ] 5. Emit the mutated offspring + a mutation log (what changed, why)

Bounds (mutation is small by design)

Output

mutated_offspring: <candidate>
mutation_log:
  - move: differential_swap
    change: "BB4: out [player A, 12% owned] → in [player B, 4% owned, similar xEV]"
    rationale: "diversity injection toward differential; raises ceiling variance"
  feasibility_ok: true

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.