React Native Library Builder
Scaffold publishable React Native libraries or local native modules with a guided workflow.
The instructions mainly perform scaffolding, dependency installation, pod installation, prebuild, and example-app execution. No malware, credential theft, covert exfiltration, or other red-line behavior is evident, and some dependency relationships are disclosed. However, default use of npx @latest, --yes, and non-interactive execution lacks stepwise confirmation, permission scoping, data-flow disclosure, rollback, and recovery guidance, so points are deducted.
The workflow separates standalone and local-library paths, gives mostly coherent type/language mappings, and asks the agent to inspect current CLI help first. It provides no executable test suite, version pinning, abnormal-input handling, or diagnostic failure feedback. The standalone path also says to use only Yarn while the local path supports npm, so consistency is incomplete and the static score is limited.
Audience, trigger scenarios, and Turbo/Fabric/Nitro/JS selection guidance are reasonably clear, covering both standalone libraries and modules in existing apps. Non-fit boundaries, compatibility ranges, mainland-China network reachability, and Chinese-language support are not addressed. The workflow also depends on external tooling such as npx, npm, Expo, and CocoaPods, so points are deducted.
The documentation has useful progressive structure through an overview, quick reference, reference files, problem mapping, prerequisites, examples, pitfalls, MIT licensing, and author metadata. It lacks skill-specific versioning, changelog, explicit maintenance ownership, update path, FAQ coverage, and systematic troubleshooting, so it does not receive full marks.
The commands, type/language mappings, generated layout, and follow-up build steps are directly actionable for the core scaffolding task. There is no in-file execution evidence, successful output, or key-path verification, and version drift and environment differences may leave users to perform additional debugging, so points are deducted.
The skill links to Callstack, React Native, and Nitro documentation and provides concrete commands and expected structure, giving it some auditability. This review is static only; there is no committed test suite, CI coverage, or third-party execution evidence for the selected skill, so reproducibility remains limited and points are deducted.
- The commands use npx create-react-native-library@latest, --yes, and non-interactive execution; users should confirm the CLI version, flags, target directory, and intended changes first.
- No rollback or recovery procedure is defined, and dependencies are not pinned with a compatibility matrix.
- External dependencies including CocoaPods, Expo, Nitro, and npm/Yarn registries may vary by network, platform, and version; mainland-China reachability is not documented.
- The standalone flow says to use only Yarn, while the local flow describes both Yarn and npm; this should be checked against the generator's actual behavior.
What does this skill do, and when should you use it?
This skill guides AI coding assistants through create-react-native-library for React Native library creation. It covers standalone libraries that may be published to npm and local libraries inside existing apps. The scope includes JavaScript-only libraries, native modules, and native UI components. It selects the standalone or local workflow and points the implementation toward the corresponding reference documentation.
It first inspects the create-react-native-library CLI options, then runs npx create-react-native-library with scaffold parameters. The examples create a standalone library with an Expo example app or a local Turbo Module inside an existing React Native app. The shown options include non-interactive execution, Kotlin/Objective-C language selection, descriptions, and Turbo Module type.
- A React Native developer needs a new JavaScript or native library that may be published to npm.
- An application team needs to wrap a native SDK and expose it to JavaScript from an existing React Native app.
- A developer needs a React Native UI component that renders a native view.
- A team needs to add a local native module or view to an existing application.
What are this skill's strengths and limitations?
- Covers both standalone library scaffolding and local libraries inside existing apps.
- Provides copyable npx commands with concrete scaffold options.
- Clearly addresses JavaScript libraries, native modules, and native UI components.
- The repository is MIT-licensed and supplies follow-up references for standalone and local-library flows.
- The supplied material does not show a test suite, platform compatibility matrix, or failure-analysis results.
- The SKILL.md summarizes linked reference files but does not include their detailed contents.
- Using npx and create-react-native-library requires Node.js and a shell environment.
How do you install this skill?
The README documents standalone installation with $skill-installer install create-react-native-library from callstackincubator/agent-skills. Alternatively, clone the repository and copy the skills tree into project-level .codex/skills/ or user-level ~/.codex/skills/; the provided README command copies the whole skills/ directory. Restart Codex to recognize newly installed skills.
How do you use this skill?
For a new library that may be published to npm, ask the assistant to use skills/create-react-native-library/SKILL.md and run: npx create-react-native-library@latest awesome-library --no-interactive --yes --description "A brief description of the library" --type turbo-module --languages kotlin-objc --example expo. For a local module, change into the existing app directory and add --local.