expo-migrate-module

expo-migrate-module is a skill for Claude Code, Codex from expo/skills. It costs 99 tokens per session (2,975 once invoked), scanned A, original, MIT.

A migration guide for changing the Swift side of an Expo native module from the Expo Modules API 1.0 definition style to the 2.0 macro style. Expo is a framework for building mobile apps with JavaScript and native code.

In plain words
What is it for?
Use it when upgrading a Swift Expo module to API 2.0, while leaving its Kotlin implementation on the older style unless the task includes it.
Why use it?
It helps update the module's native implementation while keeping its existing JavaScript and TypeScript interface unchanged.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the expo-experiments plugin — 2 skills shipped together

Good fit Use it when upgrading a Swift Expo module to API 2.0, while leaving its Kotlin implementation on the older style unless the task includes it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/expo/skills/expo-migrate-module
View source ↗ expo/skills
About the project

expo/skills is a collection of instructions that help AI coding agents build, deploy, upgrade, and debug Expo applications. Developers use these skills when working with Expo, EAS, React Native, iOS, and Android workflows.

expo/skills · 4,290 stars · on GitHub

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 expo/skills --skill expo-migrate-module
Clone the repo
git clone --depth 1 https://github.com/expo/skills

Made for: Claude Code, Codex.

Or install expo-experiments, the plugin that ships this one along with the rest of its 2 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 expo-migrate-module

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/expo/skills/expo-migrate-module"><img src="https://agentmods.dev/badge/skills/expo/skills/expo-migrate-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,975 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
  • Socket pass 15 Nov 2026
  • Snyk pass 25 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 77
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium MCP Rug Pull · line 110
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00099 $0.02975
Opus 5.5 $0.00040 $0.01190
Sonnet 5.5 $0.00020 $0.00595
Haiku 4.5 $0.00010 $0.00298

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

Security

Grade A, and why

expo-migrate-module 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.

plugins/expo-experiments/skills/expo-migrate-module/SKILL.md · 125 lines

How it starts

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

Migrate an Expo Module

Migrate the Swift side of an existing Expo module without changing its observable JS API. Treat the current JS/TypeScript surface and tests as the compatibility contract. Leave Kotlin on the 1.0 DSL unless the user explicitly expands the task.

Prerequisite

Use expo 58.0.21 or newer. Earlier 58.0.x releases lack tuple conversion and the swift:check and swift:expand commands of expo-modules-cli. Older ones also lack lazy @JS properties, SharedRef<T> subclasses in @SharedObject, static shared-object members, and .withAsync, and the oldest lack closure arguments and free-form Any return values. SDK 57 also lacks .concurrent, @Union, and module auto-discovery. Do not target either. Before editing, check the installed version (npm ls expo, or the lockfile). If it is older, stop and tell the user to upgrade first.

Check the example app's own dependencies too, not only the module root. The example app is the integration surface you build and launch in step 4, so it needs the same floor.

This is a floor, not a guarantee: the macro and core surface changed in almost every 58.0.x patch release, so step 2 must still verify the installed source.

The macros are still experimental and undocumented: SDK 58 has no page about them in the Expo docs, and the API can still change under you. Say this to the user before a large migration, and prefer incremental mixed mode over converting a module wholesale.

References

  • Read references/migration-map.md before changing source. It contains the 1.0-to-2.0 mappings, semantic traps, and mixed-mode rules.
  • Read references/example.md for a full before/after walkthrough of one module through mixed mode to a complete migration. Consult it when you need to see how the per-member rules compose.
  • Read references/compatibility.md when the checked-out expo-modules-core version or branch is not known to support every requested macro. It explains how to verify the actual compile-time and runtime surface instead of guessing from a version number, gives the SDK 58 status of each capability, and shows how to run the module scanners and the expo-modules-cli checks.

Read the full file on GitHub · 125 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · -4 lines 7503998ad20b
  2. 19d ago Changed · -1 lines 88211a6c5472
  3. 21d ago Changed · +1 lines 86066e3cd4ca
  4. 1mo ago Changed · +5 lines e15a7e8e3119
  5. 1mo ago Changed · -1 lines c0fe605d0d4c
  6. 1mo ago Changed 27a79ed0aa81
  7. 1mo ago Changed e140e1a80a52
  8. 2mo ago Changed · -4 tokens per session ac2a7e33e848
  9. 2mo ago Changed · +11 lines 8ae89b9ca14f
  10. 3mo ago First seen · 114 lines · 103 tokens per session scan A d19060a823b3

Subscribe to this mod's changes

expo-migrate-module is a skill published in the GitHub repository expo/skills (4,290 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 2,975 once invoked, about $0.0004 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

expo-migrate-module compared with skills from other repositories

expo-migrate-module next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
expo-migrate-moduleexpo/skillsSkill4.3ktodayMITA99Claude Code, Codex
kotlin-specialistJeffallan/claude-skillsSkill13kyesterdayMITA86Claude Code
wear-compose-m3android/skillsSkill11k11d agoApache-2.0A108Claude Code
swiftui-devOrkas-AI/OrkasSkill7.7kyesterdayMITA3Claude Code, Codex
ink-custom-brush-builderandroid/skillsSkill11k11d agoApache-2.0A159Claude Code
build-android-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITA150Claude Code
kotlin-androidericrisco/rsc-harnessSkill7072d agoMITA78Claude Code, Codex