phase: Skill for Claude Code

.claude/skills/batch-mechanics/SKILL.md

batch-mechanics is a skill for Claude Code from phase-rs/phase. It costs 51 tokens per session (1,803 once invoked), scanned A, original, Apache-2.0.

A workflow for implementing several unfinished game mechanics as a coordinated batch. It groups related work, plans each group, adds review steps, and verifies the results.

In plain words
What is it for?
Use it for batches of items from the unfinished-mechanics list, especially when the work touches related files or needs to be completed in a specific order.
Why use it?
It helps manage dependencies and shared code when multiple mechanics must be implemented together.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions subagents.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/tilt-wait.sh --timeout 240 clippy test-engine card-data.

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/batch-mechanics/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 batch-mechanics

README.md
[![agentmods](https://agentmods.dev/badge/skills/phase-rs/phase/batch-mechanics/github.svg)](https://agentmods.dev/skills/phase-rs/phase/batch-mechanics)
Your own site
<a href="https://agentmods.dev/skills/phase-rs/phase/batch-mechanics"><img src="https://agentmods.dev/badge/skills/phase-rs/phase/batch-mechanics/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 batch-mechanics

Your own site · 80×15
<a href="https://agentmods.dev/skills/phase-rs/phase/batch-mechanics"><img src="https://agentmods.dev/badge/skills/phase-rs/phase/batch-mechanics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,803 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.00051 $0.01803
Opus 5.5 $0.00020 $0.00721
Sonnet 5.5 $0.00010 $0.00361
Haiku 4.5 $0.00005 $0.00180

Measured 2mo ago against content hash c2d85bab8a11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

batch-mechanics 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 2mo 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/batch-mechanics/SKILL.md · 145 lines

How it starts

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

Batch Mechanics Implementation

Orchestrate an agent team to plan and implement multiple mechanics from UNIMPLEMENTED-MECHANICS.md.

Prerequisites:

  • Agent Teams must be enabled (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in settings)
  • The lead session should be running Opus (it handles grouping and coordination decisions)

Instructions for the Team Lead

You are orchestrating a multi-phase workflow. Follow each phase exactly. If any phase isn't possible, stop and discuss with the user before proceeding.

Small batch shortcut: If the user has only 1-2 items, skip the agent team — implement them directly without the team overhead.

Phase 1 — Group & Classify

  1. Read .planning/rules-audit/UNIMPLEMENTED-MECHANICS.md
  2. Review the items the user has appended below
  3. Group items by relevance to each other. Consider:
    • Items that touch the same files or subsystems (e.g., two SBA items → group together)
    • Items that share a pattern (e.g., multiple keyword implementations)
    • Items that have dependencies (e.g., damage prevention must exist before protection prevention pipeline)
  4. Balance group sizes — fold small items into related groups rather than having a teammate do only 1-2 trivial tasks
  5. For each group, identify which existing skill(s) apply. A mechanic may need multiple skills:
    • /add-engine-effect — new effects or stub completions
    • /add-keyword — keyword abilities
    • /add-trigger — triggered abilities
    • /add-static-ability — static/continuous effects
    • /add-replacement-effect — replacement effects
    • /add-interactive-effect — effects requiring player choices (WaitingFor/GameAction round-trip)
    • /oracle-parser — parser-only changes
    • /casting-stack-conditions — casting flow or stack changes
  6. Order groups by dependency — if Group A must be done before Group B can start, note this
  7. Present the groupings to the user for approval before spawning teammates

Phase 2 — Plan (Parallel Teammates)

Read the full file on GitHub · 145 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. 2mo ago First seen · 145 lines · 51 tokens per session scan A c2d85bab8a11

Subscribe to this mod's changes

batch-mechanics is a skill published in the GitHub repository phase-rs/phase (312 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 1,803 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

critic-contract

Shared read-side contract every read-only CRITIC imports — adversarial stance, empirical verification of runtime-behavior claims, the mandatory self-red-team before APPROVE, how a finding is stated (quote the span, take the UNKNOWN escape hatch) and held (only new evidence moves a severity, never pushback), spec-UB…

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

code-quality

Shared clean-code / DRY / KISS / YAGNI standards and stack-specific smells for the React 19 + TypeScript + Rust (Tauri 2) monorepo. Library consumed by the code-quality-reviewer and code-quality-author agents.

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

review-workflow

The implement→review flow under the ≤3-reviewer budget with the conditional test stage. Use for /implement-feature, /fix-bug, /refactor-module and any change that needs structured review.

saeedkolivand/ai-job-hunter-app · 45 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