vybekiit 0.7.4 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/dist/bin.js +10483 -1704
  2. package/dist/global-skills/aws-cdk/SKILL.md +2 -1
  3. package/dist/global-skills/aws-cloudformation/SKILL.md +2 -1
  4. package/dist/global-skills/aws-serverless/SKILL.md +45 -44
  5. package/dist/global-skills/aws-serverless/assets/powertools-handler.py +2 -1
  6. package/dist/global-skills/aws-serverless/references/api-gateway.md +50 -470
  7. package/dist/global-skills/aws-serverless/references/architecture.md +47 -186
  8. package/dist/global-skills/aws-serverless/references/concurrency.md +44 -158
  9. package/dist/global-skills/aws-serverless/references/deployment.md +1 -1
  10. package/dist/global-skills/aws-serverless/references/event-sources.md +72 -391
  11. package/dist/global-skills/aws-serverless/references/lambda.md +69 -428
  12. package/dist/global-skills/aws-serverless/references/orchestration.md +65 -384
  13. package/dist/global-skills/aws-serverless/references/production.md +78 -415
  14. package/dist/global-skills/aws-serverless/references/troubleshooting.md +92 -619
  15. package/dist/global-skills/claimable-postgres/SKILL.md +60 -49
  16. package/dist/global-skills/design-my-data/SKILL.md +2 -0
  17. package/dist/global-skills/eas-app-stores/SKILL.md +8 -0
  18. package/dist/global-skills/eas-app-stores/references/play-store.md +2 -0
  19. package/dist/global-skills/eas-hosting/SKILL.md +8 -0
  20. package/dist/global-skills/eas-observe/SKILL.md +30 -8
  21. package/dist/global-skills/eas-observe/agents/openai.yaml +1 -1
  22. package/dist/global-skills/eas-observe/references/metrics.md +54 -3
  23. package/dist/global-skills/eas-observe/references/queries.md +78 -17
  24. package/dist/global-skills/eas-observe/references/setup.md +164 -5
  25. package/dist/global-skills/eas-observe/references/third-party.md +136 -0
  26. package/dist/global-skills/eas-simulator/SKILL.md +63 -11
  27. package/dist/global-skills/eas-simulator/references/controllers.md +21 -2
  28. package/dist/global-skills/eas-simulator/references/run-your-app.md +16 -11
  29. package/dist/global-skills/eas-simulator/references/troubleshooting.md +8 -5
  30. package/dist/global-skills/eas-update-insights/SKILL.md +8 -0
  31. package/dist/global-skills/eas-workflows/SKILL.md +15 -10
  32. package/dist/global-skills/eas-workflows/scripts/package.json +2 -7
  33. package/dist/global-skills/email-best-practices/.github/workflows/sync-skills.yml +30 -0
  34. package/dist/global-skills/email-best-practices/README.md +63 -0
  35. package/dist/global-skills/email-best-practices/references/accessibility.md +189 -0
  36. package/dist/global-skills/email-best-practices/references/compliance.md +125 -0
  37. package/dist/global-skills/email-best-practices/references/deliverability.md +121 -0
  38. package/dist/global-skills/email-best-practices/references/email-capture.md +129 -0
  39. package/dist/global-skills/email-best-practices/references/email-types.md +173 -0
  40. package/dist/global-skills/email-best-practices/references/list-management.md +157 -0
  41. package/dist/global-skills/email-best-practices/references/marketing-emails.md +115 -0
  42. package/dist/global-skills/email-best-practices/references/sending-reliability.md +155 -0
  43. package/dist/global-skills/email-best-practices/references/transactional-email-catalog.md +418 -0
  44. package/dist/global-skills/email-best-practices/references/transactional-emails.md +92 -0
  45. package/dist/global-skills/email-best-practices/references/webhooks-events.md +167 -0
  46. package/dist/global-skills/email-best-practices/tests/README.md +35 -0
  47. package/dist/global-skills/email-best-practices/tests/scenarios/01-spam-deliverability.md +46 -0
  48. package/dist/global-skills/email-best-practices/tests/scenarios/02-multi-region-compliance.md +48 -0
  49. package/dist/global-skills/email-best-practices/tests/scenarios/03-retry-idempotency.md +36 -0
  50. package/dist/global-skills/email-best-practices/tests/scenarios/04-webhook-bounce-handling.md +52 -0
  51. package/dist/global-skills/email-best-practices/tests/scenarios/05-new-saas-email-plan.md +51 -0
  52. package/dist/global-skills/expo-animation/LICENSE +21 -0
  53. package/dist/global-skills/expo-animation/RECIPES.md +385 -0
  54. package/dist/global-skills/expo-animation/SKILL.md +267 -0
  55. package/dist/global-skills/expo-animation/agents/openai.yaml +4 -0
  56. package/dist/global-skills/expo-app-clip/SKILL.md +8 -0
  57. package/dist/global-skills/expo-brownfield/SKILL.md +8 -0
  58. package/dist/global-skills/expo-brownfield/references/brownfield-isolated.md +53 -4
  59. package/dist/global-skills/expo-data-fetching/SKILL.md +8 -0
  60. package/dist/global-skills/expo-design-system/SKILL.md +356 -0
  61. package/dist/global-skills/expo-design-system/agents/openai.yaml +4 -0
  62. package/dist/global-skills/expo-design-system/references/audit.md +185 -0
  63. package/dist/global-skills/expo-dev-client/SKILL.md +8 -0
  64. package/dist/global-skills/expo-dom/SKILL.md +8 -0
  65. package/dist/global-skills/expo-examples/SKILL.md +8 -0
  66. package/dist/global-skills/expo-migrate-module/SKILL.md +113 -0
  67. package/dist/global-skills/expo-migrate-module/agents/openai.yaml +4 -0
  68. package/dist/global-skills/expo-migrate-module/references/compatibility.md +73 -0
  69. package/dist/global-skills/expo-migrate-module/references/example.md +212 -0
  70. package/dist/global-skills/expo-migrate-module/references/migration-map.md +306 -0
  71. package/dist/global-skills/expo-module/SKILL.md +11 -1
  72. package/dist/global-skills/expo-native-ui/SKILL.md +8 -0
  73. package/dist/global-skills/expo-project-structure/SKILL.md +114 -0
  74. package/dist/global-skills/expo-project-structure/agents/openai.yaml +4 -0
  75. package/dist/global-skills/expo-router/SKILL.md +8 -0
  76. package/dist/global-skills/expo-skill-feedback/SKILL.md +66 -33
  77. package/dist/global-skills/expo-skill-feedback/agents/openai.yaml +2 -2
  78. package/dist/global-skills/expo-tailwind-setup/SKILL.md +8 -0
  79. package/dist/global-skills/expo-ui/SKILL.md +8 -0
  80. package/dist/global-skills/expo-upgrade/SKILL.md +15 -1
  81. package/dist/global-skills/expo-web-to-native/SKILL.md +8 -0
  82. package/dist/global-skills/extension-to-functions-codebase/SKILL.md +129 -0
  83. package/dist/global-skills/extension-to-functions-codebase/references/configuration-migration.md +161 -0
  84. package/dist/global-skills/extension-to-functions-codebase/references/destructuring-shim.md +122 -0
  85. package/dist/global-skills/extension-to-functions-codebase/references/signature-mapping.md +84 -0
  86. package/dist/global-skills/firebase-ai-logic-basics/SKILL.md +61 -19
  87. package/dist/global-skills/firebase-ai-logic-basics/references/flutter_setup.md +6 -3
  88. package/dist/global-skills/firebase-app-hosting-basics/SKILL.md +5 -1
  89. package/dist/global-skills/firebase-auth-basics/SKILL.md +4 -2
  90. package/dist/global-skills/firebase-basics/SKILL.md +5 -5
  91. package/dist/global-skills/firebase-crashlytics/SKILL.md +2 -0
  92. package/dist/global-skills/firebase-data-connect/SKILL.md +2 -0
  93. package/dist/global-skills/firebase-firestore/SKILL.md +3 -6
  94. package/dist/global-skills/firebase-hosting-basics/SKILL.md +4 -1
  95. package/dist/global-skills/firebase-remote-config-basics/SKILL.md +5 -1
  96. package/dist/global-skills/firebase-security-rules-auditor/SKILL.md +4 -1
  97. package/dist/global-skills/harden/SKILL.md +2 -1
  98. package/dist/global-skills/instrument-feature-flags/SKILL.md +1 -0
  99. package/dist/global-skills/instrument-feature-flags/references/COMMANDMENTS.md +5 -0
  100. package/dist/global-skills/instrument-feature-flags/references/adding-feature-flag-code.md +6 -4
  101. package/dist/global-skills/instrument-feature-flags/references/android.md +6 -4
  102. package/dist/global-skills/instrument-feature-flags/references/api.md +6 -4
  103. package/dist/global-skills/instrument-feature-flags/references/best-practices.md +6 -4
  104. package/dist/global-skills/instrument-feature-flags/references/django.md +38 -5
  105. package/dist/global-skills/instrument-feature-flags/references/dotnet.md +10 -4
  106. package/dist/global-skills/instrument-feature-flags/references/elixir.md +6 -4
  107. package/dist/global-skills/instrument-feature-flags/references/flask.md +17 -5
  108. package/dist/global-skills/instrument-feature-flags/references/flutter.md +7 -5
  109. package/dist/global-skills/instrument-feature-flags/references/go.md +6 -4
  110. package/dist/global-skills/instrument-feature-flags/references/ios.md +6 -4
  111. package/dist/global-skills/instrument-feature-flags/references/java.md +6 -4
  112. package/dist/global-skills/instrument-feature-flags/references/laravel.md +6 -4
  113. package/dist/global-skills/instrument-feature-flags/references/next-js.md +74 -8
  114. package/dist/global-skills/instrument-feature-flags/references/nodejs.md +6 -4
  115. package/dist/global-skills/instrument-feature-flags/references/php.md +6 -4
  116. package/dist/global-skills/instrument-feature-flags/references/python.md +6 -4
  117. package/dist/global-skills/instrument-feature-flags/references/react-native.md +6 -4
  118. package/dist/global-skills/instrument-feature-flags/references/react.md +6 -4
  119. package/dist/global-skills/instrument-feature-flags/references/ruby-on-rails.md +6 -4
  120. package/dist/global-skills/instrument-feature-flags/references/ruby.md +6 -4
  121. package/dist/global-skills/instrument-feature-flags/references/rust.md +6 -4
  122. package/dist/global-skills/instrument-feature-flags/references/usage.md +41 -4
  123. package/dist/global-skills/instrument-feature-flags/references/web.md +7 -5
  124. package/dist/global-skills/instrument-product-analytics/SKILL.md +2 -1
  125. package/dist/global-skills/instrument-product-analytics/references/COMMANDMENTS.md +5 -0
  126. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-astro-hybrid.md +12 -14
  127. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-astro-ssr.md +25 -21
  128. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-django.md +75 -55
  129. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-fastapi.md +3 -6
  130. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-flask.md +26 -16
  131. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-nuxt-3-6.md +8 -5
  132. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-nuxt-4.md +4 -4
  133. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-react-react-router-7-framework.md +3 -3
  134. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-ruby-on-rails.md +8 -4
  135. package/dist/global-skills/instrument-product-analytics/references/EXAMPLE-tanstack-start.md +20 -8
  136. package/dist/global-skills/instrument-product-analytics/references/android.md +46 -4
  137. package/dist/global-skills/instrument-product-analytics/references/angular.md +41 -5
  138. package/dist/global-skills/instrument-product-analytics/references/astro.md +41 -5
  139. package/dist/global-skills/instrument-product-analytics/references/configuration.md +7 -4
  140. package/dist/global-skills/instrument-product-analytics/references/django.md +38 -5
  141. package/dist/global-skills/instrument-product-analytics/references/dotnet.md +10 -4
  142. package/dist/global-skills/instrument-product-analytics/references/elixir.md +6 -4
  143. package/dist/global-skills/instrument-product-analytics/references/flask.md +17 -5
  144. package/dist/global-skills/instrument-product-analytics/references/flutter.md +49 -4
  145. package/dist/global-skills/instrument-product-analytics/references/go.md +6 -4
  146. package/dist/global-skills/instrument-product-analytics/references/identify-users.md +38 -7
  147. package/dist/global-skills/instrument-product-analytics/references/ios.md +14 -4
  148. package/dist/global-skills/instrument-product-analytics/references/laravel.md +6 -4
  149. package/dist/global-skills/instrument-product-analytics/references/next-js.md +74 -8
  150. package/dist/global-skills/instrument-product-analytics/references/nuxt-js-3-6.md +39 -7
  151. package/dist/global-skills/instrument-product-analytics/references/nuxt-js.md +40 -4
  152. package/dist/global-skills/instrument-product-analytics/references/php.md +6 -4
  153. package/dist/global-skills/instrument-product-analytics/references/posthog-python.md +21 -17
  154. package/dist/global-skills/instrument-product-analytics/references/python.md +15 -5
  155. package/dist/global-skills/instrument-product-analytics/references/react-native.md +41 -7
  156. package/dist/global-skills/instrument-product-analytics/references/react-router-v6.md +18 -4
  157. package/dist/global-skills/instrument-product-analytics/references/react-router-v7-data-mode.md +18 -4
  158. package/dist/global-skills/instrument-product-analytics/references/react-router-v7-declarative-mode.md +18 -4
  159. package/dist/global-skills/instrument-product-analytics/references/react-router-v7-framework-mode.md +18 -4
  160. package/dist/global-skills/instrument-product-analytics/references/ruby-on-rails.md +6 -4
  161. package/dist/global-skills/instrument-product-analytics/references/ruby.md +6 -4
  162. package/dist/global-skills/instrument-product-analytics/references/svelte.md +42 -6
  163. package/dist/global-skills/instrument-product-analytics/references/tanstack-start.md +31 -7
  164. package/dist/global-skills/instrument-product-analytics/references/usage.md +41 -4
  165. package/dist/global-skills/instrument-product-analytics/references/vue-js.md +42 -6
  166. package/dist/global-skills/manifest.json +6 -1
  167. package/dist/global-skills/neon/SKILL.md +235 -121
  168. package/dist/global-skills/neon-ai-gateway/SKILL.md +95 -16
  169. package/dist/global-skills/neon-functions/SKILL.md +242 -152
  170. package/dist/global-skills/neon-functions/references/ai-sdk.md +9 -3
  171. package/dist/global-skills/neon-functions/references/mastra-studio.md +1 -1
  172. package/dist/global-skills/neon-functions/references/mcp.md +13 -4
  173. package/dist/global-skills/neon-functions/references/sentry.md +165 -52
  174. package/dist/global-skills/neon-functions/references/sse.md +23 -6
  175. package/dist/global-skills/neon-object-storage/SKILL.md +40 -16
  176. package/dist/global-skills/neon-postgres/SKILL.md +63 -262
  177. package/dist/global-skills/neon-postgres-branches/SKILL.md +61 -50
  178. package/dist/global-skills/neon-postgres-egress-optimizer/SKILL.md +22 -3
  179. package/dist/global-skills/resend/SKILL.md +6 -6
  180. package/dist/global-skills/resend/references/automations.md +2 -2
  181. package/dist/global-skills/resend/references/broadcasts.md +11 -3
  182. package/dist/global-skills/resend/references/domains.md +25 -3
  183. package/dist/global-skills/resend/references/installation.md +7 -7
  184. package/dist/global-skills/setup-payments/SKILL.md +4 -5
  185. package/dist/global-skills/stripe-best-practices/SKILL.md +32 -7
  186. package/dist/global-skills/stripe-best-practices/references/billing.md +11 -1
  187. package/dist/global-skills/stripe-best-practices/references/payments.md +23 -2
  188. package/dist/global-skills/stripe-best-practices/references/security.md +21 -11
  189. package/dist/global-skills/stripe-best-practices/references/tax.md +116 -11
  190. package/dist/global-skills/supabase/CHANGELOG.md +25 -0
  191. package/dist/global-skills/supabase/SKILL.md +5 -1
  192. package/dist/global-skills/supabase-postgres-best-practices/CHANGELOG.md +30 -0
  193. package/dist/global-skills/supabase-postgres-best-practices/SKILL.md +1 -1
  194. package/dist/global-skills/use-kit-mcp/SKILL.md +5 -5
  195. package/dist/global-skills/use-railway/SKILL.md +4 -4
  196. package/dist/global-skills/use-railway/references/iac.md +206 -57
  197. package/dist/global-skills/use-railway/scripts/railway-api.sh +7 -2
  198. package/dist/global-skills/xcode-project-setup/SKILL.md +2 -0
  199. package/package.json +12 -9
  200. package/LICENSE.md +0 -47
  201. package/dist/global-skills/eas-workflows/scripts/validate.js +0 -84
  202. package/dist/global-skills/expo-skill-feedback/scripts/skill-feedback.cjs +0 -118
  203. package/dist/global-skills/neon-functions/references/hono-websockets.md +0 -145
