phase-rs/phase

A rules engine and game client — Rust + WASM + React

259Stars on the repository
38Mods indexed here, across every type
2d agoLast push, which is what freshness is scored on
Apache-2.0Licence, which decides whether bodies are shown

phase-rs/phase

Skill Claude CodeCodex

Use when adding a new deck-aware AI feature (DeckFeatures axis) and its companion policies (TacticalPolicy + optional MulliganPolicy) to phase-ai. Codifies the structural-detection pattern, AST-type locations, parts-based predicate convention, registry wiring sites, and recurring review traps so a new feature ships in…

259 2d ago A 81 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when modifying the card data pipeline — adding new fields to card exports, changing Oracle parser output shape, updating card database loading, modifying the coverage report, adding synthesis functions, or debugging why a card's data looks wrong at runtime.

259 2d ago A 53 tokens original Apache-2.0

add-engine-effect

03

phase-rs/phase

Skill Claude CodeCodex

Use when adding a new effect, mechanic, or parser capability to the engine. Covers the full lifecycle from types → parser → resolver → targeting → frontend → AI → tests.

259 2d ago A 39 tokens original Apache-2.0

add-engine-variant

04

phase-rs/phase

Skill Claude CodeCodex

Runnable checklist gate for any proposed engine enum variant addition. Routes the proposal through the parameterization filter, the categorical-boundary check, and the existence verification before extension is permitted. Invoke this skill BEFORE proposing or implementing any new variant on QuantityRef, QuantityExpr…

259 2d ago A 96 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when adding or modifying frontend UI components — interactive overlays for WaitingFor states, game board elements, card choice modals, animation effects, or any React component that interfaces with the engine via GameAction dispatch.

259 2d ago A 47 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when adding any effect or ability that requires player input mid-resolution — choices, selections, modal decisions, or any WaitingFor/GameAction round-trip. Covers the continuation pattern, engine handler wiring, AI legal actions, multiplayer routing, and frontend UI.

259 2d ago A 55 tokens original Apache-2.0

add-keyword

07

phase-rs/phase

Skill Claude CodeCodex

Use when adding or modifying keyword abilities — evergreen keywords (flying, trample), parameterized keywords (ward {2}, kicker {R}), protection variants, or any keyword that needs runtime behavior wired into combat, targeting, damage, or triggers.

259 2d ago A 54 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when adding or modifying replacement effects — ETB-tapped, shock lands, damage prevention, "as enters" choices, or any event-modifying ability. Covers ReplacementDefinition wiring, the pipeline flow, post-replacement effects, and interactive pre-zone-change choices.

259 2d ago A 58 tokens original Apache-2.0

add-static-ability

09

phase-rs/phase

Skill Claude CodeCodex

Use when adding or modifying static abilities, continuous effects, or layer system modifications — type-changing effects, power/toughness modification, keyword granting, color changes, CDAs, or any "as long as" / "enchanted creature" / "creatures you control" ability.

259 2d ago A 62 tokens original Apache-2.0

add-trigger

10

phase-rs/phase

Skill Claude CodeCodex

Use when adding or modifying triggered abilities — ETB, dies, attacks, damage dealt, spell cast, phase-based, or any "When/Whenever/At the beginning of" ability. Covers TriggerDefinition, TriggerMode, the matcher registry, APNAP ordering, targeting, intervening-if, constraints, and parser wiring.

259 2d ago A 68 tokens original Apache-2.0

ai-duel

11

phase-rs/phase

Skill Claude CodeCodex

Use when running AI-vs-AI duel simulations, validating AI matchup quality, checking combat or spellcasting regressions, tuning ai-duel CLI options, or interpreting batch simulation results.

259 2d ago A 41 tokens original Apache-2.0

audit-card-parsing

12

phase-rs/phase

Skill Claude CodeCodex

Semantic audit of card-data.json — compare parsed JSON structures against Oracle text to find misparses in cards the coverage system marks as "supported." Supports --after for parallel agent runs and appends to a shared report.

259 2d ago A 49 tokens original Apache-2.0

batch-mechanics

13

phase-rs/phase

