Index of every page on this site: llms.txt
All skills
software-mansion-labs avatar

/enable-worklets-bundle-mode

@43cde80
Run it yourself

Enable react-native-worklets Bundle Mode (imports inside worklets, third party libraries on worklet runtimes) in an Expo, RN CLI or brownfield React Native app, including the mandatory metro/metro-runtime patches. Use when the user asks to enable Bundle Mode, wants to import npm libraries inside worklets or offload JS code to worklet runtimes, or hits "Failed to get the SHA-1" errors in a worklets Bundle Mode project / missing Fast Refresh for worklet code. Covers enabling only — not disabling; upgrades react-native-worklets to a compatible version when needed, but never installs it from scratch and never touches Reanimated.

Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/enable-worklets-bundle-mode

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespatching-bun.md

≈294 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Bundle Mode metro patches — bun

Applies the metro + metro-runtime Bundle Mode patches with bun's native patching (works with monorepos and linker=isolated). Uses the patch-package-format patch files.

BASE=https://raw.githubusercontent.com/software-mansion/react-native-reanimated/main/packages/react-native-worklets/bundleMode/patches

In non-interactive shells bun may not be on PATH (it typically lives at ~/.bun/bin/bun) — a patch attempt can then silently no-op. Verify command -v bun (or use the full path) before starting.

Find your installed versions with bun why metro --top and bun why metro-runtime --top, then for each package (substitute the version; %2B is the URL-encoded + in the filename):

bun patch metro
curl -fsSL "$BASE/patch-package/metro/metro%2B0.84.4.patch" | git apply
bun patch --commit 'node_modules/metro'
bun patch metro-runtime
curl -fsSL "$BASE/patch-package/metro-runtime/metro-runtime%2B0.84.4.patch" | git apply
bun patch --commit 'node_modules/metro-runtime'

bun patch --commit records the patch in patchedDependencies in package.json so it re-applies on installs.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill enables Bundle Mode for react-native-worklets by updating Babel and Metro configurations and applying official patches to the Metro bundler. It fetches these patches from the official software-mansion GitHub repository and applies them using standard package management tools.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 4 months ago
metadata
{
  "author": "Tomasz Żelawski",
  "version": "1.0.0"
}
Other metadata
compatibility
Requires network access to raw.githubusercontent.com and api.github.com to fetch metro patches

README badge

README badge for software-mansion-labs/skills/enable-worklets-bundle-mode