phase: Skill for Claude Code

.claude/skills/card-test/SKILL.md

card-test is a skill for Claude Code from phase-rs/phase. It costs 47 tokens per session (3,108 once invoked), scanned A, original, Apache-2.0.

A fixed recipe for writing tests that cast a game card and check the result. It uses the project's game scenario and casting test helpers.

In plain words
What is it for?
Use it when adding or updating engine tests for card effects, including cards with variable costs, multiple targets, modes, or changes to players' life totals and zones.
Why use it?
It prevents recurring test mistakes, such as building targets incorrectly, submitting incomplete choices, or checking the wrong starting state.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is phase-rs/phase's own configuration. It tells Claude Code how to work on phase itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything phase configures →

Reuse

Borrowing it

Nothing to install: this file belongs to phase-rs/phase. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/phase-rs/phase/main/.claude/skills/card-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/phase-rs/phase

Made for: Claude Code.

Wrote 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.

agentmods badge for card-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/phase-rs/phase/card-test/github.svg)](https://agentmods.dev/skills/phase-rs/phase/card-test)
Your own site
<a href="https://agentmods.dev/skills/phase-rs/phase/card-test"><img src="https://agentmods.dev/badge/skills/phase-rs/phase/card-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for card-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/phase-rs/phase/card-test"><img src="https://agentmods.dev/badge/skills/phase-rs/phase/card-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,108 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.03108
Opus 5.5 $0.00019 $0.01243
Sonnet 5.5 $0.00009 $0.00622
Haiku 4.5 $0.00005 $0.00311

Measured 9d ago against content hash 224e0abb4ab5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

card-test 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 9d 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.

.claude/skills/card-test/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

card-test — production-pipeline test recipes

Choose the production entry point that creates the behavior under test. The builders in crates/engine/src/game/scenario.rs handle casting and activation bookkeeping; assertions must still prove the intended branch and completion.

Reference ports that demonstrate the pattern:

  • crates/engine/tests/integration/chord_of_calling.rs — X-spell, convoke, final_waiting_for() boundary.
  • crates/engine/src/game/casting_tests.rs — exsanguinate_* (life deltas, 2- and 3-player), vicious_rivalry_* (X-cost filter + zones), kozileks_command_modes_* (modal + X + multi-target).

Choose the production entry point

Behavior claimed Entry point and local example
Spell resolution runner.cast(spell).resolve(); the cast recipe below
Activated ability runner.activate(source, ability_index).resolve(); tests/integration/goblin_charbelcher.rs::activate_and_finish
ETB trigger Cast the permanent so entry emits the event and queues the trigger; tests/integration/wedding_ring_etb_token_copy.rs::wedding_ring_etb_token_copy_is_opponent_controlled
Phase trigger Set up before the phase, then advance through it with the runner; tests/integration/dark_confidant_upkeep.rs::dark_confidant_upkeep_loses_life_equal_to_revealed_card_mana_value
Choice / replacement / continuation Enter the prompt through its producer, assert it, then submit the response with runner.act(GameAction::...); tests/integration/goblin_charbelcher.rs::nested_ordering_pauses_arrange_each_pile_separately and tests/integration/optional_replacement_decline_keeps_resident_drain.rs::alms_collector_tail_reaches_the_drawer_after_a_declined_nested_granted_dredge

Example paths in this table are relative to crates/engine/. They illustrate entry points, not every assertion a new test needs. For other events, use the action that emits the event (combat declaration, zone change, etc.). Setting up a battlefield is legitimate fixture setup; manually enqueueing the trigger or pre-populating its remembered result does not test event delivery or binding.

Read the full file on GitHub · 219 lines

Changes

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.

  1. 9d ago Changed · +41 lines · -54 tokens per session 224e0abb4ab5
  2. 11d ago Changed · +9 lines 28ebdd99e154
  3. 2mo ago First seen · 169 lines · 101 tokens per session scan A 83f3bab672e4

Subscribe to this mod's changes

card-test is a skill published in the GitHub repository phase-rs/phase (312 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 3,108 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

testing-rules

Testing standards — frameworks, the testable-logic trigger, golden/snapshot rules, mocking rules, and the test-author → testing-reviewer pipeline. Load for /add-tests and any change that touches testable logic.

saeedkolivand/ai-job-hunter-app · 48 tokens

author-contract

Shared write-side contract every domain AUTHOR imports — smallest-diff implementation, ground-first, validation gates, tests-are-blocking, and never-approve-your-own-work. The write-side mirror of token-efficiency. Load at the start of any implementation task.

saeedkolivand/ai-job-hunter-app · 55 tokens

coding-standards

General repo rules enforced by ESLint/TypeScript/CI — PRs-only, never bypass lint, import ordering, type imports, path privacy, commit format. Load for any code change.

saeedkolivand/ai-job-hunter-app · 44 tokens

anarlog

Query Anarlog meetings, notes, summaries, transcripts, participants, action items, and recurring history, or import a local recording. Use when a user asks about their Anarlog meeting data or needs meeting context for another task.

fastrepl/anarlog · 50 tokens

graphify-windows

Turn any folder of files into a navigable knowledge graph with community detection, an honest audit trail, and three outputs: interactive HTML, GraphRAG-ready JSON, and a plain-language GRAPHREPORT.md.

saeedkolivand/ai-job-hunter-app · 75 tokens

lessons

How to propose and query distilled lessons (the experiential memory). Only project-steward persists; every other agent proposes/queries. Use when you discover a durable lesson or need prior experience for the current task.

saeedkolivand/ai-job-hunter-app · 45 tokens