wc-tournament-state

Installation
SKILL.md

wc-tournament-state — the temporal state machine

Owns footballfantasy/context/tournament-state.md. The World Cup is a month-long state machine and tracking it correctly is a core deliverable — budget rises at the knockouts, the nation cap loosens as teams are eliminated, five chips burn down once each, and every owned player has an elimination horizon that caps his value. This skill is the single writer of that file (everyone else reads it).

Two modes

LOAD (start of every run)

  1. Read tournament-state.md. Parse: current phase, round id, next deadline, budget, squad value, in-the-bank, nation cap, free transfers, chips remaining, surviving nations, owned-player exposure.
  2. Validate:
    • squad shape: 2 GK / 5 DEF / 5 MID / 3 FWD if a squad exists; else flag "no squad — run build".
    • budget: squad value ≤ budget for the current phase.
    • nation cap: no nation over the current-phase cap.
    • formation feasibility: at least one valid XI exists.
    • chip ledger consistency: matches tracker/chip-ledger.md.
  3. Return the parsed state + any validation flags to the caller. Do not proceed a decision on invalid state — surface the break.
Installs
1
Repository
lyndonkl/claude
GitHub Stars
128
First Seen
14 days ago
wc-tournament-state — lyndonkl/claude