State Machines > Skills Developer Adam Grant rebuilt his open-source Flux Player tool as Flux v3, replacing large SKILL.md instruction files for coding agents such as Claude Code, Cursor and Antigravity with a deterministic state machine defined in a cartridge.yaml or cartridge.py file. Flux v3 persists sessions in .flux/state.json, emits just-in-time prompts for only the active state, pins a persona and model tier (opus, sonnet or haiku) per state, and gates transitions on shell commands like pytest, file and regex assertions, and JSON/YAML schema checks, with failures routed to .SELF, .BACK or an upstream recovery state after max_retries. Grant says the approach addresses attention decay, state spoofing and improvised recovery that he observed when 300-line skills degraded by Turn 12 of a multi-step workflow. If you build complex multi-step workflows for coding agents Claude Code, Cursor, Antigravity , you have probably run into the same wall I kept hitting: giant SKILL.md files decay. When you front-load 300 lines of instructions, edge cases, and formatting rules into a skill at Turn 1, it looks great on paper. By Turn 12, after tool outputs, file reads, and subagent handoffs have filled the context window, the LLM starts skimming. It rushes past the setup, forgets the pacing rules, skips a validation step, or invents its own shortcut. The fix isn’t a longer skill. It’s replacing the giant skill with a thin wrapper, or no skill at all, and putting a deterministic state machine in charge. That is what I rebuilt Flux Player https://github.com/adamjgrant/fluxplayer original write-up https://adamgrant.micro.blog/2026/11/25/flux-player-v-the-missing.html to do. The Problem With Giant Skills A traditional skill is a static wall of text . It dumps every phase of a workflow research, planning, implementation, review, QA, packaging into the model’s lap at once and hopes the model stays disciplined across 20+ turns. Three things break reliably: 1. Attention Decay: Rules for Step 6 get drowned out by noise from Steps 1 to 4. 2. State Spoofing and Skipping: Nothing mechanically stops an agent from jumping straight to “done” when a check hasn’t actually passed. 3. No Deterministic Recovery: When an output fails to pass muster, you don’t get a predetermined rollback and remediation prompt. You get whatever improvisation the LLM feels like trying next. Thin Skill + Flux Cartridge In Flux v3, your skill shrinks to a few lines: Run flux start . Follow ONLY the active state’s instructions. Advance via flux step