@@ -172,3 +172,11 @@ eas build -p ios --profile development --clear-cache
172
172
  eas --version
173
173
  eas update
174
174
  ```
175
+
176
+ ## Submitting Feedback
177
+ If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
178
+ ```bash
179
+ npx --yes submit-expo-feedback@latest --category skills --subject "expo-dev-client" "<actionable feedback>"
180
+ ```
181
+ Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
182
+ If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
@@ -415,3 +415,11 @@ On web, the `dom` prop is ignored since no webview is needed.
415
415
  - Test on all platforms — web rendering may differ slightly from native webviews
416
416
  - Large DOM components may impact performance — profile if needed
417
417
  - The webview has its own JavaScript context — cannot directly share state with native
418
+
419
+ ## Submitting Feedback
420
+ If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
421
+ ```bash
422
+ npx --yes submit-expo-feedback@latest --category skills --subject "expo-dom" "<actionable feedback>"
423
+ ```
424
+ Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
425
+ If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
@@ -97,3 +97,11 @@ When the user already has an app, **add only what the example introduces; never
97
97
  ## References
98
98
 
99
99
  - `./references/catalog.md` — categorized snapshot of the example library for fast triage.
100
+
101
+ ## Submitting Feedback
102
+ If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
103
+ ```bash
104
+ npx --yes submit-expo-feedback@latest --category skills --subject "expo-examples" "<actionable feedback>"
105
+ ```
106
+ Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
107
+ If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
@@ -0,0 +1,113 @@
1
+ ---
2
+ name: expo-migrate-module
3
+ description: Framework (OSS). Migrate an existing Apple/Swift Expo native module from the Expo Modules API 1.0 definition DSL to the 2.0 macro API (sometimes called v2) while preserving its JavaScript and TypeScript contract. Use when converting or incrementally adopting @ExpoModule, @JS, @Event, @SharedObject, or @Record in an existing module. Do not use for creating a new module, general Expo SDK upgrades, or Android/Kotlin migrations.
4
+ version: 1.0.0
5
+ license: MIT
6
+ ---
7
+
8
+ # Migrate an Expo Module
9
+
10
+ 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.
11
+
12
+ ## Prerequisite
13
+
14
+ The Expo Modules API 2.0 macros require `expo` `57.0.7` or newer. Before editing, check the target's installed version (`expo` in `package.json`/lockfile, or `npm ls expo`). If it is older, stop and tell the user to upgrade first; do not attempt the migration against an unsupported version. This is a floor, not a guarantee: the exact macro and core surface still varies within `57.x`, so step 2 must still verify the checked-out source.
15
+
16
+ ## References
17
+
18
+ - Read `references/migration-map.md` before changing source. It contains the 1.0-to-2.0 mappings, semantic traps, and mixed-mode rules.
19
+ - 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.
20
+ - 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 an SDK number.
21
+
22
+ ## Workflow
23
+
24
+ ### 1. Establish the contract
25
+
26
+ Inspect repository instructions and the worktree before editing. Locate the Swift module classes, records, shared objects, native views, JS/TS bindings, tests, example app, podspec, and installed or checked-out `expo-modules-core`.
27
+
28
+ Inventory every exported item before rewriting it:
29
+
30
+ - module and shared-object JS names
31
+ - function names, arity, labels, defaults, nullability, sync/async behavior, errors, and queue semantics
32
+ - property names, mutability, and constant caching behavior
33
+ - event wire names and payload shapes
34
+ - record field names, defaults, requiredness, and nullability
35
+ - shared-object constructors and instance/static placement
36
+ - lifecycle hooks and views
37
+
38
+ Use the TypeScript declarations and JS call sites to resolve ambiguity. Do not silently "improve" requiredness, rename an event, or change sync behavior during a syntax migration.
39
+
40
+ ### 2. Verify the available 2.0 surface
41
+
42
+ Inspect the macro declarations and matching core hooks in the dependency actually used by the target. Do not assume that all items in the 2.0 design are present because one macro compiles.
43
+
44
+ Classify each 1.0 item as:
45
+
46
+ - **Migrate:** both its macro and required core runtime support exist.
47
+ - **Keep in DSL:** mixed mode preserves it safely, or 2.0 lacks an equivalent.
48
+ - **Blocked:** migration would alter the JS contract or requires unavailable runtime support.
49
+
50
+ Prefer an incremental mixed-mode result over speculative generated code. Keep `definition()` for any remaining DSL elements; delete it only when it is empty and the resolved module name is preserved by `@ExpoModule`.
51
+
52
+ ### 3. Apply the migration
53
+
54
+ Migrate one semantic group at a time: module naming, functions, properties/constants, events, shared objects, then records. Keep the diff narrow.
55
+
56
+ Follow these invariants:
57
+
58
+ - Preserve every existing JS-visible name explicitly when Swift naming rules or macro defaults differ.
59
+ - Keep original optional/default behavior. An optional 1.0 record field must not become required merely because 2.0 can express required fields.
60
+ - Do not migrate same-JS-name overloads unless the checked-out macro groups and dispatches them.
61
+ - Do not migrate queue-pinned DSL functions as-is; restructure onto Swift Concurrency or dispatch to the original queue via a continuation, per the async-function rules in `references/migration-map.md`.
62
+ - Do not migrate views, unions, synchronous events, or shared-object static functions without verified support.
63
+ - Do not change Kotlin, JS wrappers, or public `.d.ts` files unless the user requested an API change.
64
+
65
+ After each group, search for old DSL entries and call sites that should have moved. Avoid broad formatting or unrelated cleanup.
66
+
67
+ ### When a 2.0 equivalent is missing or a group fails
68
+
69
+ When step 2 classified an item as **Blocked**, or a migrated group fails to build or breaks the contract, do not force it. Stop on that group and:
70
+
71
+ 1. **Ask the user how to proceed** for that item, with two options:
72
+ - **Co-exist:** keep the item in the 1.0 `definition()` DSL alongside the migrated `@ExpoModule` (mixed mode) and continue with the other groups.
73
+ - **Revert:** back out the group's edits, leaving it untouched on 1.0, and move on.
74
+
75
+ Default to co-existence when mixed mode is verified safe, since it preserves the most progress. Revert when the half-applied change left the module in a non-building state and cannot be salvaged incrementally.
76
+
77
+ 2. **Open a tracking issue on `expo/expo`** noting the functionality that 2.0 does not yet cover, so the gap is recorded rather than silently worked around. Use `gh issue create --repo expo/expo` and confirm with the user before posting (per repo conventions, do not post outward-facing comments without approval). Include:
78
+ - the 1.0 member and its JS contract
79
+ - the specific macro or core hook that is missing (cite the evidence gap from `references/compatibility.md`)
80
+ - the `expo-modules-core` version/branch checked out
81
+
82
+ Reference the issue in the handoff so the remaining DSL entry is traceable to a known limitation.
83
+
84
+ Keep going with the groups that do migrate cleanly; one blocked member does not block the rest.
85
+
86
+ ### 4. Verify behavior
87
+
88
+ Run the narrowest available checks first, then the real integration surface:
89
+
90
+ 1. Build or type-check the Apple module against the target `expo-modules-core`.
91
+ 2. Run native unit tests and JS/TS tests.
92
+ 3. Build and launch the example app when the repository provides one.
93
+ 4. Compare the final exported surface with the inventory from step 1.
94
+ 5. Search for stale `Name`, migrated `Function`/`Property`/`Constant`/`Events` entries, old `sendEvent` calls, `@Field`, and duplicate registrations.
95
+
96
+ Expansion tests alone are insufficient: generated macro code can look correct while failing against mismatched core symbols. If dependencies changed or macro plugin flags are missing, reinstall JS dependencies as appropriate, run the repository's CocoaPods installation workflow, and restart Xcode before diagnosing plugin communication failures.
97
+
98
+ ## Handoff
99
+
100
+ Report:
101
+
102
+ - which members moved to 2.0
103
+ - which members intentionally remain in the 1.0 DSL and why
104
+ - any compatibility-sensitive choices, especially event names, record requiredness, constants, and queues
105
+ - the commands run and any verification not completed
106
+
107
+ ## Submitting Feedback
108
+ If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
109
+ ```bash
110
+ npx --yes submit-expo-feedback@latest --category skills --subject "expo-migrate-module" "<actionable feedback>"
111
+ ```
112
+ Only submit when you have something specific and actionable to report. Include as much relevant context as possible.
113
+ If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Migrate Expo Module"
3
+ short_description: "Migrate Swift Expo modules from 1.0 DSL to 2.0"
4
+ default_prompt: "Use $expo-migrate-module to migrate this Expo module's Swift implementation from the 1.0 definition DSL to the 2.0 macro API without changing its JavaScript contract."
@@ -0,0 +1,73 @@
1
+ # Expo Modules API 2.0 Compatibility Checks
2
+
3
+ The Expo Modules API 2.0 design and implementation evolve across the macros plugin and `expo-modules-core`. Verify the checked-out dependency instead of relying on an SDK-number claim.
4
+
5
+ ## Find the actual declarations
6
+
7
+ Locate `ExpoModulesMacros.swift` in the target repository or installed dependencies (use your search tool, or portable shell commands - do not assume `rg` is installed):
8
+
9
+ ```bash
10
+ find . -name 'ExpoModulesMacros.swift' -not -path '*/node_modules/.cache/*'
11
+ ```
12
+
13
+ Inspect the declarations that the user's source can import:
14
+
15
+ ```bash
16
+ grep -nE 'public macro (ExpoModule|JS|Event|SharedObject|Record|Union|ViewProps|ExpoView)' <path-to-ExpoModulesMacros.swift>
17
+ ```
18
+
19
+ A declaration proves only that Swift recognizes the attribute. Also inspect the corresponding macro implementation and core runtime hooks.
20
+
21
+ ## Check paired core support
22
+
23
+ Search the actual core source for the feature being migrated:
24
+
25
+ ```bash
26
+ grep -rnE '_decorateModule|_decorateSharedObject|_constructSharedObject|_jsName|EventEmitter|emitSync|StaticProperty|AnyViewProps|PropsDiff|_updateViewProps|didCreate|__expo_onStartListeningToEvent' <expo-modules-core>
27
+ ```
28
+
29
+ Use compile errors and symbol call sites to confirm signatures. The macros plugin and core can drift independently; a successful macro expansion does not prove the generated code compiles or is called at runtime.
30
+
31
+ ## Capability gates
32
+
33
+ Treat these as independent capabilities:
34
+
35
+ | Capability | Evidence required before migration |
36
+ | --- | --- |
37
+ | Module functions/properties | `@ExpoModule`/`@JS`, generated `_decorateModule`, and the core call site |
38
+ | Module name | generated `_jsName` and core registration/name lookup that reads it |
39
+ | Records | `@Record`, coding conformance/assertions, and field decode/encode support |
40
+ | Async events | `@Event`, `EventEmitter`, and `BaseModule`/`SharedObject` conformance |
41
+ | Shared-object instances | `_decorateSharedObject`, construction hook, and core invocation |
42
+ | Shared-object static functions | constructor object passed to decoration and static function routing |
43
+ | Synchronous events | `@Event(sync:)` plus core `emitSync` overloads |
44
+ | Task-returning functions | `JavaScriptEncodable` conformance for `Task` in core (encode-only) |
45
+ | Views | `@ViewProps`/`@ExpoView` plus the complete typed props update and event runtime |
46
+ | Module lifecycle methods | `AnyModule` requirements/base implementations and holder call sites |
47
+
48
+ If any required evidence is absent, keep that item in the 1.0 DSL.
49
+
50
+ ## Known migration hazards in the July 2026 plan
51
+
52
+ Use this only as a warning list; checked-out source wins.
53
+
54
+ - Same-JS-name `@JS` overload grouping/dispatch was designed but not built; duplicate bindings could silently overwrite each other.
55
+ - `@Union` was not built.
56
+ - Decode errors lacked the 1.0 argument-index wrapper. This affects diagnostics rather than call semantics, but tests asserting exact messages may fail.
57
+ - `@ViewProps` had only an initial pure-macro slice; the UIKit typed props runtime and `@ExpoView` contract were still gated on core.
58
+ - Shared-object instance functions, properties, setters, construction, and static properties were implemented; verify constructor-side routing before migrating static functions.
59
+ - `@Event(sync: true)` macro generation existed, but core `emitSync` was still required.
60
+ - Default asynchronous `@Event` was supported after core added `EventEmitter` to modules and shared objects.
61
+ - `@JS` functions/properties, range-based arity, default/optional-aware calls, `@Record` field synthesis, async `@JavaScriptActor`, and instance shared-object decoration had landed in the macros work.
62
+
63
+ ## Integration verification
64
+
65
+ Use the target project's own commands. A robust sequence is:
66
+
67
+ 1. Run macro/unit tests if working inside the macros package.
68
+ 2. Compile the migrated native module against the paired core checkout.
69
+ 3. Re-run CocoaPods installation when plugin dependencies or injection changed.
70
+ 4. Restart Xcode after swapping a macro plugin binary; cleaning DerivedData alone may not reload it.
71
+ 5. Build the example app and execute existing JS/TS behavior tests.
72
+
73
+ Do not report a migration complete based only on textual expansion tests.
@@ -0,0 +1,212 @@
1
+ # Worked Example: Full Module Migration
2
+
3
+ This walks a single small module from the 1.0 DSL through mixed mode to a fully migrated 2.0 form. Every per-member rule lives in `migration-map.md`; this shows how they compose and how mixed mode is an intermediate state, not a failure.
4
+
5
+ The module below is representative: a name, a sync function, two async functions (one that suspends, one that blocks), a settable property, a constant, an event with observing hooks, and a record.
6
+
7
+ ## Starting point: 1.0 DSL
8
+
9
+ ```swift
10
+ import ExpoModulesCore
11
+
12
+ @Record
13
+ struct DownloadOptions {
14
+ var url: URL // required
15
+ var retries: Int = 3 // omittable, default 3
16
+ var label: String? // omittable and nullable
17
+ }
18
+
19
+ public final class DownloaderModule: Module {
20
+ private var volume: Double = 1
21
+
22
+ public func definition() -> ModuleDefinition {
23
+ Name("Downloader")
24
+
25
+ Events("onProgress")
26
+
27
+ OnStartObserving {
28
+ self.beginProgressUpdates()
29
+ }
30
+
31
+ OnStopObserving {
32
+ self.stopProgressUpdates()
33
+ }
34
+
35
+ Constant("buildInfo") { computeBuildInfo() }
36
+
37
+ Function("clamp") { (value: Double) -> Double in
38
+ return min(max(value, 0), 1)
39
+ }
40
+
41
+ Property("volume") { self.volume }
42
+ .set { self.volume = $0 }
43
+
44
+ AsyncFunction("download") { (options: DownloadOptions) -> String in
45
+ return try await self.performDownload(options)
46
+ }
47
+
48
+ AsyncFunction("clearCache") {
49
+ try FileManager.default.removeItem(at: self.cacheDirectory)
50
+ }
51
+ }
52
+
53
+ private func report(percent: Double) {
54
+ sendEvent("onProgress", ["percent": percent])
55
+ }
56
+ }
57
+ ```
58
+
59
+ The observable contract to preserve:
60
+
61
+ | Member | JS name | Contract |
62
+ | --- | --- | --- |
63
+ | Module | `Downloader` | `requireNativeModule("Downloader")` |
64
+ | `clamp` | `clamp` | sync, 1 arg, returns number |
65
+ | `volume` | `volume` | read/write number |
66
+ | `buildInfo` | `buildInfo` | read-only constant |
67
+ | `download` | `download` | async, 1 record arg, returns string |
68
+ | `clearCache` | `clearCache` | async, no args, blocking work runs off the JS thread |
69
+ | `onProgress` | `onProgress` | event, payload `{ percent }` |
70
+ | observing hooks | n/a | progress updates start/stop with the listener count |
71
+ | `DownloadOptions` | n/a | `url` required; `retries` default 3; `label` nullable |
72
+
73
+ ## Intermediate: mixed mode
74
+
75
+ Suppose the checked-out core supports everything used above: `@ExpoModule`, `@JS` functions/properties/constants, async `@JavaScriptActor`, `@Record`, default async `@Event`, and the module lifecycle hooks. One member is still blocked, by semantics rather than support: `clearCache` has a body that blocks and never suspends, and a 1.0 `AsyncFunction` runs it on a background queue automatically, while a 2.0 async member starts on the JS actor. Migrating it as-is would move blocking I/O onto the JS thread, so it stays in the DSL.
76
+
77
+ The record migrates first because it is a pure data type and the function that consumes it depends on it. Its shape is already correct, so migration is just verifying each field decodes: `url`, `retries`, `label` all map cleanly, so `@Record` stays as-is (it was already using the macro here).
78
+
79
+ ```swift
80
+ import ExpoModulesCore
81
+
82
+ @Record
83
+ struct DownloadOptions {
84
+ var url: URL
85
+ var retries: Int = 3
86
+ var label: String?
87
+ }
88
+
89
+ @ExpoModule("Downloader")
90
+ public final class DownloaderModule: Module {
91
+ // Explicit wire name: default @Event would strip "on" and emit "progress".
92
+ @Event("onProgress")
93
+ var onProgress: (ProgressEvent) -> Void
94
+
95
+ @JS("clamp")
96
+ func clamp(value: Double) -> Double {
97
+ return min(max(value, 0), 1)
98
+ }
99
+
100
+ // Stored var -> JS getter + setter, matching the 1.0 get/set pair.
101
+ @JS
102
+ var volume: Double = 1
103
+
104
+ // A let is a natural constant: read-only from JS.
105
+ @JS
106
+ let buildInfo = computeBuildInfo()
107
+
108
+ @JS
109
+ func download(options: DownloadOptions) async throws -> String {
110
+ return try await performDownload(options)
111
+ }
112
+
113
+ // override: the hooks are inherited from the Module base class.
114
+ override func didStartListening(event: String) {
115
+ beginProgressUpdates()
116
+ }
117
+
118
+ override func didStopListening(event: String) {
119
+ stopProgressUpdates()
120
+ }
121
+
122
+ // Kept on the DSL: the body blocks without suspending, and a 2.0 async
123
+ // member would start it on the JS actor instead of a background queue.
124
+ public func definition() -> ModuleDefinition {
125
+ AsyncFunction("clearCache") {
126
+ try FileManager.default.removeItem(at: self.cacheDirectory)
127
+ }
128
+ }
129
+
130
+ private func report(percent: Double) {
131
+ onProgress(ProgressEvent(percent: percent))
132
+ }
133
+ }
134
+
135
+ @Record
136
+ struct ProgressEvent {
137
+ var percent: Double
138
+ }
139
+ ```
140
+
141
+ Notes on the choices, each traceable to `migration-map.md`:
142
+
143
+ - `Name("Downloader")` moved into `@ExpoModule("Downloader")`; the custom name is carried explicitly, never dropped.
144
+ - `@Event("onProgress")` uses the explicit wire name to avoid the `on`-stripping default; the untyped dictionary became a typed `ProgressEvent`.
145
+ - The duplicate `private var volume` field was removed once `@JS var volume` became the single source of truth. Watch for this: a 1.0 backing field plus a migrated `@JS var` of the same name is a double-declaration.
146
+ - `Constant("buildInfo")` became `@JS let buildInfo`. Evaluation moves from the lazy 1.0 closure to module initialization, acceptable here because `computeBuildInfo()` is cheap; an expensive value would keep lazy storage behind a getter-only computed `@JS var`.
147
+ - `OnStartObserving`/`OnStopObserving` became the `didStartListening(event:)`/`didStopListening(event:)` hooks, with `override` because the class inherits `Module`. The 1.0 hooks were module-wide, so the event argument is ignored.
148
+ - `definition()` remains but now holds only the queue-sensitive `clearCache`. It is not deleted because it is non-empty.
149
+
150
+ ## Fully migrated (after explicitly moving the blocking work off the JS actor)
151
+
152
+ The DSL entry for `clearCache` was the semantics-preserving default. To finish the migration, replace the implicit background queue with an explicit hop so the blocking work still never runs on the JS thread, then delete the empty `definition()`.
153
+
154
+ ```swift
155
+ import ExpoModulesCore
156
+
157
+ @Record
158
+ struct DownloadOptions {
159
+ var url: URL
160
+ var retries: Int = 3
161
+ var label: String?
162
+ }
163
+
164
+ @Record
165
+ struct ProgressEvent {
166
+ var percent: Double
167
+ }
168
+
169
+ @ExpoModule("Downloader")
170
+ public final class DownloaderModule: Module {
171
+ @Event("onProgress")
172
+ var onProgress: (ProgressEvent) -> Void
173
+
174
+ @JS("clamp")
175
+ func clamp(value: Double) -> Double {
176
+ return min(max(value, 0), 1)
177
+ }
178
+
179
+ @JS
180
+ var volume: Double = 1
181
+
182
+ @JS
183
+ let buildInfo = computeBuildInfo()
184
+
185
+ @JS
186
+ func download(options: DownloadOptions) async throws -> String {
187
+ return try await performDownload(options)
188
+ }
189
+
190
+ @JS
191
+ func clearCache() async throws {
192
+ // Explicit hop: the body blocks, so it must not run on the JS actor.
193
+ try await Task.detached {
194
+ try FileManager.default.removeItem(at: self.cacheDirectory)
195
+ }.value
196
+ }
197
+
198
+ override func didStartListening(event: String) {
199
+ beginProgressUpdates()
200
+ }
201
+
202
+ override func didStopListening(event: String) {
203
+ stopProgressUpdates()
204
+ }
205
+
206
+ private func report(percent: Double) {
207
+ onProgress(ProgressEvent(percent: percent))
208
+ }
209
+ }
210
+ ```
211
+
212
+ `definition()` is gone only because it was empty and `@ExpoModule("Downloader")` preserves the resolved name. If any member had stayed blocked or unverified, the mixed-mode form above is the correct place to stop, not a broken end state.