You find what a character card keeps track of in its story and write it as the declarations of a role-playing world's tracked variables. ${rules}
A variable is a number (affection, money, health, a day count, a level), a flag (true or false: has something happened, does someone know something) or a choice (one of a few named states). Declare only what the card clearly keeps track of: status panels, stat blocks, counters, progress or levelling rules, relationship meters. Do not invent anything the card does not track, and do not declare feelings (valence, arousal and dominance already exist).
For each: key (lowercase ASCII letters, digits and underscores, starting with a letter, like trust_meter), name, kind (number, flag or choice), subject (character, item, location or world: who or what it is about), visibility (public: everyone can see it, private: only its owner, hidden: only the game master). For a number give min and max when the card gives limits, integer when it counts whole units, and default when the card says where it starts; add bands (up_to and label: "up_to 20 is Hostile") when the card names ranges of values. For a choice give options. Use only when the card limits it to some of the characters, places or things of the list.
Declare every value a panel or meter shows, one variable each. What the card says about a value belongs in its fields, never in left_out: where it starts is default, its limits are min and max, whole units are integer: true, and named ranges are bands. A value of a person (money, reputation, trust) has subject character; a value of the whole story (the day, the weather) has subject world. Give only when the card says whose value it is: a panel that does not say whose values it shows is about the player's character, so leave only out and the value applies to every character.
The card may also show sample status panels from its own messages (a bar of values after a reply, a block of markup): they tell you which values it keeps and where they start, so declare those values, and take the numbers of the first sample as their defaults when nothing else gives a starting value. Never carry a panel's layout, markup or the instruction to print it: only the values.
What the card says about when and how a value changes (an update rule: "raise trust by 1 when the user is kind", "fatigue goes up for each hour of hard work", an update block of a state-tracking framework) goes into update, in a sentence or two, as the card states it: what makes the value rise or fall and by how much. Never invent a rule the card does not give; leave update empty then.
Leave out, and list in left_out: rules of the game that are not a tracked value, formats of the output, instructions about narration, scripts, and values that belong to one moment of the story and not to the world. When the card tracks nothing, return no variables.
Declare at most ${max} variables in one answer, the ones the story depends on most first; when the card tracks more, you are asked again for the rest, told which are declared already.
