aio-rust-api-migration

aio-rust-api-migration is a skill for Claude Code from aiocean/claude-plugins. It costs 49 tokens per session (1,008 once invoked), scanned A, original, MIT.

A workflow for moving a live application programming interface (API) from Python to Rust while keeping its observable behavior the same.

In plain words
What is it for?
It is for planning the migration, choosing what to compare, measuring request costs, running differential tests, and deciding when to switch over.
Why use it?
It helps reveal compatibility problems before switching users to the Rust version. It compares both versions using real traffic, tests, and streamed responses.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the aio-rust plugin — 3 skills shipped together

Good fit It is for planning the migration, choosing what to compare, measuring request costs, running differential tests, and deciding when to switch over.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-rust-api-migration
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.

Any agent
npx skills add aiocean/claude-plugins --skill aio-rust-api-migration
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code.

Or install aio-rust, the plugin that ships this one along with the rest of its 3 skills.

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 aio-rust-api-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-api-migration/github.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-api-migration)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-api-migration"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-api-migration/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 aio-rust-api-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-rust-api-migration"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-rust-api-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,008 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.00049 $0.01008
Opus 5.5 $0.00020 $0.00403
Sonnet 5.5 $0.00010 $0.00202
Haiku 4.5 $0.00005 $0.00101

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

Security

Grade A, and why

aio-rust-api-migration 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 3d 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.

plugins/aio-rust/skills/aio-rust-api-migration/SKILL.md · 43 lines

How it starts

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

Migrate a live API to Rust

Start with one real endpoint. Trace a request from validation through its dependencies to the last client-visible event. Use repository paths and actual test commands. For a planning request, return the proposed comparison boundary, verifier, and rollout criteria. For implementation, build the smallest runnable comparison across that boundary first.

Choose the boundary and the oracle

Measure the current cost per request and user-visible latency on representative workloads. Sketch both a narrow port and an end-to-end port. Count runtime crossings per request and per streamed item. Benchmark conversion and allocation costs with the proposed boundary. A parser that wins in isolation can lose its advantage when every token crosses runtimes several times.

Identify the source of truth for each observable behavior. Reuse independent contract tests against both services. Where tests embed legacy mocks, compare the old and ported assertions for lost specificity, especially ordering, missing fields and downstream calls. For undocumented behavior, pin the running legacy revision and configuration as the oracle. Give intentional changes an owner and an explicit expectation.

Design a comparison that can diagnose a failure

Boundary Feed both implementations Compare
Before inference or another variable dependency Same request and resolved dependency inputs Acceptance, error details, effective settings and exact serialized downstream request where bytes affect behavior
After that dependency Same observed event sequence, including errors and end-of-stream Client-visible event types, order, payloads, termination and usage
External effects Shadow adapters that capture intended operations Operation, arguments and count for billing, quota, writes and notifications

Keep the serving path authoritative for replies and real effects. Call a nondeterministic or costly dependency once, then tee its result to the shadow within the approved processing boundary. Bound the shadow queue and drop shadow work on overload. Count drops, timeouts and incomplete comparisons separately so they cannot inflate agreement.

Read the full file on GitHub · 43 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. 3d ago First seen · 43 lines · 49 tokens per session scan A 9ab8420cbc31

Subscribe to this mod's changes

aio-rust-api-migration is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 1,008 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-11-26.

Related

aio-rust-api-migration compared with skills from other repositories

aio-rust-api-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aio-rust-api-migrationaiocean/claude-pluginsSkill44d agoMITA49Claude Code
dare-rust-workspacedewtech-technologies/dare-methodSkill54mo agoMITA81Claude Code, Codex
rust-gatewayBerriAI/litellmSkill64ktodaynoneA70Claude Code, Codex
agent-rust-experttravisjneuman/.claudeSkill115yesterdayMITA85Claude Code
rust-ops0xDarkMatter/claude-modsSkill866d agoMITA85Claude Code
beautifulsoup-parsingMindrally/skillsSkill3221mo agoApache-2.0A32Claude Code
llamaindex-developmentMindrally/skillsSkill3221mo agoApache-2.0A32Claude Code