Skill Claude CodeCodex

Use when implementing multiple unimplemented mechanics in batch. Creates an agent team that groups items by relevance, plans each group with review loops, then executes sequentially with post-implementation verification. Append the list of mechanics to address after invoking.

259 2d ago A 51 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when classifying a Phase bug report against a specific card's engine-authoritative parsedetails. The primary job is validating that a card CLAIMS to support the misbehaving clause and then comparing the parsed AST against the Oracle text to confirm or refute that claim. Unsupported clauses are already known gaps…

259 2d ago A 100 tokens original Apache-2.0

bug-triage

15

phase-rs/phase

Skill Claude CodeCodex

Use when triaging Phase Discord bug reports, syncing reports into triage artifacts, creating or updating GitHub issues, tracking bug clusters, or applying the repository's bug-fix review workflow.

259 2d ago A 43 tokens original Apache-2.0

card-test

16

phase-rs/phase

Skill Claude CodeCodex

Canonical recipe for writing engine cast-pipeline tests. Use GameScenario + GameRunner::cast(...).resolve() and assert via CastOutcome deltas. Covers the six test-harness foot-guns (hand-written TargetRef vectors, incomplete modal target submission, wrong-point hand baseline, inline-keyword cards, AST-internal flag…

259 2d ago A 101 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when modifying the casting flow, stack resolution, condition systems, WaitingFor/GameAction state machine, or adding optional costs, new casting steps, or conditional ability resolution.

259 2d ago A 39 tokens original Apache-2.0

changelog

18

phase-rs/phase

Skill Claude CodeCodex

Generate a Discord-ready "What's New" changelog for phase.rs from recent git history. Use when Codex is asked for a changelog, release notes, Discord update, recent shipped changes, or the next sequential changelog batch from a prior tip hash.

259 2d ago A 55 tokens original Apache-2.0

engine-implementer

19

phase-rs/phase

Skill Claude CodeCodex

End-to-end phase.rs implementation pipeline: plan, review-plan, implement, review-impl, commit — each step run in a fresh spawned agent, with automatic phase decomposition for oversized workloads.

259 2d ago A 43 tokens original Apache-2.0

engine-planner

20

phase-rs/phase

Skill Claude CodeCodex

Produce an architecturally idiomatic implementation plan for a phase.rs parser or engine change. Design for the class of cards, not the single card. Use this when you need a plan that will survive /review-engine-plan without bandaids or workarounds.

259 2d ago A 57 tokens original Apache-2.0

oracle-parser

21

phase-rs/phase

Skill Claude CodeCodex

Use when doing any parser work — adding new Oracle text patterns, verb forms, phrase helpers, target patterns, subject handling, effect chain composition, fixing Unimplemented fallbacks, or understanding the parser architecture. This is the SINGLE SOURCE OF TRUTH for all oracle parser knowledge. Covers the nom…

259 2d ago A 82 tokens original Apache-2.0

parser-velocity

22

phase-rs/phase

Skill Claude CodeCodex

Fast-iteration loop for quick parser wins — surface near-miss cards via parser-gap-analyzer's typed category classifier, edit in batches, compile once per batch (not per card), defer the full gate (fmt/clippy/test-all/coverage/semantic-audit) to session end. Companion to unlock-set; use this when the fix is "add a…

259 2d ago A 127 tokens original Apache-2.0

phase-rs/phase

Skill Claude CodeCodex

Use when asked to handle, harden, or shepherd one or more external contributor PRs. Checks out PRs in a worktree or main workspace, updates them against origin/main, resolves review comments, performs architecture-focused implementation review, decides whether fixes are inline or require engine-implementer review…

259 2d ago B 80 tokens original Apache-2.0

pr-review-loop

24

phase-rs/phase

Skill Claude CodeCodex

Use to run a continuous review sweep over open contributor PRs in phase.rs. The skill is a thin orchestration layer over scripts/prreview.py: discover candidates, detect stale reviews/follow-ups, dispatch review-impl for PRs that need judgment, and delegate authorized merge handling to pr-contribution-handler.

259 2d ago A 66 tokens original Apache-2.0