# Drawstep AI pack (Magic) — in parts > The complete Magic card-logic reference for AI assistants, in 15 parts of at most 95 KB each, so an assistant whose fetches are truncated still reads every part whole. Read the core first; then only the parts the card needs. Also: the map of every document https://drawstep.xyz/llms.txt · one page per primitive `https://drawstep.xyz/wiki/mtg//.md` · the whole pack in one document https://drawstep.xyz/wiki/drawstep-mtg-ai-pack.md · the card format as JSON Schema https://drawstep.xyz/card.schema.json. ## Parts 1. [Core](https://drawstep.xyz/wiki/mtg/pack/core.md) — 76 KB. Read first: your role and the rules, the output contract, the self-check, card anatomy, how the engine reads a card, the translating method, the ability kinds, every vocabulary name with its page URL, common mistakes. Sections: 1. Your role and the rules · 2. Output contract · 3. Self-check before you answer · If a link will not open · Card anatomy — top-level fields · How the engine reads a card · Translating a card step by step · Abilities (`AbilityDef`, discriminator `kind`) · Vocabulary index · Common mistakes. 2. [Relationships & references](https://drawstep.xyz/wiki/mtg/pack/references.md) — 75 KB. How one part of a card refers to another, with validated cards; every target mode, player selector, filter relation, duration, thisWay action, counter and zone explained. Sections: Relationships & references. 3. [Filters & targets](https://drawstep.xyz/wiki/mtg/pack/targets.md) — 52 KB. TargetDef, PlayerTargetDef and every ObjectFilter field; the selection algebra. Sections: Targets & filters. 4. [Effects (1 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-1.md) — 87 KB. Every one-shot effect with all its fields. Sections: Effects (`EffectDef`, discriminator `effect`). 5. [Effects (2 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-2.md) — 93 KB. Every one-shot effect with all its fields. 6. [Effects (3 of 3)](https://drawstep.xyz/wiki/mtg/pack/effects-3.md) — 28 KB. Every one-shot effect with all its fields. 7. [Static effects & replacements (1 of 2)](https://drawstep.xyz/wiki/mtg/pack/statics-replacements-1.md) — 88 KB. Every continuous effect (with its layer) and every replacement effect, with all fields. Sections: Static effects (`StaticEffectDef`, discriminator `type`) · Replacement effects (`ReplacementDef`, discriminator `replaces`). 8. [Static effects & replacements (2 of 2)](https://drawstep.xyz/wiki/mtg/pack/statics-replacements-2.md) — 15 KB. Every continuous effect (with its layer) and every replacement effect, with all fields. 9. [Triggers & conditions](https://drawstep.xyz/wiki/mtg/pack/triggers-conditions.md) — 52 KB. TriggerDef, every trigger event with one line each, and every condition. Sections: Triggers (`TriggerDef`) · Conditions (`ConditionDef`, discriminator `kind`). 10. [Values & costs](https://drawstep.xyz/wiki/mtg/pack/values-costs.md) — 51 KB. Every value kind (numbers) and every cost part. Sections: Values (`ValueDef`, discriminator `kind`; a plain integer is also a ValueDef) · Costs (`CostDef`). 11. [Keyword abilities](https://drawstep.xyz/wiki/mtg/pack/keywords.md) — 31 KB. Every parametrised keyword ability and the simple keyword strings. Sections: Keyword abilities (`KeywordAbilityDef`, discriminator `keyword`). 12. [Layouts, zones, tokens, appearance](https://drawstep.xyz/wiki/mtg/pack/layouts-tokens.md) — 24 KB. Layouts and multi-face cards, zones, tokens and token cards, the display-only appearance block. Sections: Layouts and other definitions · Zones · Tokens and token cards · How a card is drawn (`appearance`, display only). 13. [Custom mechanics](https://drawstep.xyz/wiki/mtg/pack/custom-mechanics.md) — 78 KB. The primitives people miss with the printed wording each answers, registered natives, and the honesty ladder for a clause nothing expresses. Sections: Custom mechanics and the honesty ladder. 14. [Cookbook](https://drawstep.xyz/wiki/mtg/pack/cookbook.md) — 38 KB. Complete, engine-validated cards for the hard custom-card patterns. Sections: Cookbook: complex custom cards. 15. [Worked examples](https://drawstep.xyz/wiki/mtg/pack/examples.md) — 8 KB. Complete stock cards: Oracle text, the engine's reading, the JSON. Sections: Worked examples (Oracle text → JSON).