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/add-keywordnpx skills add phase-rs/phase --skill add-keywordgit clone --depth 1 https://github.com/phase-rs/phaseWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/phase-rs/phase/add-keyword)<a href="https://agentmods.dev/skills/phase-rs/phase/add-keyword"><img src="https://agentmods.dev/badge/skills/phase-rs/phase/add-keyword.svg" alt="Measured on agentmods" height="20"></a>What 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.00054 | $0.04413 |
| Opus 5 | $0.00027 | $0.02207 |
| Sonnet 5 | $0.00011 | $0.00883 |
| Haiku 4.5 | $0.00005 | $0.00441 |
Grade A, and why
add-keyword 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 4d 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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding a Keyword Ability
Keywords are strongly-typed abilities stored on GameObjects and evaluated across combat, targeting, damage, state-based actions, and triggers. They flow through the layer system (granted/removed via ContinuousModification) and are parsed from both MTGJSON keyword arrays and Oracle text.
Before you start: Trace how Ward works end-to-end — it's a parameterized keyword with targeting interaction: Keyword::Ward(ManaCost) in keywords.rs → FromStr parsing → targeting.rs check → layer grant via AddKeyword.
CR Verification Rule: Every CR number in annotations MUST be verified by grepping
docs/MagicCompRules.txtbefore writing. Do NOT rely on memory — 702.x keyword ability numbers are arbitrary sequential assignments that LLMs consistently hallucinate (e.g., Crew is 702.122, not 702.148). Rungrep -n "^702.122" docs/MagicCompRules.txtfor every number. If you cannot find it, do not write the annotation.
MTG Rules Reference
| Rule | What it governs | Engine implication |
|---|---|---|
| 702.x | Individual keyword definitions | Each keyword has specific rules for where it matters |
| 613.1f | Keywords granted/removed in Layer 6 | ContinuousModification::AddKeyword / RemoveKeyword |
| 702.2 | Evergreen keywords (flying, haste, etc.) | Unit variants on Keyword enum |
| 702.16 | Protection | Keyword::Protection(ProtectionTarget) with multi-check in protection_prevents_from() |
| 702.21 | Ward | Keyword::Ward(ManaCost) checked in targeting.rs |
Key Types
Keyword Enum — crates/engine/src/types/keywords.rs
Three categories of variants:
| Category | Examples | Data |
|---|---|---|
| Unit (simple) | Flying, Haste, Trample, Deathtouch, Lifelink, Vigilance, Reach, Defender, Menace, Indestructible, Hexproof, Shroud, Flash |
None |
| Parameterized (u32) | Dredge(u32), Modular(u32), Renown(u32), Fabricate(u32), Annihilator(u32), Crew(u32) |
Numeric value |
| Parameterized (ManaCost) | Ward(ManaCost), Kicker(ManaCost), Cycling(ManaCost), Flashback(ManaCost), Equip(ManaCost), Morph(ManaCost) |
Mana cost |
| Special | Protection(ProtectionTarget), Enchant(TargetFilter), Landwalk(String), EtbCounter { counter_type, count } |
Typed data |
| Fallback | Unknown(String) |
Unparsed name — never matches at runtime, tracked in coverage |
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.
- 4d ago First seen · 261 lines · 54 tokens per session scan A 70d0647cd131
add-keyword is a skill published in the GitHub repository phase-rs/phase (268 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 4,413 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
qa-cli-mcp-api
Select and run explicitly requested, risk-based QA for Anarlog's CLI, webhooks, stdio MCP, hosted Cloud API, and remote MCP. Test only affected lanes unless comprehensive coverage is requested.
product-update-newsletter
Draft, update, or audit a crisp, changelog-grounded Anarlog product-update newsletter in Loops (app.loops.so) for a desktop release. Use after the changelog is merged, when asked to draft, revise, or pre-send check the release announcement email.
sqlite-schema-design
Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice. Use when adding synced tables, changing synced columns, or planning CloudSync-safe migrations.
release-new-version
Release a new desktop stable version for Anarlog. Use when asked to cut, publish, or prepare a new stable desktop release after checking and merging the changelog.
fix-ready-prs
Inspect every open non-draft PR for CI failures and unresolved Cursor Bugbot findings, then fix them on the existing PR branches. Use when asked to check active PRs, triage ready PRs, fix CI, or address Bugbot comments.
reactive-sqlite-ui
Build SQLite-backed reactive UI in apps/desktop using stable patterns for reads, selection, forms, writes, and loading states. Use when implementing or reviewing screens built on useDrizzleLiveQuery and SQLite mutations.