oracle-parser
OfficialAuthoritative Oracle parser reference & guide
System Documentation
What problem does it solve?
Converts MTG Oracle text into a stable, typed representation that the engine can execute, ensuring consistent rule interpretation and easier maintenance.
For developers, this document serves as the authoritative reference for nom-based parsing patterns, priority rules, AST type systems, and contribution checklists that govern how Oracle text is transformed into actionable game state changes.
Core Features & Use Cases
- Centralized reference for nom-based parsing patterns, AST types, and helper modules.
- Detailed guidance on parsing priorities, subject handling, and continuation logic to maintain a single source of truth.
- Use Case: when introducing a new Oracle text pattern or extending the parser, contributors align with the canonical approach documented here.
Quick Start
Consult this reference before implementing new Oracle patterns to ensure consistency with the Nom-based parsing architecture.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: oracle-parser Download link: https://github.com/phase-rs/phase/archive/main.zip#oracle-parser Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.