Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/phase-rs/phase/validate-cr-annotationsnpx skills add phase-rs/phase --skill validate-cr-annotationsgit clone --depth 1 https://github.com/phase-rs/phaseWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00068 | $0.01803 |
| Opus 5 | $0.00034 | $0.00901 |
| Sonnet 5 | $0.00014 | $0.00361 |
| Haiku 4.5 | $0.00007 | $0.00180 |
Grade A, and why
validate-cr-annotations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CR Annotation Validation
This skill enforces the mandatory verification protocol for MTG Comprehensive Rules annotations. Every CR number is verified by grep before it is written. No exceptions.
Verification Protocol
For every CR number you are about to write, run this BEFORE writing:
grep -n "^NNN.X" docs/MagicCompRules.txt
Where NNN.X is the rule number (e.g., 702.33d, 613.1f, 120.2a).
- If the grep returns a matching line → the rule exists. Read the text to confirm it matches your intent.
- If the grep returns nothing → STOP. Do not write the annotation. The rule number is wrong.
Batch verification for multiple annotations
When adding several CR annotations in one change, verify all at once:
for ref in "702.33d" "613.1f" "120.2a"; do
echo "=== CR $ref ==="
grep -n "^${ref}" docs/MagicCompRules.txt | head -2
done
Format Rules
| Format | When to use | Example |
|---|---|---|
| Inline comment | Implementation code | // CR 704.5a: A player with 0 or less life loses the game. |
| Doc comment | Public items (functions, types, variants) | /// CR 704: Checks state-based actions. |
Combined + |
Multiple interacting rules | // CR 702.2c + CR 702.19b: Deathtouch with trample assigns lethal (1) to each blocker. |
Combined / |
Alternative/overlapping rules | // CR 704.3 / CR 800.4: SBAs may have ended the game during phase auto-advance. |
Mandatory rules:
- Prefix is always
CR— neverRule,MTG Rule, or bare numbers - Number format regex:
CR \d{3}(\.\d+[a-z]?)? - Description is mandatory — a bare
CR 704.5awith no explanation is not acceptable - Placement: directly above or inline with the code that implements the rule
Known Hallucination Patterns
These are the error classes found in the full audit of this codebase. Watch for them:
1. Off-by-one section numbers (most common)
The 702.x keyword ability numbers are arbitrary sequential assignments. There is no mnemonic anchor. Common confusions:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 133 lines · 68 tokens per session scan A ba61ecc6bdbe
validate-cr-annotations is a skill published in the GitHub repository phase-rs/phase (259 stars, last pushed 2d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,803 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
add-card
Implements new Magic: The Gathering cards for the Argentum Engine. Use when adding a new card, the user provides one or more card names to implement, or asks to implement a specific MTG card. Several cards that reuse existing primitives can be implemented together into one PR.
add-feature
Adds a new feature or mechanic to the Argentum Engine (SDK primitive, effect, trigger, condition, static/replacement ability, server/client capability) following the project's architecture and SDK-elegance principles. Use when implementing engine/SDK/server/client functionality that isn't a single card — e.g. "add an…
verify-set
Prove a Magic set is actually finished — card-for-card complete, field-for-field faithful to Scryfall, scripts that match their oracle text, tokens that resolve the set's own art, behaviourally sound — then archive its backlog. Builds the Scryfall dump and CardFieldVerificationTest, fans the per-card DSL and token…
assay-ready-sweep
Implement every "Assay-ready" card for a Magic set — the cards Argentum Assay reads whole that the set hasn't authored yet — placing each canonical in its earliest real printing and giving the sweep's own set a Printing row when the card is a reprint. Computes the four-way split first, authors to assay compile's JSON…
review-changes
Review pending changes (a branch, PR, or working tree) for the Argentum Engine. Optimizes for an elegant, reusable SDK — flags one-off effects/abilities that should compose existing primitives — and checks correctness, projection use, tests, and architectural fit. Use when the user says "review this PR", "review this…
create-backlog-for-set
Create the backlog/sets/ / entry for a Magic set — download the whole set from Scryfall (cached alongside Assay's cache), write cards.md as a per-colour checklist with the already-implemented cards ticked, scaffold the set's definitions/ / module if it doesn't exist, and write mechanics.md ordering every mechanic the…