migrate-tests

migrate-tests is a command for Claude Code from authzed/authzed-marketplace. It costs 18 tokens per session (10,174 once invoked), scanned A, original, Apache-2.0.

A migration command that converts test and assertion files from another system into SpiceDB validation YAML. SpiceDB is an authorization database, and YAML is a human-readable configuration format.

In plain words
What is it for?
Use it in the test-conversion phase of a SpiceDB migration to select source tests, resolve genuine mapping conflicts with human input, generate validation files, and validate them.
Why use it?
It preserves source-system tests during an authorization migration and validates each generated file with SpiceDB’s validator.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the spicedb-dev plugin — 8 skills, 15 commands, 3 agents shipped together

Good fit Use it in the test-conversion phase of a SpiceDB migration to select source tests, resolve genuine mapping conflicts with human input, generate validation files, and validate them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/authzed/authzed-marketplace/migrate-tests
Install

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.

Clone the repo
git clone --depth 1 https://github.com/authzed/authzed-marketplace

Made for: Claude Code.

Or install spicedb-dev, the plugin that ships this one along with the rest of its 8 skills, 15 commands, 3 agents.

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 migrate-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/authzed/authzed-marketplace/migrate-tests/github.svg)](https://agentmods.dev/commands/authzed/authzed-marketplace/migrate-tests)
Your own site
<a href="https://agentmods.dev/commands/authzed/authzed-marketplace/migrate-tests"><img src="https://agentmods.dev/badge/commands/authzed/authzed-marketplace/migrate-tests/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 migrate-tests

Your own site · 80×15
<a href="https://agentmods.dev/commands/authzed/authzed-marketplace/migrate-tests"><img src="https://agentmods.dev/badge/commands/authzed/authzed-marketplace/migrate-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,174 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.
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.00018 $0.10174
Opus 5.5 $0.00007 $0.04070
Sonnet 5.5 $0.00004 $0.02035
Haiku 4.5 $0.00002 $0.01017

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

Security

Grade A, and why

migrate-tests 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 1mo 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.

spicedb-dev/commands/migrate-tests.md · 570 lines

How it starts

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

Migrate Tests

Phase 5 of the migration pipeline: convert a source system's test fixtures and assertions into SpiceDB validation YAML, and validate every emitted file with zed validate.

This command's job is to convert, following the pack's test-mapping reference exactly, and to decide as little as possible while doing it. Where a genuine judgment call remains -- which candidate test file to convert, how to resolve a same-object/different-relation collision -- it is a human call, and this command asks with AskUserQuestion and records the answer directly in migration-plan.md's narrative Deferred / manual section -- a file-selection or collision-scenario choice has no migration-map.json counterpart, unlike phase 0's own decisions, which live in the JSON's decisions key and are only rendered to the plan (findings-report.md's "Two groups of sections, one rule each").

This command has no gate of its own, reduced or otherwise. Unlike /spicedb-dev:migrate-schema, which stays independently runnable for schema-only work because it can decide phase 1's own inputs from the model alone, test conversion is a pure consumer of migration-plan.md and migration-map.json -- every rewrite rule below is "look this name up in the map", not a decision this command could make standalone. If migration-plan.md is missing, or was authored by the reduced inline gate rather than the full one, this command halts and routes to /spicedb-dev:migrate rather than inventing a gate to fill the gap.

Outputs, written to [output-dir] (default: the directory phase 0 wrote migration-map.json to, i.e. the project being migrated -- not the shell's current working directory):

  • validation.yaml -- the canonical converted output for the selected source test file.
  • validation-<scenario>.yaml -- one additional file per losing scenario, written only when step 5's mechanism-B collision fires.
  • migration-map.json -- updated in place with this run's phase_status["5"] (step 8.1) -- the single machine-readable record of that status.
  • migration-plan.md -- regenerated in place: every advisory finding, collision record, and file-selection decision this run produced is appended directly to the narrative Deferred / manual section (step 8.2), and every other rendered section is rebuilt from the just-updated migration-map.json (step 8.3).

Read the full file on GitHub · 570 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. 1mo ago Changed · +1 lines 74fd52aa9c81
  2. 1mo ago First seen · 569 lines · 18 tokens per session scan A 28871f025f59

Subscribe to this mod's changes

migrate-tests is a command published in the GitHub repository authzed/authzed-marketplace (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 10,174 once invoked, about $0.0001 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-31.